mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 20:51:50 +00:00
42813dffe6
Currently runtime/tools/make_version.py creates the version string itself. Since this is already done in tools/release/version.dart, we should use that. tools/utils.py provides a python wrapper around it with GetVersion(). Review URL: https://codereview.chromium.org//11440010 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15769 260f80e4-7a28-3924-810f-c04153c831b5
109 lines
2.9 KiB
Python
109 lines
2.9 KiB
Python
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
{
|
|
'includes': [
|
|
'tools/gyp/runtime-configurations.gypi',
|
|
'vm/vm.gypi',
|
|
'bin/bin.gypi',
|
|
'embedders/android/android_embedder.gypi',
|
|
'third_party/double-conversion/src/double-conversion.gypi',
|
|
'third_party/jscre/jscre.gypi',
|
|
'../tools/gyp/source_filter.gypi',
|
|
],
|
|
'variables': {
|
|
'version_in_cc_file': 'vm/version_in.cc',
|
|
'version_cc_file': '<(SHARED_INTERMEDIATE_DIR)/version.cc',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'libdart',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'libdart_lib',
|
|
'libdart_vm',
|
|
'libjscre',
|
|
'libdouble_conversion',
|
|
'generate_version_cc_file',
|
|
],
|
|
'include_dirs': [
|
|
'.',
|
|
],
|
|
'sources': [
|
|
'include/dart_api.h',
|
|
'include/dart_debugger_api.h',
|
|
'vm/dart_api_impl.cc',
|
|
'vm/debugger_api_impl.cc',
|
|
'vm/version.h',
|
|
'<(version_cc_file)',
|
|
],
|
|
'defines': [
|
|
# The only effect of DART_SHARED_LIB is to export the Dart API entries.
|
|
'DART_SHARED_LIB',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'include',
|
|
],
|
|
},
|
|
},
|
|
{
|
|
'target_name': 'generate_version_cc_file',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'libdart_dependency_helper',
|
|
],
|
|
'actions': [
|
|
{
|
|
'action_name': 'generate_version_cc',
|
|
'inputs': [
|
|
'../tools/make_version.py',
|
|
'../tools/utils.py',
|
|
'../tools/version.dart',
|
|
'../tools/release/version.dart',
|
|
'../tools/VERSION',
|
|
'<(version_in_cc_file)',
|
|
# Depend on libdart_dependency_helper to track the libraries it
|
|
# depends on.
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)libdart_dependency_helper<(EXECUTABLE_SUFFIX)',
|
|
],
|
|
'outputs': [
|
|
'<(version_cc_file)',
|
|
],
|
|
'action': [
|
|
'python',
|
|
'-u', # Make standard I/O unbuffered.
|
|
'../tools/make_version.py',
|
|
'--output', '<(version_cc_file)',
|
|
'--input', '<(version_in_cc_file)',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'libdart_dependency_helper',
|
|
'type': 'executable',
|
|
# The dependencies here are the union of the dependencies of libdart and
|
|
# libdart_withcore.
|
|
'dependencies': [
|
|
'libdart_lib_withcore',
|
|
'libdart_lib',
|
|
'libdart_vm',
|
|
'libjscre',
|
|
'libdouble_conversion',
|
|
],
|
|
'sources': [
|
|
'vm/libdart_dependency_helper.cc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'runtime_packages',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'../pkg/pkg.gyp:pkg_packages',
|
|
],
|
|
},
|
|
],
|
|
}
|