-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
27 lines (18 loc) · 845 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONEY: test
RUNTIME_ID=$(shell xcrun simctl list runtimes | grep iOS | cut -d ' ' -f 7 | tail -1)
DEVICE_ID=$(shell xcrun simctl list devices 'iOS' | grep -v '^--' | grep -v '==' | head -n 1 | awk '{print $$3}' | sed 's/[()]//g')
TARGET=x86_64-apple-ios
boot-sim:
@echo DEVICE ID: $(DEVICE_ID)
xcrun simctl list devices
xcrun simctl list devices booted | grep iPhone || xcrun simctl boot $(DEVICE_ID)
test: boot-sim
cargo dinghy --platform auto-ios-x86_64 test
bundle:
cargo bundle --example rect --format ios --target $(TARGET)
bundle-install: bundle boot-sim
xcrun simctl install booted target/$(TARGET)/debug/examples/bundle/ios/rect.app
bundle-run: bundle-install
RUST_LOG=debug xcrun simctl launch booted com.github.simlay.uikit-sys.rect
.EXPORT_ALL_VARIABLES:
LLVM_CONFIG_PATH=$(shell brew --prefix llvm)/bin/llvm-config