mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-09-02 07:07:34 -04:00
Fix bridging headers
This commit is contained in:
+3
-3
@@ -13,7 +13,7 @@ ios-hw: clean
|
|||||||
CC=$(PWD)/clangwrap.sh \
|
CC=$(PWD)/clangwrap.sh \
|
||||||
CGO_CFLAGS="-fembed-bitcode" \
|
CGO_CFLAGS="-fembed-bitcode" \
|
||||||
go build -buildmode=c-archive -tags ios -o $(BUILD_DIR)/cmutton-ios-hw.a ..
|
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
|
cp ../types.h $(BUILD_DIR)/types.h
|
||||||
|
|
||||||
ios-sim: clean
|
ios-sim: clean
|
||||||
@@ -25,7 +25,7 @@ ios-sim: clean
|
|||||||
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 ..
|
||||||
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
|
cp ../types.h $(BUILD_DIR)/types.h
|
||||||
|
|
||||||
macos: clean
|
macos: clean
|
||||||
@@ -36,7 +36,7 @@ macos: clean
|
|||||||
GOARM64=v8.4,crypto \
|
GOARM64=v8.4,crypto \
|
||||||
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.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
|
cp ../types.h $(BUILD_DIR)/types.h
|
||||||
|
|
||||||
apple: clean ios-hw ios-sim macos
|
apple: clean ios-hw ios-sim macos
|
||||||
|
|||||||
Reference in New Issue
Block a user