mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
remove unused cgo code
This commit is contained in:
parent
112fc4c6bb
commit
4705e668bc
23
robotgo.go
23
robotgo.go
@ -28,22 +28,21 @@ Otherwise, to install the robotgo package, run the command:
|
|||||||
package robotgo
|
package robotgo
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//#if defined(IS_MACOSX)
|
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
|
||||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
|
#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit
|
||||||
#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit
|
#cgo darwin LDFLAGS: -framework Carbon -framework CoreFoundation
|
||||||
#cgo darwin LDFLAGS: -framework Carbon -framework CoreFoundation
|
|
||||||
//#elif defined(USE_X11)
|
#cgo linux CFLAGS: -I/usr/src
|
||||||
#cgo linux CFLAGS: -I/usr/src
|
#cgo linux LDFLAGS: -L/usr/src -lX11 -lXtst -lm
|
||||||
#cgo linux LDFLAGS: -L/usr/src -lX11 -lXtst -lm
|
// #cgo linux LDFLAGS: -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11
|
||||||
// #cgo linux LDFLAGS: -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11
|
|
||||||
//#endif
|
// #cgo windows LDFLAGS: -lgdi32 -luser32 -lpng -lz
|
||||||
// #cgo windows LDFLAGS: -lgdi32 -luser32 -lpng -lz
|
#cgo windows LDFLAGS: -lgdi32 -luser32
|
||||||
#cgo windows LDFLAGS: -lgdi32 -luser32
|
//
|
||||||
// #include <AppKit/NSEvent.h>
|
// #include <AppKit/NSEvent.h>
|
||||||
#include "screen/goScreen.h"
|
#include "screen/goScreen.h"
|
||||||
#include "mouse/goMouse.h"
|
#include "mouse/goMouse.h"
|
||||||
#include "key/goKey.h"
|
#include "key/goKey.h"
|
||||||
//#include "event/goEvent.h"
|
|
||||||
#include "window/goWindow.h"
|
#include "window/goWindow.h"
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
Loading…
Reference in New Issue
Block a user