update png io and clink

This commit is contained in:
vcaesar 2017-11-20 21:40:15 +08:00
parent f17838a043
commit 97a368ff0d
2 changed files with 15 additions and 3 deletions

View File

@ -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>

View File

@ -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"