add mac os M1 support

This commit is contained in:
vcaesar 2021-07-29 11:54:29 -04:00
parent 8f377aaa53
commit 3dba431fcd
4 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -56,6 +56,8 @@ vendor
# ##
*.a
!cdeps/mac/libpng.a
!cdeps/mac/amd/libpng.a
!cdeps/mac/m1/libpng.a
!cdeps/win32/libpng.a
!cdeps/win64/libpng.a
#

BIN
cdeps/mac/m1/libpng.a Normal file

Binary file not shown.

View File

@ -27,7 +27,8 @@ package robotgo
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations
#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL -framework IOKit
#cgo darwin LDFLAGS: -framework Carbon -framework CoreFoundation
#cgo darwin LDFLAGS:-L${SRCDIR}/cdeps/mac -lpng -lz
#cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/cdeps/mac/amd -lpng -lz
#cgo darwin,arm64 LDFLAGS:-L${SRCDIR}/cdeps/mac/m1 -lpng -lz
//#elif defined(USE_X11)
// Drop -std=c11
#cgo linux CFLAGS: -I/usr/src