Index: Source/core/core.gyp/scripts/action_makenames.py |
diff --git a/Source/core/core.gyp/scripts/action_makenames.py b/Source/core/core.gyp/scripts/action_makenames.py |
index 4cf45cd6c988328d6b2acdc9f3eff1746f656f62..a8ec13be26861e5fe15757d1c39b4d5da30a3dcb 100644 |
--- a/Source/core/core.gyp/scripts/action_makenames.py |
+++ b/Source/core/core.gyp/scripts/action_makenames.py |
@@ -87,7 +87,11 @@ def SplitArgsIntoSections(args): |
def main(args): |
- sections = SplitArgsIntoSections(args[1:]) |
+ if args[1] != "--idlToPathFile" or len(args) < 3: |
+ print "FATAL: Missing --idlToPathFile argument: " + str(args) |
+ return 1 |
+ os.environ["IDLTOPATHFILE"] = args[2] |
+ sections = SplitArgsIntoSections(args[3:]) |
assert len(sections) == 2 or len(sections) == 3 |
(outputs, inputs) = sections[:2] |
if len(sections) == 3: |
@@ -131,10 +135,10 @@ def main(args): |
eventsInput = inputAbsPosix |
elif inputBasename.endswith('Names.in'): |
options.append(inputAbsPosix) |
- elif inputBasename.endswith('.pm'): |
+ elif inputBasename.endswith('.pm') or inputBasename.endswith('.py'): |
continue |
else: |
- assert False |
+ assert False, "Unexcepted file type "+ inputeBasename |
assert makeNamesInput != None |
assert tagInput != None or attrInput != None or eventsInput != None or ('--fonts' in options) |