mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-31 06:16:43 -04:00
Set GOFLAGS in Makefile; bump minimum iOS version
This commit is contained in:
@@ -9,6 +9,7 @@ ios-hw: clean
|
|||||||
GOOS=ios \
|
GOOS=ios \
|
||||||
GOARCH=arm64 \
|
GOARCH=arm64 \
|
||||||
GOARM64=v8.3,crypto \
|
GOARM64=v8.3,crypto \
|
||||||
|
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||||
SDK=iphoneos \
|
SDK=iphoneos \
|
||||||
CC=$(PWD)/clangwrap.sh \
|
CC=$(PWD)/clangwrap.sh \
|
||||||
CGO_CFLAGS="-fembed-bitcode" \
|
CGO_CFLAGS="-fembed-bitcode" \
|
||||||
@@ -22,6 +23,7 @@ ios-sim: clean
|
|||||||
GOOS=ios \
|
GOOS=ios \
|
||||||
GOARCH=arm64 \
|
GOARCH=arm64 \
|
||||||
GOARM64=v8.4,crypto \
|
GOARM64=v8.4,crypto \
|
||||||
|
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||||
SDK=iphonesimulator \
|
SDK=iphonesimulator \
|
||||||
CC=$(PWD)/clangwrap.sh \
|
CC=$(PWD)/clangwrap.sh \
|
||||||
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-sim.a ..
|
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-sim.a ..
|
||||||
@@ -34,6 +36,7 @@ macos: clean
|
|||||||
GOOS=darwin \
|
GOOS=darwin \
|
||||||
GOARCH=arm64 \
|
GOARCH=arm64 \
|
||||||
GOARM64=v8.4,crypto \
|
GOARM64=v8.4,crypto \
|
||||||
|
GOFLAGS='-trimpath "-ldflags=-s -w" -buildvcs=false' \
|
||||||
SDK=macosx \
|
SDK=macosx \
|
||||||
go build -buildmode=c-archive -o $(BUILD_DIR)/cmutton-macos.a ..
|
go build -buildmode=c-archive -o $(BUILD_DIR)/cmutton-macos.a ..
|
||||||
echo '#import "types.h"\n#import "cmutton-macos.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h
|
echo '#import "types.h"\n#import "cmutton-macos.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MIN_VERSION=26.0
|
MIN_VERSION=26.2
|
||||||
|
|
||||||
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
||||||
CLANG=`xcrun --sdk $SDK --find clang`
|
CLANG=`xcrun --sdk $SDK --find clang`
|
||||||
|
|||||||
Reference in New Issue
Block a user