mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-27 20:36:31 -04:00
Fix bridging headers
This commit is contained in:
+3
-3
@@ -13,7 +13,7 @@ ios-hw: clean
|
||||
CC=$(PWD)/clangwrap.sh \
|
||||
CGO_CFLAGS="-fembed-bitcode" \
|
||||
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-hw.a ..
|
||||
echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-hw.h
|
||||
echo '#import "types.h"\n#import "cmutton-ios-hw.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-hw.h
|
||||
cp ../types.h $(BUILD_DIR)/types.h
|
||||
|
||||
ios-sim: clean
|
||||
@@ -25,7 +25,7 @@ ios-sim: clean
|
||||
SDK=iphonesimulator \
|
||||
CC=$(PWD)/clangwrap.sh \
|
||||
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-sim.a ..
|
||||
echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-sim.h
|
||||
echo '#import "types.h"\n#import "cmutton-ios-sim.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-ios-sim.h
|
||||
cp ../types.h $(BUILD_DIR)/types.h
|
||||
|
||||
macos: clean
|
||||
@@ -36,7 +36,7 @@ macos: clean
|
||||
GOARM64=v8.4,crypto \
|
||||
SDK=macosx \
|
||||
go build -buildmode=c-archive -o $(BUILD_DIR)/cmutton-macos.a ..
|
||||
echo '#import "types.h"\n#import "cmutton.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h
|
||||
echo '#import "types.h"\n#import "cmutton-macos.h"' > $(BUILD_DIR)/cmutton-Bridging-Header-macos.h
|
||||
cp ../types.h $(BUILD_DIR)/types.h
|
||||
|
||||
apple: clean ios-hw ios-sim macos
|
||||
|
||||
Reference in New Issue
Block a user