add windows dependency

This commit is contained in:
vcaesar 2017-12-08 16:17:41 +08:00
parent fb382d9e8d
commit ad631a1f96
7 changed files with 9 additions and 7 deletions

10
.gitignore vendored
View File

@ -36,11 +36,13 @@ _testmain.go
# Libraries
*.lib
!cdeps/win32/libpng.lib
!cdeps/win32/zlib.lib
!cdeps/win64/libpng.lib
!cdeps/win64/zlib.lib
# !cdeps/win32/libpng.lib
# !cdeps/win32/zlib.lib
# !cdeps/win64/libpng.lib
# !cdeps/win64/zlib.lib
*.a
!cdeps/win32/libpng.a
!cdeps/win64/libpng.a
*.la
*.lo

Binary file not shown.

Binary file not shown.

BIN
cdeps/win64/libpng.a Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -37,8 +37,8 @@ package robotgo
//#endif
// #cgo windows LDFLAGS: -lgdi32 -luser32 -lpng -lz
#cgo windows LDFLAGS: -lgdi32 -luser32
#cgo windows,amd64 LDFLAGS: -L/cdeps/win64 -lpng -L/cdeps/win64 -lz
#cgo windows,386 LDFLAGS: -L/cdeps/win32 -lpng -L/cdeps/win32 -lz
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/cdeps/win64 -lpng -L${SRCDIR}/cdeps/win64 -lz
#cgo windows,386 LDFLAGS: -L${SRCDIR}/cdeps/win32 -lpng -L${SRCDIR}/cdeps/win32 -lz
// #include <AppKit/NSEvent.h>
#include "screen/goScreen.h"
#include "mouse/goMouse.h"
@ -64,7 +64,7 @@ import (
)
const (
version string = "v0.46.6.429, Pyrenees Mountains!"
version string = "v0.46.6.431, Pyrenees Mountains!"
)
type (