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

Unified Diff: tools/create_sdk.py

Issue 8784005: Build the sdk in PRODUCT_DIR. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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
« dart.gyp ('K') | « dart.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
===================================================================
--- tools/create_sdk.py (revision 2040)
+++ tools/create_sdk.py (working copy)
@@ -41,7 +41,7 @@
from os.path import dirname, join, realpath, exists, isdir
from shutil import copyfile, copymode, copytree, ignore_patterns, rmtree
-def Main():
+def Main(argv):
# Pull in all of the gpyi files which will be munged into the sdk.
corelib_sources = \
(eval(open("corelib/src/corelib_sources.gypi").read()))['sources']
@@ -62,7 +62,7 @@
HOME = dirname(dirname(realpath(__file__)))
- SDK = join(HOME, 'sdk')
+ SDK = argv[1]
if exists(SDK):
rmtree(SDK)
@@ -288,4 +288,4 @@
ignore=ignore_patterns('.svn'))
if __name__ == '__main__':
- sys.exit(Main())
+ sys.exit(Main(sys.argv))
« dart.gyp ('K') | « dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698