summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/tests/actions/xcode/test_xcode_project.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/tests/actions/xcode/test_xcode_project.lua')
-rw-r--r--3rdparty/genie/tests/actions/xcode/test_xcode_project.lua63
1 files changed, 63 insertions, 0 deletions
diff --git a/3rdparty/genie/tests/actions/xcode/test_xcode_project.lua b/3rdparty/genie/tests/actions/xcode/test_xcode_project.lua
index b7ea96af26c..608e399583b 100644
--- a/3rdparty/genie/tests/actions/xcode/test_xcode_project.lua
+++ b/3rdparty/genie/tests/actions/xcode/test_xcode_project.lua
@@ -147,6 +147,18 @@
end
+ function suite.PBXFileReference_ListsBundleTarget()
+ kind "Bundle"
+ prepare()
+ xcode.PBXFileReference(tr)
+ test.capture [[
+/* Begin PBXFileReference section */
+ [MyProject.bundle:product] /* MyProject.bundle */ = {isa = PBXFileReference; explicitFileType = "wrapper.cfbundle"; includeInIndex = 0; name = "MyProject.bundle"; path = "MyProject.bundle"; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+ ]]
+ end
+
+
function suite.PBXFileReference_ListsSourceFiles()
files { "source.c" }
prepare()
@@ -611,6 +623,34 @@
end
+ function suite.PBXNativeTarget_OnBundle()
+ kind "Bundle"
+ prepare()
+ xcode.PBXNativeTarget(tr) --TODO adapt
+ test.capture [[
+/* Begin PBXNativeTarget section */
+ MyProject.bundle:target] /* MyProject */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = [MyProject.bundle:cfg] /* Build configuration list for PBXNativeTarget "MyProject" */;
+ buildPhases = (
+ [MyProject.bundle:rez] /* Resources */,
+ [MyProject.bundle:src] /* Sources */,
+ [MyProject.bundle:fxs] /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "MyProject";
+ productName = "MyProject";
+ productReference = [MyProject.bundle:product] /* MyProject.bundle */;
+ productType = "com.apple.product-type.bundle";
+ };
+/* End PBXNativeTarget section */
+ ]]
+ end
+
+
function suite.PBXNativeTarget_OnBuildCommands()
prebuildcommands { "prebuildcmd" }
prelinkcommands { "prelinkcmd" }
@@ -938,6 +978,29 @@
end
+ function suite.XCBuildConfigurationTarget_OnBundle()
+ kind "Bundle"
+ prepare()
+ xcode.XCBuildConfiguration_Target(tr, tr.products.children[1], tr.configs[1])
+ test.capture [[
+ [libMyProject.dylib:Debug] /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ EXECUTABLE_PREFIX = lib;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
+ PRODUCT_NAME = "MyProject";
+ PRODUCT_BUNDLE_IDENTIFIER = genie.MyProject;
+ };
+ name = "Debug";
+ };
+ ]]
+ end
+
+
function suite.XCBuildConfigurationTarget_OnTargetPrefix()
kind "SharedLib"
targetprefix "xyz"