| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'includes': [ | 6 'includes': [ |
| 7 'vm/vm.gypi', | 7 'vm/vm.gypi', |
| 8 'bin/bin.gypi', | 8 'bin/bin.gypi', |
| 9 'third_party/double-conversion/src/double-conversion.gypi', | 9 'third_party/double-conversion/src/double-conversion.gypi', |
| 10 'third_party/jscre/jscre.gypi', | 10 'third_party/jscre/jscre.gypi', |
| 11 'tools/gyp/runtime-configurations.gypi', | 11 'tools/gyp/runtime-configurations.gypi', |
| 12 '../tools/gyp/source_filter.gypi', | 12 '../tools/gyp/source_filter.gypi', |
| 13 ], | 13 ], |
| 14 'variables': { |
| 15 'version_in_cc_file': 'vm/version_in.cc', |
| 16 'version_cc_file': '<(SHARED_INTERMEDIATE_DIR)/version.cc', |
| 17 }, |
| 14 'targets': [ | 18 'targets': [ |
| 15 { | 19 { |
| 16 'target_name': 'libdart', | 20 'target_name': 'libdart', |
| 17 'type': 'static_library', | 21 'type': 'static_library', |
| 18 'dependencies': [ | 22 'dependencies': [ |
| 19 'libdart_lib', | 23 'libdart_lib', |
| 20 'libdart_vm', | 24 'libdart_vm', |
| 21 'libjscre', | 25 'libjscre', |
| 22 'libdouble_conversion', | 26 'libdouble_conversion', |
| 27 'generate_version_cc_file', |
| 23 ], | 28 ], |
| 24 'include_dirs': [ | 29 'include_dirs': [ |
| 25 '.', | 30 '.', |
| 26 ], | 31 ], |
| 27 'sources': [ | 32 'sources': [ |
| 28 'include/dart_api.h', | 33 'include/dart_api.h', |
| 29 'include/dart_debugger_api.h', | 34 'include/dart_debugger_api.h', |
| 30 'vm/dart_api_impl.cc', | 35 'vm/dart_api_impl.cc', |
| 31 'vm/debugger_api_impl.cc', | 36 'vm/debugger_api_impl.cc', |
| 37 'vm/version.h', |
| 38 '<(version_cc_file)', |
| 32 ], | 39 ], |
| 33 'direct_dependent_settings': { | 40 'direct_dependent_settings': { |
| 34 'include_dirs': [ | 41 'include_dirs': [ |
| 35 'include', | 42 'include', |
| 36 ], | 43 ], |
| 37 }, | 44 }, |
| 38 }, | 45 }, |
| 39 { | 46 { |
| 40 # The Dart API is exported from this library to dynamically loaded shared | 47 # The Dart API is exported from this library to dynamically loaded shared |
| 41 # libraries. | 48 # libraries. |
| 42 'target_name': 'libdart_export', | 49 'target_name': 'libdart_export', |
| 43 'type': 'static_library', | 50 'type': 'static_library', |
| 44 'dependencies': [ | 51 'dependencies': [ |
| 45 'libdart_lib', | 52 'libdart_lib', |
| 46 'libdart_vm', | 53 'libdart_vm', |
| 47 'libjscre', | 54 'libjscre', |
| 48 'libdouble_conversion', | 55 'libdouble_conversion', |
| 56 'generate_version_cc_file', |
| 49 ], | 57 ], |
| 50 'include_dirs': [ | 58 'include_dirs': [ |
| 51 '.', | 59 '.', |
| 52 ], | 60 ], |
| 53 'sources': [ | 61 'sources': [ |
| 54 'include/dart_api.h', | 62 'include/dart_api.h', |
| 55 'include/dart_debugger_api.h', | 63 'include/dart_debugger_api.h', |
| 56 'vm/dart_api_impl.cc', | 64 'vm/dart_api_impl.cc', |
| 57 'vm/debugger_api_impl.cc', | 65 'vm/debugger_api_impl.cc', |
| 66 'vm/version.h', |
| 67 '<(version_cc_file)', |
| 58 ], | 68 ], |
| 59 'defines': [ | 69 'defines': [ |
| 60 'DART_SHARED_LIB', | 70 'DART_SHARED_LIB', |
| 61 ], | 71 ], |
| 62 'direct_dependent_settings': { | 72 'direct_dependent_settings': { |
| 63 'include_dirs': [ | 73 'include_dirs': [ |
| 64 'include', | 74 'include', |
| 65 ], | 75 ], |
| 66 }, | 76 }, |
| 67 }, | 77 }, |
| 78 { |
| 79 'target_name': 'generate_version_cc_file', |
| 80 'type': 'none', |
| 81 'actions': [ |
| 82 { |
| 83 'action_name': 'generate_version_cc', |
| 84 'inputs': [ |
| 85 'tools/make_version.py', |
| 86 '../tools/VERSION', |
| 87 '<(version_in_cc_file)', |
| 88 ], |
| 89 'outputs': [ |
| 90 '<(version_cc_file)', |
| 91 ], |
| 92 'action': [ |
| 93 'python', |
| 94 'tools/make_version.py', |
| 95 '--output', '<(version_cc_file)', |
| 96 '--input', '<(version_in_cc_file)', |
| 97 '--version', '../tools/VERSION', |
| 98 ], |
| 99 }, |
| 100 ], |
| 101 }, |
| 68 ], | 102 ], |
| 69 } | 103 } |
| OLD | NEW |