mirror of
https://github.com/robotn/gohook.git
synced 2024-11-22 11:36:47 +08:00
commit
90f17fe78a
@ -67,7 +67,7 @@ build_script:
|
||||
test_script:
|
||||
# Unit tests
|
||||
- ps: Add-AppveyorTest "Unit Tests" -Outcome Running
|
||||
- go test -u github.com/go-vgo/robotgo/...
|
||||
- go test -u github.com/robotn/gohook...
|
||||
- ps: Update-AppveyorTest "Unit Tests" -Outcome Passed
|
||||
|
||||
# notifications:
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "pub.h"
|
||||
|
||||
|
||||
|
3
hook.go
3
hook.go
@ -3,10 +3,11 @@ package hook
|
||||
/*
|
||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
|
||||
#cgo darwin LDFLAGS: -framework Cocoa
|
||||
|
||||
#cgo linux CFLAGS:-I/usr/src
|
||||
#cgo linux LDFLAGS: -L/usr/src -lX11 -lXtst
|
||||
#cgo linux LDFLAGS: -lX11-xcb -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11
|
||||
#cgo windows LDFLAGS: -lgdi32 -luser32
|
||||
//#cgo windows LDFLAGS: -lgdi32 -luser32
|
||||
|
||||
#include "event/goEvent.h"
|
||||
// #include "event/hook_async.h"
|
||||
|
Loading…
Reference in New Issue
Block a user