diff options
author | 2016-11-16 20:54:15 +0100 | |
---|---|---|
committer | 2016-11-16 21:00:28 +0100 | |
commit | ffc04d2baede0eab5768aa6a2ca5ea67cfa9ed86 (patch) | |
tree | 30ba47be0d8ad4c1ba703eb911023f18db185d3b /3rdparty/genie/tests/actions/xcode/test_xcode_project.lua | |
parent | f68779cf745b20f82ff1785207657aceed41fc3e (diff) |
Sync with GENie and addition of VS2017 (nw)
Diffstat (limited to '3rdparty/genie/tests/actions/xcode/test_xcode_project.lua')
-rw-r--r-- | 3rdparty/genie/tests/actions/xcode/test_xcode_project.lua | 63 |
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" |