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 'tools/gyp/runtime-configurations.gypi', | 7 'tools/gyp/runtime-configurations.gypi', |
8 'vm/vm.gypi', | 8 'vm/vm.gypi', |
9 'bin/bin.gypi', | 9 'bin/bin.gypi', |
10 'third_party/double-conversion/src/double-conversion.gypi', | 10 'third_party/double-conversion/src/double-conversion.gypi', |
11 'third_party/jscre/jscre.gypi', | 11 'third_party/jscre/jscre.gypi', |
12 ], | 12 ], |
13 'variables': { | 13 'variables': { |
| 14 'gen_source_dir': '<(LIB_DIR)', |
14 'version_in_cc_file': 'vm/version_in.cc', | 15 'version_in_cc_file': 'vm/version_in.cc', |
15 'version_cc_file': '<(SHARED_INTERMEDIATE_DIR)/version.cc', | 16 'version_cc_file': '<(gen_source_dir)/version.cc', |
16 | 17 |
17 # Disable the OpenGLUI embedder by default on desktop OSes. Note, | 18 # Disable the OpenGLUI embedder by default on desktop OSes. Note, |
18 # to build this on the desktop, you need GLUT installed. | 19 # to build this on the desktop, you need GLUT installed. |
19 'enable_openglui%': 0, | 20 'enable_openglui%': 0, |
20 }, | 21 }, |
21 'conditions': [ | 22 'conditions': [ |
22 ['OS=="android" or enable_openglui==1', { | 23 ['OS=="android" or enable_openglui==1', { |
23 'includes': [ | 24 'includes': [ |
24 'embedders/openglui/openglui_embedder.gypi', | 25 'embedders/openglui/openglui_embedder.gypi', |
25 ], | 26 ], |
(...skipping 28 matching lines...) Expand all Loading... |
54 ], | 55 ], |
55 'direct_dependent_settings': { | 56 'direct_dependent_settings': { |
56 'include_dirs': [ | 57 'include_dirs': [ |
57 'include', | 58 'include', |
58 ], | 59 ], |
59 }, | 60 }, |
60 }, | 61 }, |
61 { | 62 { |
62 'target_name': 'generate_version_cc_file', | 63 'target_name': 'generate_version_cc_file', |
63 'type': 'none', | 64 'type': 'none', |
| 65 'toolsets':['target','host'], |
64 'dependencies': [ | 66 'dependencies': [ |
65 'libdart_dependency_helper', | 67 'libdart_dependency_helper', |
66 ], | 68 ], |
67 'actions': [ | 69 'actions': [ |
68 { | 70 { |
69 'action_name': 'generate_version_cc', | 71 'action_name': 'generate_version_cc', |
70 'inputs': [ | 72 'inputs': [ |
71 '../tools/make_version.py', | 73 '../tools/make_version.py', |
72 '../tools/utils.py', | 74 '../tools/utils.py', |
73 '../tools/version.dart', | 75 '../tools/version.dart', |
(...skipping 13 matching lines...) Expand all Loading... |
87 '../tools/make_version.py', | 89 '../tools/make_version.py', |
88 '--output', '<(version_cc_file)', | 90 '--output', '<(version_cc_file)', |
89 '--input', '<(version_in_cc_file)', | 91 '--input', '<(version_in_cc_file)', |
90 ], | 92 ], |
91 }, | 93 }, |
92 ], | 94 ], |
93 }, | 95 }, |
94 { | 96 { |
95 'target_name': 'libdart_dependency_helper', | 97 'target_name': 'libdart_dependency_helper', |
96 'type': 'executable', | 98 'type': 'executable', |
| 99 'toolsets':['target','host'], |
97 # The dependencies here are the union of the dependencies of libdart and | 100 # The dependencies here are the union of the dependencies of libdart and |
98 # libdart_withcore. | 101 # libdart_withcore. |
99 'dependencies': [ | 102 'dependencies': [ |
100 'libdart_lib_withcore', | 103 'libdart_lib_withcore', |
101 'libdart_lib', | 104 'libdart_lib', |
102 'libdart_vm', | 105 'libdart_vm', |
103 'libjscre', | 106 'libjscre', |
104 'libdouble_conversion', | 107 'libdouble_conversion', |
105 ], | 108 ], |
106 'sources': [ | 109 'sources': [ |
107 'vm/libdart_dependency_helper.cc', | 110 'vm/libdart_dependency_helper.cc', |
108 ], | 111 ], |
| 112 'product_dir':'<(PRODUCT_DIR)/<(_toolset)' |
109 }, | 113 }, |
110 { | 114 { |
111 'target_name': 'runtime_packages', | 115 'target_name': 'runtime_packages', |
112 'type': 'none', | 116 'type': 'none', |
113 'dependencies': [ | 117 'dependencies': [ |
114 '../pkg/pkg.gyp:pkg_packages', | 118 '../pkg/pkg.gyp:pkg_packages', |
115 ], | 119 ], |
116 }, | 120 }, |
117 ], | 121 ], |
118 } | 122 } |
OLD | NEW |