mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
7e0a9bfade
# Objective - Merge the examples on iOS and Android - Make sure they both work from the same code ## Solution - don't create window when not in an active state (from #6830) - exit on suspend on Android (from #6830) - automatically enable dependency feature of bevy_audio on android so that it works out of the box - don't inverse y position of touch events - reuse the same example for both Android and iOS Fixes #4616 Fixes #4103 Fixes #3648 Fixes #3458 Fixes #3249 Fixes #86
25 lines
868 B
Makefile
25 lines
868 B
Makefile
.PHONY: xcodebuild run install boot-sim generate clean
|
|
|
|
DEVICE = ${DEVICE_ID}
|
|
ifndef DEVICE_ID
|
|
DEVICE=$(shell xcrun simctl list devices 'iOS' | grep -v 'unavailable' | grep -v '^--' | grep -v '==' | head -n 1 | cut -d ' ' -f 7 | sed 's/[()]//g')
|
|
endif
|
|
|
|
run: install
|
|
xcrun simctl launch --console $(DEVICE) com.rust.bevy_mobile_example
|
|
|
|
boot-sim:
|
|
xcrun simctl boot $(DEVICE) || true
|
|
|
|
install: xcodebuild-simulator boot-sim
|
|
xcrun simctl install $(DEVICE) build/Build/Products/Debug-iphonesimulator/bevy_mobile_example.app
|
|
|
|
xcodebuild-simulator:
|
|
IOS_TARGETS=x86_64-apple-ios xcodebuild -scheme bevy_mobile_example -configuration Debug -derivedDataPath build -destination "id=$(DEVICE)"
|
|
|
|
xcodebuild-iphone:
|
|
IOS_TARGETS=aarch64-apple-ios xcodebuild -scheme bevy_mobile_example -configuration Debug -derivedDataPath build -arch arm64
|
|
|
|
clean:
|
|
rm -r build
|
|
cargo clean
|