Index: dart/tools/gyp_dart.py |
diff --git a/dart/tools/gyp_dart.py b/dart/tools/gyp_dart.py |
index d3f12a812814129114d69c60f9b8b7a5364e6320..8bc3984f0affc4fe83c049914dc4a9fb267d8155 100644 |
--- a/dart/tools/gyp_dart.py |
+++ b/dart/tools/gyp_dart.py |
@@ -18,8 +18,17 @@ def execute(args): |
return process.returncode |
def main(): |
+ component = 'all' |
+ if len(sys.argv) == 2: |
+ component = sys.argv[1] |
+ |
+ component_gyp_files = { |
+ 'all' : 'dart/dart.gyp', |
+ 'runtime' : 'dart/runtime/dart-runtime.gyp', |
+ } |
args = ['python', 'dart/third_party/gyp/gyp_main.py', |
- '--depth=dart', '-Idart/tools/gyp/all.gypi', 'dart/dart.gyp'] |
+ '--depth=dart', '-Idart/tools/gyp/all.gypi', |
+ component_gyp_files[component]] |
if sys.platform == 'win32': |
# Generate Visual Studio 2010 compatible files by default. |