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
diff options
context:
space:
mode:
authorstarkos <none@none>2010-01-05 22:27:34 +0300
committerstarkos <none@none>2010-01-05 22:27:34 +0300
commitd6a471f3624a6cce43794cb9699be02208eb228e (patch)
treee8db25e27968dabd5abee9d0a1f057f29a32a373 /tests/actions/xcode
parenta11e817cb9dcc88fb6a175ae120dbf45b33e19bb (diff)
Alpha sort files in Xcode projects
Diffstat (limited to 'tests/actions/xcode')
-rw-r--r--tests/actions/xcode/test_xcode_project.lua32
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/actions/xcode/test_xcode_project.lua b/tests/actions/xcode/test_xcode_project.lua
index 6d44ead..ef2e27a 100644
--- a/tests/actions/xcode/test_xcode_project.lua
+++ b/tests/actions/xcode/test_xcode_project.lua
@@ -340,6 +340,36 @@
end
+ function suite.PBXGroup_SortsFiles()
+ files { "test.h", "source.h", "source.cpp" }
+ prepare()
+ xcode.PBXGroup(tr)
+ test.capture [[
+/* Begin PBXGroup section */
+ [MyProject] /* MyProject */ = {
+ isa = PBXGroup;
+ children = (
+ [source.cpp] /* source.cpp */,
+ [source.h] /* source.h */,
+ [test.h] /* test.h */,
+ [Products] /* Products */,
+ );
+ name = MyProject;
+ sourceTree = "<group>";
+ };
+ [Products] /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ [MyProject:product] /* MyProject */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+ ]]
+ end
+
+
function suite.PBXGroup_OnResourceFiles()
files { "English.lproj/MainMenu.xib", "French.lproj/MainMenu.xib", "Info.plist" }
prepare()
@@ -680,8 +710,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- [hello.cpp:build] /* hello.cpp in Sources */,
[goodbye.cpp:build] /* goodbye.cpp in Sources */,
+ [hello.cpp:build] /* hello.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};