add linux arm64 target
This commit is contained in:
parent
2e7a9be6c1
commit
dcec0f9274
19
Makefile
19
Makefile
|
@ -8,7 +8,7 @@ DEFAULT_GOAL: linux
|
||||||
all: linux android windows
|
all: linux android windows
|
||||||
|
|
||||||
linux: EXPERIMENTS ?= serverExperiment
|
linux: EXPERIMENTS ?= serverExperiment
|
||||||
linux: libCwtch.so
|
linux: libCwtch.x64.so libCwtch.arm64.so
|
||||||
|
|
||||||
macos: EXPERIMENTS ?= serverExperiment
|
macos: EXPERIMENTS ?= serverExperiment
|
||||||
macos: libCwtch.x64.dylib libCwtch.arm64.dylib
|
macos: libCwtch.x64.dylib libCwtch.arm64.dylib
|
||||||
|
@ -25,12 +25,19 @@ lib.go: generate/generate_bindings.go spec
|
||||||
go run generate/generate_bindings.go --experiments "$(EXPERIMENTS)"
|
go run generate/generate_bindings.go --experiments "$(EXPERIMENTS)"
|
||||||
|
|
||||||
|
|
||||||
libCwtch.so: lib.go
|
libCwtch.x64.so: lib.go
|
||||||
./switch-ffi.sh
|
./switch-ffi.sh
|
||||||
go build -trimpath -ldflags "-buildid=autobindings-$(shell git describe --tags) -X main.buildVer=autobindings-$(shell git describe --tags) -X main.buildDate=$(shell git log -1 --format=%cd --date=format:%G-%m-%d-%H-%M)" -buildmode c-shared -o libCwtch.so
|
go build -trimpath -ldflags "-buildid=autobindings-$(shell git describe --tags) -X main.buildVer=autobindings-$(shell git describe --tags) -X main.buildDate=$(shell git log -1 --format=%cd --date=format:%G-%m-%d-%H-%M)" -buildmode c-shared -o libCwtch.x64.so
|
||||||
mkdir -p build/linux
|
mkdir -p build/linux
|
||||||
mv libCwtch.so build/linux/
|
mv libCwtch.x64.so build/linux/
|
||||||
mv libCwtch.h build/linux/
|
mv libCwtch.x64.h build/linux/libCwtch.h
|
||||||
|
|
||||||
|
libCwtch.arm64.so:
|
||||||
|
./switch-ffi.sh
|
||||||
|
env CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc GOARCH=arm64 go build -trimpath -ldflags "-buildid=autobindings-v0.0.3-22-g20065b2 -X main.buildVer=autobindings-v0.0.3-22-g20065b2 -X main.buildDate=2023-05-01-21-41" -buildmode c-shared -o libCwtch.arm64.so
|
||||||
|
mkdir -p build/linux
|
||||||
|
mv libCwtch.arm64.so build/linux/
|
||||||
|
mv libCwtch.arm64.h build/linux/libCwtch.h
|
||||||
|
|
||||||
libCwtch.x64.dylib: lib.go
|
libCwtch.x64.dylib: lib.go
|
||||||
./switch-ffi.sh
|
./switch-ffi.sh
|
||||||
|
@ -66,7 +73,7 @@ clean-autobindings:
|
||||||
rm -f lib.go
|
rm -f lib.go
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr lib.go cwtch.aar cwtch_go.apk libCwtch.h libCwtch.so cwtch-sources.jar libCwtch.dll libCwtch.*.dylib build
|
rm -fr lib.go cwtch.aar cwtch_go.apk libCwtch.*.h libCwtch.*.so cwtch-sources.jar libCwtch.dll libCwtch.*.dylib build
|
||||||
|
|
||||||
# iOS - for testing purposes only for now, not officially supported
|
# iOS - for testing purposes only for now, not officially supported
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue