From aab8751ac549e2b72378a07d8a526d71925111a2 Mon Sep 17 00:00:00 2001 From: Aleks Date: Mon, 12 Oct 2015 13:32:39 -0700 Subject: [PATCH] Added tvOS support. --- examples/runtime/tvos-info.plist | 30 ++++++++++++++++++++++++++++++ scripts/example-common.lua | 2 +- scripts/genie.lua | 8 +++++++- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 examples/runtime/tvos-info.plist diff --git a/examples/runtime/tvos-info.plist b/examples/runtime/tvos-info.plist new file mode 100644 index 00000000..4aa5d31f --- /dev/null +++ b/examples/runtime/tvos-info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + arm64 + + + diff --git a/scripts/example-common.lua b/scripts/example-common.lua index 5a5dd7ce..98dad9af 100644 --- a/scripts/example-common.lua +++ b/scripts/example-common.lua @@ -61,7 +61,7 @@ project ("example-common") } end - configuration { "osx or ios*" } + configuration { "osx or ios* or tvos*" } files { path.join(BGFX_DIR, "examples/common/**.mm"), } diff --git a/scripts/genie.lua b/scripts/genie.lua index 402a0e38..ce3e8d8e 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -312,7 +312,7 @@ function exampleProject(_name) "-framework OpenGL", } - configuration { "ios*" } + configuration { "ios* or tvos*" } kind "ConsoleApp" linkoptions { "-framework CoreFoundation", @@ -329,6 +329,12 @@ function exampleProject(_name) path.join(BGFX_DIR, "examples/runtime/iOS-Info.plist"), } + configuration { "xcode4", "tvos" } + kind "WindowedApp" + files { + path.join(BGFX_DIR, "examples/runtime/tvOS-Info.plist"), + } + configuration { "qnx*" } targetextension "" links {