Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2011-08-16 00:00:20 +0400
committerJason Perkins <starkos@industriousone.com>2011-08-16 00:00:20 +0400
commitb950a1cc5f64b5d3236dc527c33608a60ae9da97 (patch)
treef602e0b92a44ceb2cfb6b4c4e4f371fd44c7bbf9 /tests
parent022012e49cd9e1df562a17b2c2134dccb1457f05 (diff)
Added virtual path support to Xcode3
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/xcode/test_xcode_project.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/actions/xcode/test_xcode_project.lua b/tests/actions/xcode/test_xcode_project.lua
index 8437ee0..642e68e 100644
--- a/tests/actions/xcode/test_xcode_project.lua
+++ b/tests/actions/xcode/test_xcode_project.lua
@@ -81,6 +81,19 @@
]]
end
+ function suite.PBXBuildFile_IgnoresVpaths()
+ files { "source.h", "source.c", "source.cpp", "Info.plist" }
+ vpaths { ["Source Files"] = { "**.c", "**.cpp" } }
+ prepare()
+ xcode.PBXBuildFile(tr)
+ test.capture [[
+/* Begin PBXBuildFile section */
+ [source.c:build] /* source.c in Sources */ = {isa = PBXBuildFile; fileRef = [source.c] /* source.c */; };
+ [source.cpp:build] /* source.cpp in Sources */ = {isa = PBXBuildFile; fileRef = [source.cpp] /* source.cpp */; };
+/* End PBXBuildFile section */
+ ]]
+ end
+
---------------------------------------------------------------------------
-- PBXFileReference tests
@@ -467,6 +480,34 @@
end
+ function suite.PBXGroup_OnVpaths()
+ files { "include/premake/source.h" }
+ vpaths { ["Headers"] = "**.h" }
+ prepare()
+ xcode.PBXGroup(tr)
+ test.capture [[
+/* Begin PBXGroup section */
+ [MyProject] /* MyProject */ = {
+ isa = PBXGroup;
+ children = (
+ [Headers] /* Headers */,
+ [Products] /* Products */,
+ );
+ name = "MyProject";
+ sourceTree = "<group>";
+ };
+ [Headers] /* Headers */ = {
+ isa = PBXGroup;
+ children = (
+ [source.h] /* source.h */,
+ );
+ name = "Headers";
+ sourceTree = "<group>";
+ };
+ ]]
+ end
+
+
---------------------------------------------------------------------------
-- PBXNativeTarget tests
---------------------------------------------------------------------------