diff --git a/templates/tvos/PROJ.xcodeproj/project.pbxproj b/templates/tvos/PROJ.xcodeproj/project.pbxproj new file mode 100644 index 000000000..61fcca661 --- /dev/null +++ b/templates/tvos/PROJ.xcodeproj/project.pbxproj @@ -0,0 +1,475 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1E2E17AD131E8B5D0048F3C7 /* ::APP_FILE::/assets in Resources */ = {isa = PBXBuildFile; fileRef = 1E2E17A5131E8B5D0048F3C7 /* Data */; }; + 1EF0A83B121ADB8E003F2F59 /* ::APP_FILE::/haxe/build in Sources */ = {isa = PBXBuildFile; fileRef = 1E2E17A5141E8B5D0048F3C7 /* haxe */; }; + 1EEEBA9B121AF1C60048A9DF /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBA9A121AF1C60048A9DF /* UIKit.framework */; }; + 1EEEBAA3121AF2210048A9DF /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAA2121AF2210048A9DF /* OpenAL.framework */; }; + 1EEEBAA5121AF2210048A9DF /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAA4121AF2210048A9DF /* OpenGLES.framework */; }; + 1EEEBAA7121AF2210048A9DF /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAA6121AF2210048A9DF /* QuartzCore.framework */; }; + 1EEEBAB3121AF2880048A9D0 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAB2121AF2880048A9D0 /* CoreMotion.framework */; }; + 1EEEBAB3121AF2880048A9D1 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAB2121AF2880048A9D1 /* MediaPlayer.framework */; }; + 1EEEBAB3121AF2880048A9DF /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAB2121AF2880048A9DF /* CoreAudio.framework */; }; + 1EEEBAB5121AF2880048A9DF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAB4121AF2880048A9DF /* CoreGraphics.framework */; }; + 1EEEBAFC121BE2980048A9DF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAFB121BE2980048A9DF /* AudioToolbox.framework */; }; + 1EEEBAFE121BE2980048A9DF /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAFD121BE2980048A9DF /* AVFoundation.framework */; }; + 1EEEBB00121BE2B30048A9DF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EEEBAFF121BE2B30048A9DF /* Foundation.framework */; }; + 1EF0A83A121ADB8E003F2F59 /* Main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1EF0A839121ADB8E003F2F59 /* Main.mm */; }; + 4257533F1A5EFD8C004AA45B /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4257533E1A5EFD8C004AA45B /* Images.xcassets */; }; + ::ADDL_PBX_BUILD_FILE:: + +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 1EF0A882121AE1D2003F2F59 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; + proxyType = 1; + remoteGlobalIDString = 1EF0A87F121AE1CE003F2F59; + remoteInfo = "Build Haxe"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 1D6058910D05DD3D006BFB54 /* ::APP_TITLE::.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "::APP_TITLE::.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1E2E17A5131E8B5D0048F3C7 /* ::APP_FILE::/assets */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "::APP_FILE::/assets"; sourceTree = ""; }; + 1E2E17A5141E8B5D0048F3C7 /* ::APP_FILE::/haxe/build */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "::APP_FILE::/haxe/build"; sourceTree = SOURCE_ROOT; }; + 1EEEBA9A121AF1C60048A9DF /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 1EEEBAA2121AF2210048A9DF /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; + 1EEEBAA4121AF2210048A9DF /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; + 1EEEBAA6121AF2210048A9DF /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + 1EEEBAB2121AF2880048A9D0 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; + 1EEEBAB2121AF2880048A9D1 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; + 1EEEBAB2121AF2880048A9DF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; + 1EEEBAB4121AF2880048A9DF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 1EEEBAFB121BE2980048A9DF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 1EEEBAFD121BE2980048A9DF /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 1EEEBAFF121BE2B30048A9DF /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1EF0A839121ADB8E003F2F59 /* Main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Main.mm; path = "::APP_FILE::/Classes/Main.mm"; sourceTree = SOURCE_ROOT; }; + 4257533E1A5EFD8C004AA45B /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = "::APP_FILE::/Images.xcassets"; sourceTree = ""; }; + + ::ADDL_PBX_FILE_REFERENCE:: + + 8D1107310486CEB800E47090 /* ::APP_FILE::-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "::APP_FILE::/::APP_FILE::-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ::if ARMV6::1EF0A888121AE2F0003F2F59 /* lib/ApplicationMain.a in lib */,::end:: + ::if ARMV7::1EF0A888121AE2F0003F2F5A /* lib/ApplicationMain-v7.a in lib */,::end:: + 1EEEBA9B121AF1C60048A9DF /* UIKit.framework in Frameworks */, + 1EEEBAA3121AF2210048A9DF /* OpenAL.framework in Frameworks */, + 1EEEBAA5121AF2210048A9DF /* OpenGLES.framework in Frameworks */, + 1EEEBAA7121AF2210048A9DF /* QuartzCore.framework in Frameworks */, + 1EEEBAB3121AF2880048A9DF /* CoreAudio.framework in Frameworks */, + 1EEEBAB5121AF2880048A9DF /* CoreGraphics.framework in Frameworks */, + 1EEEBAFC121BE2980048A9DF /* AudioToolbox.framework in Frameworks */, + 1EEEBAFE121BE2980048A9DF /* AVFoundation.framework in Frameworks */, + 1EEEBB00121BE2B30048A9DF /* Foundation.framework in Frameworks */, + 1EEEBAB3121AF2880048A9D0 /* CoreMotion.framework in Frameworks */, + 1EEEBAB3121AF2880048A9D1 /* MediaPlayer.framework in Frameworks */, + ::ADDL_PBX_FRAMEWORKS_BUILD_PHASE:: + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 080E96DDFE201D6D7F000001 /* Classes */ = { + isa = PBXGroup; + children = ( + 1EF0A839121ADB8E003F2F59 /* Main.mm */, + ); + path = Classes; + sourceTree = ""; + }; + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* ::APP_TITLE::.app */, + ); + name = Products; + sourceTree = ""; + }; + 1EEEBA99121AF18B0048A9DF /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1EEEBA9A121AF1C60048A9DF /* UIKit.framework */, + 1EEEBAA2121AF2210048A9DF /* OpenAL.framework */, + 1EEEBAA4121AF2210048A9DF /* OpenGLES.framework */, + 1EEEBAA6121AF2210048A9DF /* QuartzCore.framework */, + 1EEEBAB2121AF2880048A9DF /* CoreAudio.framework */, + 1EEEBAB4121AF2880048A9DF /* CoreGraphics.framework */, + 1EEEBAFF121BE2B30048A9DF /* Foundation.framework */, + 1EEEBAFB121BE2980048A9DF /* AudioToolbox.framework */, + 1EEEBAFD121BE2980048A9DF /* AVFoundation.framework */, + 1EEEBAB2121AF2880048A9D0 /* CoreMotion.framework */, + 1EEEBAB2121AF2880048A9D1 /* MediaPlayer.framework */, + ::ADDL_PBX_FRAMEWORK_GROUP:: + ); + name = Frameworks; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 1EEEBA99121AF18B0048A9DF /* Frameworks */, + 080E96DDFE201D6D7F000001 /* Classes */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 1E2E17A5141E8B5D0048F3C7 /* ::APP_FILE::/haxe/build */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 4257533E1A5EFD8C004AA45B /* Images.xcassets */, + 8D1107310486CEB800E47090 /* ::APP_FILE::/::APP_FILE::-Info.plist */, + 1E2E17A5131E8B5D0048F3C7 /* ::APP_FILE::/assets */, + ); + name = Resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* "::APP_FILE::" */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "::APP_FILE::" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 1EF0A883121AE1D2003F2F59 /* PBXTargetDependency */, + ); + name = "::APP_FILE::"; + productName = "::APP_TITLE::"; + productReference = 1D6058910D05DD3D006BFB54 /* ::APP_TITLE::.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXLegacyTarget section */ + 1EF0A87F121AE1CE003F2F59 /* Build Haxe */ = { + isa = PBXLegacyTarget; + buildArgumentsString = ""; + buildConfigurationList = 1EF0A885121AE21C003F2F59 /* Build configuration list for PBXLegacyTarget "Build Haxe" */; + buildPhases = ( + ); + buildToolPath = make; + buildWorkingDirectory = "::APP_FILE::/haxe"; + dependencies = ( + ); + name = "Build Haxe"; + passBuildSettingsInEnvironment = 1; + productName = "Build Haxe"; + }; +/* End PBXLegacyTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "::APP_TITLE::" */; + compatibilityVersion = "Xcode 3.2"; + hasScannedForEncodings = 1; + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* ::APP_FILE:: */, + 1EF0A87F121AE1CE003F2F59 /* Build Haxe */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1E2E17AD131E8B5D0048F3C7 /* ::APP_FILE::/assets in Resources */, + 4257533F1A5EFD8C004AA45B /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1EF0A83A121ADB8E003F2F59 /* Main.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 1EF0A883121AE1D2003F2F59 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 1EF0A87F121AE1CE003F2F59 /* Build Haxe */; + targetProxy = 1EF0A882121AE1D2003F2F59 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + C01FCF4F08A954540054247B /* Debug */ = {/* Build configuration list for PBXProject "::APP_TITLE::" */ + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = ::CURRENT_ARCHS::; + ::if (OBJC_ARC):: + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ::end:: + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "::KEY_STORE_IDENTITY::"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = ::DEPLOYMENT::; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "::TARGET_DEVICES::"; + ::THUMB_SUPPORT:: + VALID_ARCHS = "::VALID_ARCHS::"; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = {/* Build configuration list for PBXProject "::APP_TITLE::" */ + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = ::CURRENT_ARCHS::; + ::if (OBJC_ARC):: + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ::end:: + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "::KEY_STORE_IDENTITY::"; + /* COMPRESS_PNG_FILES = NO; */ + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + /* GCC_ENABLE_SYMBOL_SEPARATION = YES; */ + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = ::DEPLOYMENT::; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + /* PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES; */ + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "::TARGET_DEVICES::"; + ::THUMB_SUPPORT:: + VALID_ARCHS = "::VALID_ARCHS::"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 1D6058940D05DD3E006BFB54 /* Debug */ = {/* Build configuration list for PBXNativeTarget "::APP_TITLE::" */ + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + ::foreach frameworkSearchPaths:: "\"::__current__::\"", + ::end:: + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "::APP_FILE::/::APP_FILE::-Prefix.pch"; + INFOPLIST_FILE = "::APP_FILE::/::APP_FILE::-Info.plist"; + "LIBRARY_SEARCH_PATHS[arch=arm64]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/arm64-debug\"", + "\"$(SRCROOT)/::APP_FILE::/lib/arm64\"", + ); + "LIBRARY_SEARCH_PATHS[arch=armv6]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/armv6-debug\"", + "\"$(SRCROOT)/::APP_FILE::/lib/armv6\"", + ); + "LIBRARY_SEARCH_PATHS[arch=armv7]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/armv7-debug\"", + "\"$(SRCROOT)/::APP_FILE::/lib/armv7\"", + ); + "LIBRARY_SEARCH_PATHS[arch=i386]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/i386-debug\"", + "\"$(SRCROOT)/::APP_FILE::/lib/i386\"", + ); + "LIBRARY_SEARCH_PATHS[arch=x86_64]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/x86_64-debug\"", + "\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"", + ); + OTHER_LDFLAGS = ( + ::foreach ndlls:: "-l::name::", + ::end:: + ::foreach linkedLibraries:: "-l::__current__::", + ::end:: + "-lApplicationMain", + ::foreach IOS_LINKER_FLAGS:: "::__current__::", + ::end:: + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = {/* Build configuration list for PBXNativeTarget "::APP_TITLE::" */ + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = ::if (ENABLE_BITCODE)::YES::else::NO::end::; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + ::foreach frameworkSearchPaths:: "\"::__current__::\"", + ::end:: + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "::APP_FILE::/::APP_FILE::-Prefix.pch"; + INFOPLIST_FILE = "::APP_FILE::/::APP_FILE::-Info.plist"; + "LIBRARY_SEARCH_PATHS[arch=arm64]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/arm64\"", + ); + "LIBRARY_SEARCH_PATHS[arch=armv6]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/armv6\"", + ); + "LIBRARY_SEARCH_PATHS[arch=armv7]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/armv7\"", + ); + "LIBRARY_SEARCH_PATHS[arch=i386]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/i386\"", + ); + "LIBRARY_SEARCH_PATHS[arch=x86_64]" = ( + "$(inherited)", + "\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"", + ); + OTHER_LDFLAGS = ( + ::foreach ndlls:: "-l::name::", + ::end:: + ::foreach linkedLibraries:: "-l::__current__::", + ::end:: + "-lApplicationMain", + ::foreach IOS_LINKER_FLAGS:: "::__current__::", + ::end:: + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 1EF0A880121AE1CE003F2F59 /* Debug */ = {/* Build configuration list for PBXLegacyTarget "Build Haxe" */ + isa = XCBuildConfiguration; + buildSettings = { + ::if (OBJC_ARC):: + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ::end:: + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + }; + name = Debug; + }; + 1EF0A881121AE1CE003F2F59 /* Release */ = {/* Build configuration list for PBXLegacyTarget "Build Haxe" */ + isa = XCBuildConfiguration; + buildSettings = { + ::if (OBJC_ARC):: + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ::end:: + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ZERO_LINK = NO; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "::APP_TITLE::" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "::APP_TITLE::" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1EF0A885121AE21C003F2F59 /* Build configuration list for PBXLegacyTarget "Build Haxe" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1EF0A880121AE1CE003F2F59 /* Debug */, + 1EF0A881121AE1CE003F2F59 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; /* end objects */ + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} \ No newline at end of file diff --git a/templates/tvos/PROJ.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/templates/tvos/PROJ.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..94b2795e2 --- /dev/null +++ b/templates/tvos/PROJ.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,4 @@ + + + diff --git a/templates/tvos/PROJ/Classes/Main.mm b/templates/tvos/PROJ/Classes/Main.mm new file mode 100644 index 000000000..442a5f78e --- /dev/null +++ b/templates/tvos/PROJ/Classes/Main.mm @@ -0,0 +1,35 @@ +#include + +extern "C" const char *hxRunLibrary (); +extern "C" void hxcpp_set_top_of_stack (); + +extern "C" int zlib_register_prims (); +extern "C" int lime_cairo_register_prims (); +extern "C" int lime_openal_register_prims (); +::foreach ndlls::::if (registerStatics):: +extern "C" int ::nameSafe::_register_prims ();::end::::end:: + + +extern "C" int SDL_main (int argc, char *argv[]) { + + hxcpp_set_top_of_stack (); + + zlib_register_prims (); + lime_cairo_register_prims (); + lime_openal_register_prims (); + ::foreach ndlls::::if (registerStatics):: + ::nameSafe::_register_prims ();::end::::end:: + + const char *err = NULL; + err = hxRunLibrary (); + + if (err) { + + printf ("Error %s\n", err); + return -1; + + } + + return 0; + +} \ No newline at end of file diff --git a/templates/tvos/PROJ/Images.xcassets/AppIcon.appiconset/Contents.json b/templates/tvos/PROJ/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..8ba31b764 --- /dev/null +++ b/templates/tvos/PROJ/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,110 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-Small.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-Small@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-Small-40@2x.png", + "scale" : "2x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon.png", + "scale" : "1x" + }, + { + "size" : "57x57", + "idiom" : "iphone", + "filename" : "Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-60@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-Small.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-Small@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-Small-40.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-Small-40@2x.png", + "scale" : "2x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "Icon-Small-50.png", + "scale" : "1x" + }, + { + "size" : "50x50", + "idiom" : "ipad", + "filename" : "Icon-Small-50@2x.png", + "scale" : "2x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "Icon-72.png", + "scale" : "1x" + }, + { + "size" : "72x72", + "idiom" : "ipad", + "filename" : "Icon-72@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-76.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-76@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/templates/tvos/PROJ/Images.xcassets/LaunchImage.launchimage/Contents.json b/templates/tvos/PROJ/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 000000000..97c51d6b7 --- /dev/null +++ b/templates/tvos/PROJ/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,158 @@ +{ + "images" : [ + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "736h", + "filename" : "Default-736h@3x.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "736h", + "filename" : "Default-736h-Landscape@3x.png", + "minimum-system-version" : "8.0", + "orientation" : "landscape", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "667h", + "filename" : "Default-667h@2x.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Default-568h@2x.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default-Portrait.png", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default-Landscape.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default-Portrait@2x.png", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default-Landscape@2x.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default@2x.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default-568h@2x.png", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "filename" : "Default-Portrait.png", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "filename" : "Default-Landscape.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "filename" : "Default-Portrait@2x.png", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "filename" : "Default-Landscape@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/templates/tvos/PROJ/PROJ-Entitlements.plist b/templates/tvos/PROJ/PROJ-Entitlements.plist new file mode 100644 index 000000000..929c4e96d --- /dev/null +++ b/templates/tvos/PROJ/PROJ-Entitlements.plist @@ -0,0 +1,8 @@ + + + + + get-task-allow + + + \ No newline at end of file diff --git a/templates/tvos/PROJ/PROJ-Info.plist b/templates/tvos/PROJ/PROJ-Info.plist new file mode 100644 index 000000000..61ca41408 --- /dev/null +++ b/templates/tvos/PROJ/PROJ-Info.plist @@ -0,0 +1,42 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ::APP_TITLE:: + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ::APP_PACKAGE:: + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ::APP_VERSION:: + CFBundleSignature + ???? + CFBundleVersion + ::APP_BUILD_NUMBER:: + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + ::foreach REQUIRED_CAPABILITY:: + ::name:: + ::if value::::else::::end:: + ::end:: + + UIStatusBarHidden + <::WIN_FULLSCREEN::/> + UIViewControllerBasedStatusBarAppearance + <::!WIN_FULLSCREEN::/> + ::if (IOS_APP_ORIENTATION != null):: + UISupportedInterfaceOrientations + ::IOS_APP_ORIENTATION::::end:: + + diff --git a/templates/tvos/PROJ/PROJ-Prefix.pch b/templates/tvos/PROJ/PROJ-Prefix.pch new file mode 100644 index 000000000..615bee923 --- /dev/null +++ b/templates/tvos/PROJ/PROJ-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the '::APP_FILE::' target in the '::APP_FILE::' project +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/templates/tvos/PROJ/haxe/Build.hxml b/templates/tvos/PROJ/haxe/Build.hxml new file mode 100644 index 000000000..7629a5804 --- /dev/null +++ b/templates/tvos/PROJ/haxe/Build.hxml @@ -0,0 +1,5 @@ +-main ApplicationMain ::HAXE_FLAGS:: +-D iphone +-D ios +--macro keep("::APP_MAIN::") +-D no-compilation \ No newline at end of file diff --git a/templates/tvos/PROJ/haxe/makefile b/templates/tvos/PROJ/haxe/makefile new file mode 100644 index 000000000..f95182e27 --- /dev/null +++ b/templates/tvos/PROJ/haxe/makefile @@ -0,0 +1,84 @@ + +ifeq ("$(ARCHS)","normal") + ARCHS = armv6 armv7 i386 +endif + +HAXE_BUILDS := $(ARCHS:%=build-haxe-%) + +ifeq ("$(ACTION)","clean") +default: clean +else +default: $(HAXE_BUILDS) +endif + +ifeq ("$(CONFIGURATION)","Debug") + BUILD_STYLE := Debug +endif + +default: debug_print + +ifeq ("$(BUILD_STYLE)","Debug") + DEBUG := -debug + DEF_DEBUG := -Ddebug + CONFIG := Debug +else + DEBUG := + DEF_DEBUG := + CONFIG := Release +endif + +ifeq ("$(CLANG_ENABLE_OBJC_ARC)", "YES") + HXCPP_CLANG := -DHXCPP_CLANG -DOBJC_ARC +else + HXCPP_CLANG := +endif + +HAXE_OS := $(PLATFORM_NAME) +ifeq ("$(HAXE_OS)","iphonesimulator") + HAXE_OS := iphonesim +endif +CONFIG := $(CONFIG)-$(HAXE_OS) + +debug_print: + @echo "Make $(HAXE_BUILDS)" + +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 -Dios -Diphone -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).iphonesim.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) + cd build/$(CONFIG)-64; export HXCPP_NO_COLOR=1; haxelib run ::CPP_BUILD_LIBRARY:: Build.xml -Dios -Diphone -Dsimulator -DHXCPP_M64 -DHXCPP_CPP11 $(DEF_DEBUG) $(HXCPP_CLANG) `cat Options.txt | while read LINE; do printf " -D$$LINE"; done` + cp build/$(CONFIG)-64/::CPP_LIBPREFIX::ApplicationMain$(DEBUG).iphonesim-64.a ../lib/x86_64$(LIB_DEST) + touch ../Classes/Main.mm + +build-haxe-armv6: + @echo "Haxe device build: $(CONFIG)" + haxe Build.hxml -D HXCPP_ARMV6 -cpp build/$(CONFIG) $(DEBUG) + cd build/$(CONFIG); export HXCPP_NO_COLOR=1; haxelib run ::CPP_BUILD_LIBRARY:: Build.xml -Dios -Diphone -DHXCPP_ARMV6 -DHXCPP_CPP11 $(DEF_DEBUG) $(HXCPP_CLANG) `cat Options.txt | while read LINE; do printf " -D$$LINE"; done` + cp build/$(CONFIG)/::CPP_LIBPREFIX::ApplicationMain$(DEBUG).iphoneos.a ../lib/armv6$(LIB_DEST) + touch ../Classes/Main.mm + +build-haxe-armv7: + @echo "Haxe device build: $(CONFIG)-v7" + haxe Build.hxml -D HXCPP_ARMV7 -cpp build/$(CONFIG)-v7 $(DEBUG) + cd build/$(CONFIG)-v7; export HXCPP_NO_COLOR=1; haxelib run ::CPP_BUILD_LIBRARY:: Build.xml -Dios -Diphone -DHXCPP_ARMV7 -DHXCPP_CPP11 $(DEF_DEBUG) $(HXCPP_CLANG) `cat Options.txt | while read LINE; do printf " -D$$LINE"; done` + cp build/$(CONFIG)-v7/::CPP_LIBPREFIX::ApplicationMain$(DEBUG).iphoneos-v7.a ../lib/armv7$(LIB_DEST) + touch ../Classes/Main.mm + +build-haxe-arm64: + @echo "Haxe device build: $(CONFIG)-64" + haxe Build.hxml -D HXCPP_ARM64 -cpp build/$(CONFIG)-64 $(DEBUG) + cd build/$(CONFIG)-64; export HXCPP_NO_COLOR=1; haxelib run ::CPP_BUILD_LIBRARY:: Build.xml -Dios -Diphone -DHXCPP_ARM64 -DHXCPP_CPP11 $(DEF_DEBUG) $(HXCPP_CLANG) `cat Options.txt | while read LINE; do printf " -D$$LINE"; done` + cp build/$(CONFIG)-64/::CPP_LIBPREFIX::ApplicationMain$(DEBUG).iphoneos-64.a ../lib/arm64$(LIB_DEST) + touch ../Classes/Main.mm + +clean: + rm -rf build