mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Build core library stubs as part of building the SDK.
BUG=38265 R=floitsch@google.com Review URL: https://codereview.chromium.org//392073002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38302 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
e7ddd5d047
commit
f067ad0dc8
3 changed files with 33 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
'runtime/dart-runtime.gyp:dart',
|
||||
'utils/compiler/compiler.gyp:dart2js',
|
||||
'utils/pub/pub.gyp:pub',
|
||||
'utils/pub/pub.gyp:core_stubs',
|
||||
'utils/dartfmt/dartfmt.gyp:dartfmt',
|
||||
'utils/dartanalyzer/dartanalyzer.gyp:dartanalyzer',
|
||||
],
|
||||
|
@ -29,6 +30,7 @@
|
|||
'<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/dartanalyzer.dart.snapshot',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart',
|
||||
'tools/VERSION'
|
||||
],
|
||||
'outputs': [
|
||||
|
|
|
@ -226,6 +226,9 @@ def Main(argv):
|
|||
join(RESOURCE),
|
||||
ignore=ignore_patterns('.svn'))
|
||||
|
||||
copytree(join(SNAPSHOT, 'core_stubs'),
|
||||
join(RESOURCE, 'dart', 'core_stubs'))
|
||||
|
||||
# Copy in 7zip for Windows.
|
||||
if HOST_OS == 'win32':
|
||||
copytree(join(HOME, 'third_party', '7zip'),
|
||||
|
|
|
@ -36,6 +36,34 @@
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'core_stubs',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'../../runtime/dart-runtime.gyp:dart',
|
||||
'../../pkg/pkg.gyp:pkg_packages',
|
||||
'../../pkg/pkg_files.gyp:pkg_files_stamp'
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_core_stubs',
|
||||
'inputs': [
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
'../../sdk/lib/_internal/libraries.dart',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart',
|
||||
],
|
||||
'action': [
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
'--package-root=<(PRODUCT_DIR)/packages/',
|
||||
'../../pkg/stub_core_library/bin/stub_core_library.dart',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/core_stubs',
|
||||
],
|
||||
}
|
||||
]
|
||||
},
|
||||
# Other targets depend on pub files, but have to many inputs, which causes
|
||||
# issues on some platforms.
|
||||
# This target lists all the files in sdk/lib/_internal/pub,
|
||||
|
|
Loading…
Reference in a new issue