mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 21:05:39 +00:00
Tools directory for ticket #1
This commit is contained in:
parent
ecfd936095
commit
8337cad7ee
207 changed files with 25761 additions and 0 deletions
36
Tools/projectGenerator/templates/xcode.groups.tpl
Normal file
36
Tools/projectGenerator/templates/xcode.groups.tpl
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[* *]
|
||||
[* emit a PBXGroup for this folder *]
|
||||
[* *]
|
||||
[if is_array($dirWalk)]
|
||||
A[$groupHash] /* [$groupName] */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
[foreach from=$dirWalk item=child key=key]
|
||||
[if is_array($child)]
|
||||
[assign var='childpath' value=$groupPath|cat:"/"|cat:$key]
|
||||
[assign var=childhash value=$childpath|uid]
|
||||
A[$childhash] /* [$key] -- [$childpath] */,
|
||||
[else]
|
||||
F[$child->hash] /* [$child->name] */,
|
||||
[/if]
|
||||
[/foreach]
|
||||
);
|
||||
name = [$groupName];
|
||||
sourceTree = "<group>"; /* [$groupPath] */
|
||||
};
|
||||
|
||||
[/if]
|
||||
[* *]
|
||||
[* now we emit a group for every child folder *]
|
||||
[* *]
|
||||
[foreach from=$dirWalk item=child key=key]
|
||||
[if is_array($child)]
|
||||
[assign var='childpath' value=$groupPath|cat:"/"|cat:$key]
|
||||
[assign var='childhash' value=$childpath|uid]
|
||||
[include file="xcode.groups.tpl" dirWalk=$child groupPath=$childpath groupName=$key groupHash=$childhash]
|
||||
[/if]
|
||||
[/foreach]
|
||||
[*----------------------------------------------------------------------------*]
|
||||
[* groupPath does not correctly correspond to the file system, and so it is *]
|
||||
[* only used for getting the groupHash. *]
|
||||
[*----------------------------------------------------------------------------*]
|
||||
Loading…
Add table
Add a link
Reference in a new issue