Fixes for tvOS.

Forces the architecture to be 64 bit only when using the simulator.
Also fixes an issue where it was being set the wrong define thus not allowing to build for the simulator as expected.
This commit is contained in:
Valerio Santinelli
2016-05-17 15:48:32 +02:00
parent 51099df564
commit 1062d4d9eb
3 changed files with 7 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
-main ApplicationMain ::HAXE_FLAGS::
-D tvos
-D appletvos
-D appletv
--macro keep("::APP_MAIN::")
-D no-compilation

View File

@@ -1,6 +1,6 @@
ifeq ("$(ARCHS)","normal")
ARCHS = arm64 i386
ARCHS = arm64
endif
HAXE_BUILDS := $(ARCHS:%=build-haxe-%)
@@ -45,13 +45,6 @@ debug_print:
LIB_BASE := build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG)
LIB_DEST := $(DEBUG)/libApplicationMain.a
build-haxe-i386:
@echo "Haxe simulator build: $(CONFIG)"
haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG)
cd build/$(CONFIG); export HXCPP_NO_COLOR=1; haxelib run ::CPP_BUILD_LIBRARY:: Build.xml -Dtvos -Dsimulator -DHXCPP_CPP11 $(DEF_DEBUG) $(HXCPP_CLANG) `cat Options.txt | while read LINE; do printf " -D$$LINE"; done`
cp build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG).appletvsim.a ../lib/i386$(LIB_DEST)
touch ../Classes/Main.mm
build-haxe-x86_64:
@echo "Haxe simulator build: $(CONFIG)-64"
haxe Build.hxml -D simulator -D HXCPP_M64 -cpp build/$(CONFIG)-64 $(DEBUG)