mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
update png io and clink
This commit is contained in:
parent
f17838a043
commit
97a368ff0d
@ -1,7 +1,18 @@
|
||||
#include "png_io.h"
|
||||
#include "os.h"
|
||||
// #include "libpng/png.c"
|
||||
#include <png.h>
|
||||
#if defined(IS_MACOSX)
|
||||
#include <png.h>
|
||||
#elif defined(USE_X11)
|
||||
#include <png.h>
|
||||
#elif defined(IS_WINDOWS)
|
||||
#if defined (__x86_64__)
|
||||
#include "../cdeps/win64/png.h"
|
||||
#else
|
||||
#include "../cdeps/win32/png.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h> /* fopen() */
|
||||
#include <stdlib.h> /* malloc/realloc */
|
||||
#include <assert.h>
|
||||
|
@ -32,8 +32,9 @@ package robotgo
|
||||
#cgo linux LDFLAGS:-L/usr/src -lpng -lz -lX11 -lXtst -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11 -lm
|
||||
//#endif
|
||||
// #cgo windows LDFLAGS: -lgdi32 -luser32 -lpng -lz
|
||||
#cgo windows,amd64 LDFLAGS: -lgdi32 -luser32 -L/cdeps/win64 -lpng -L/cdeps/win64 -lz
|
||||
#cgo windows,386 LDFLAGS: -lgdi32 -luser32 -L/cdeps/win32 -lpng -L/cdeps/win32 -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
|
||||
// #include <AppKit/NSEvent.h>
|
||||
#include "screen/goScreen.h"
|
||||
#include "mouse/goMouse.h"
|
||||
|
Loading…
Reference in New Issue
Block a user