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

Unified Diff: Source/bindings/scripts/unstable/idl_compiler.py

Issue 24156003: Revert IDL compiler build flow to Perl, rename 'deprecated' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 3 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/bindings/scripts/unstable/idl_compiler.py
diff --git a/Source/bindings/scripts/idl_compiler.py b/Source/bindings/scripts/unstable/idl_compiler.py
similarity index 90%
rename from Source/bindings/scripts/idl_compiler.py
rename to Source/bindings/scripts/unstable/idl_compiler.py
index e26846e15e8079e6667510f5500f1da46c175b93..b95a759f44b3f0c5f65452a2e248ca3bb285ef48 100755
--- a/Source/bindings/scripts/idl_compiler.py
+++ b/Source/bindings/scripts/unstable/idl_compiler.py
@@ -29,18 +29,13 @@
"""Compile an .idl file to Blink V8 bindings (.h and .cpp files).
-We are porting the IDL compiler from Perl to Python. The plan is as follows.
-We will temporarily have two build flows (see ../derived_sources.gyp):
-[1] Perl: deprecated_generate_bindings.pl, which calls:
- deprecated_idl_parser.pm => deprecated_code_generator_v8.pm
-[2] Python: idl_compiler.py, which calls:
- IDL lexer => IDL parser => Python object builder =>
- interface dependency resolver => IDL semantic validator =>
- C++ code generator
-
-We will move IDL files from the Perl build flow [1] to the Python build flow [2]
-incrementally. See http://crbug.com/239771
+FIXME: Not currently used in build.
+This is a rewrite of the Perl IDL compiler in Python, but is not complete.
+Once it is complete, we will switch all IDL files over to Python at once.
+Until then, please work on the Perl IDL compiler.
+For details, see bug http://crbug.com/239771
"""
+
import optparse
import os
import pickle
@@ -52,7 +47,8 @@ import code_generator_v8
import idl_reader
module_path, _ = os.path.split(__file__)
-source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir))
+source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir, os.pardir))
+
def parse_options():
parser = optparse.OptionParser()
« no previous file with comments | « Source/bindings/scripts/unstable/code_generator_v8.py ('k') | Source/bindings/scripts/unstable/idl_definitions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698