summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2014-01-19 11:46:51 (GMT)
committerRemko Tronçon <git@el-tramo.be>2014-01-19 16:49:19 (GMT)
commitcbd01a5368f0b761d2032d75c9f7dfde2bf61578 (patch)
tree5016505b1e977e84655cc3bba4435ef7cb80e811 /BuildTools
parent4083d6da47ac0e3b77da9c7c222a9439b3e1c04c (diff)
downloadswift-contrib-cbd01a5368f0b761d2032d75c9f7dfde2bf61578.zip
swift-contrib-cbd01a5368f0b761d2032d75c9f7dfde2bf61578.tar.bz2
Sluift: Add iTunes & PEP User Tune support
Change-Id: I25b3840bb40ce38531922cc737bc82828e026d3f
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/scons2ninja.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/BuildTools/scons2ninja.py b/BuildTools/scons2ninja.py
index 2666ae6..0ca3e42 100755
--- a/BuildTools/scons2ninja.py
+++ b/BuildTools/scons2ninja.py
@@ -343,6 +343,9 @@ ninja.rule('generator',
generator = '1',
description = 'Regenerating build.ninja')
+ninja.rule('sdef',
+ command = 'sdef $in | sdp -fh --basename $basename -o $outdir',
+ description = 'SDEF $out')
################################################################################
# Build Statements
@@ -580,6 +583,15 @@ for line in build_lines :
files, flags = extract_non_flags(flags)
ninja.build(out, 'dsymutil', files, dsymutilflags = flags)
+ elif tool == 'sdef' :
+ source = flags[0];
+ outdir, flags = extract_binary_flag("-o", flags)
+ basename, flags = extract_binary_flag("--basename", flags)
+ ninja.build(os.path.join(outdir, basename + ".h"), 'sdef', [source],
+ basename = basename,
+ outdir = outdir)
+
+
elif not ninja_custom_command(ninja, line) :
raise Exception("Unknown tool: '" + line + "'")