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

Unified Diff: tools/create_sdk.py

Issue 10269025: Update SDK with VM native extension development files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index 4c573d80acf0c17927ef188f95957b2f3f22f0bc..10c62e919ed3face9af12c36542870161b9ab02f 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -14,7 +14,11 @@
# ..dart-sdk/
# ....bin/
# ......dart or dart.exe (executable)
+# ......dart.lib (import library for VM native extensions on Windows)
# ......frogc.dart
+# ....include/
+# ......dart_api.h
+# ......dart_debugger_api.h
# ....lib/
# ......builtin/
# ........builtin_runtime.dart
@@ -108,7 +112,9 @@ def Main(argv):
BIN = join(SDK_tmp, 'bin')
os.makedirs(BIN)
- # Copy the Dart VM binary into sdk/bin.
+ # Copy the Dart VM binary, frogc and Windows dart VM link library
+ # into sdk/bin.
+ #
# TODO(dgrove) - deal with architectures that are not ia32.
build_dir = os.path.dirname(argv[1])
frogc_file_extension = ''
@@ -116,6 +122,9 @@ def Main(argv):
if utils.GuessOS() == 'win32':
dart_file_extension = '.exe'
frogc_file_extension = '.bat'
+ dart_import_lib_src = join(HOME, build_dir, 'dart.lib')
+ dart_import_lib_dest = join(BIN, 'dart.lib')
+ copyfile(dart_import_lib_src, dart_import_lib_dest)
dart_src_binary = join(HOME, build_dir, 'dart' + dart_file_extension)
dart_dest_binary = join(BIN, 'dart' + dart_file_extension)
frogc_src_binary = join(HOME, 'frog', 'scripts', 'bootstrap',
@@ -139,6 +148,16 @@ def Main(argv):
# TODO(dgrove): copy and fix up frog.dart, minfrogc.dart.
#
+ # Create and populate sdk/include.
+ #
+ INCLUDE = join(SDK_tmp, 'include')
+ os.makedirs(INCLUDE)
+ copyfile(join(HOME, 'runtime', 'include', 'dart_api.h'),
+ join(INCLUDE, 'dart_api.h'))
+ copyfile(join(HOME, 'runtime', 'include', 'dart_debugger_api.h'),
+ join(INCLUDE, 'dart_debugger_api.h'))
+
+ #
# Create and populate sdk/lib.
#
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698