Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: Source/core/core.gyp/scripts/action_makenames.py

Issue 14456006: Fixes to make scripts generate includes with paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698