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

Unified Diff: dart/tools/gyp_dart.py

Issue 26212004: standalone.deps: Change gyp generation to make "./tools/build.py runtime" work (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« no previous file with comments | « dart/tools/gyp/common.gypi ('k') | deps/standalone.deps/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « dart/tools/gyp/common.gypi ('k') | deps/standalone.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698