summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/scons2ninja.py')
-rwxr-xr-xBuildTools/scons2ninja.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/BuildTools/scons2ninja.py b/BuildTools/scons2ninja.py
index 98b3518..4a7631a 100755
--- a/BuildTools/scons2ninja.py
+++ b/BuildTools/scons2ninja.py
@@ -221,6 +221,9 @@ ninja_post = []
scons_cmd = "scons"
scons_dependencies = ['SConstruct'] + rglob('SConscript')
+def ninja_custom_command(ninja, line) :
+ return False
+
CONFIGURATION_FILE = '.scons2ninja.conf'
execfile(CONFIGURATION_FILE)
@@ -320,6 +323,10 @@ ninja.rule('ibtool',
command = '$ibtool $ibtoolflags --compile $out $in',
description = 'IBTOOL $out')
+ninja.rule('dsymutil',
+ command = '$dsymutil $dsymutilflags -o $out $in',
+ description = 'DSYMUTIL $out')
+
ninja.rule('generator',
command = "python " + SCRIPT + " ${scons_args}",
depfile = ".scons2ninja.deps",
@@ -559,7 +566,12 @@ for line in build_lines :
files, flags = extract_non_flags(flags)
ninja.build(out, 'ibtool', files, ibtoolflags = flags)
- else :
+ elif tool == 'dsymutil':
+ out, flags = extract_binary_flag("-o", flags)
+ files, flags = extract_non_flags(flags)
+ ninja.build(out, 'dsymutil', files, dsymutilflags = flags)
+
+ elif not ninja_custom_command(ninja, line) :
raise Exception("Unknown tool: '" + line + "'")