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 'variables': { | 6 'variables': { |
7 'builtin_in_cc_file': 'builtin_in.cc', | 7 'builtin_in_cc_file': 'builtin_in.cc', |
8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
9 'snapshot_in_cc_file': 'snapshot_in.cc', | 9 'snapshot_in_cc_file': 'snapshot_in.cc', |
10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 { | 66 { |
67 'target_name': 'libdart_builtin', | 67 'target_name': 'libdart_builtin', |
68 'type': 'static_library', | 68 'type': 'static_library', |
69 'dependencies': [ | 69 'dependencies': [ |
70 'generate_builtin_cc_file', | 70 'generate_builtin_cc_file', |
71 ], | 71 ], |
72 'include_dirs': [ | 72 'include_dirs': [ |
73 '..', | 73 '..', |
74 ], | 74 ], |
75 'sources': [ | 75 'sources': [ |
76 'builtin.cc', | 76 'builtin_natives.cc', |
77 'builtin.h', | 77 'builtin.h', |
78 'dartutils.h', | 78 'dartutils.h', |
79 'dartutils.cc', | 79 'dartutils.cc', |
80 'directory.h', | 80 'directory.h', |
81 'directory.cc', | 81 'directory.cc', |
82 'directory_posix.cc', | 82 'directory_posix.cc', |
83 'directory_win.cc', | 83 'directory_win.cc', |
84 'eventhandler.cc', | 84 'eventhandler.cc', |
85 'eventhandler.h', | 85 'eventhandler.h', |
86 'eventhandler_linux.cc', | 86 'eventhandler_linux.cc', |
(...skipping 20 matching lines...) Expand all Loading... |
107 'process.h', | 107 'process.h', |
108 'process_linux.cc', | 108 'process_linux.cc', |
109 'process_macos.cc', | 109 'process_macos.cc', |
110 'process_win.cc', | 110 'process_win.cc', |
111 'socket.cc', | 111 'socket.cc', |
112 'socket.h', | 112 'socket.h', |
113 'socket_linux.cc', | 113 'socket_linux.cc', |
114 'socket_macos.cc', | 114 'socket_macos.cc', |
115 'socket_win.cc', | 115 'socket_win.cc', |
116 'set.h', | 116 'set.h', |
117 # Include generated source files. | |
118 '<(builtin_cc_file)', | |
119 ], | 117 ], |
120 'conditions': [ | 118 'conditions': [ |
121 ['OS=="win"', {'sources/' : [ | 119 ['OS=="win"', {'sources/' : [ |
122 ['exclude', 'fdutils.h'], | 120 ['exclude', 'fdutils.h'], |
123 ]}], | 121 ]}], |
124 ], | 122 ], |
125 }, | 123 }, |
126 { | 124 { |
| 125 'target_name': 'libdart_withcore', |
| 126 'type': 'static_library', |
| 127 'dependencies': [ |
| 128 'libdart_lib_withcore', |
| 129 'libdart_vm', |
| 130 'libjscre', |
| 131 'libdouble_conversion', |
| 132 ], |
| 133 'include_dirs': [ |
| 134 '..', |
| 135 ], |
| 136 'sources': [ |
| 137 '../include/dart_api.h', |
| 138 '../vm/dart_api_impl.cc', |
| 139 ], |
| 140 }, |
| 141 { |
127 # Completely statically linked dart binary. | 142 # Completely statically linked dart binary. |
128 'target_name': 'dart_no_snapshot', | 143 'target_name': 'dart_no_snapshot', |
129 'type': 'executable', | 144 'type': 'executable', |
130 'dependencies': [ | 145 'dependencies': [ |
131 'libdart', | 146 'libdart_withcore', |
132 'libdart_builtin', | 147 'libdart_builtin', |
133 ], | 148 ], |
134 'include_dirs': [ | 149 'include_dirs': [ |
135 '..', | 150 '..', |
136 ], | 151 ], |
137 'sources': [ | 152 'sources': [ |
138 'main.cc', | 153 'main.cc', |
139 'snapshot_empty.cc', | 154 'snapshot_empty.cc', |
| 155 'builtin.cc', |
| 156 # Include generated source files. |
| 157 '<(builtin_cc_file)', |
140 ], | 158 ], |
141 'conditions': [ | 159 'conditions': [ |
142 ['OS=="win"', { | 160 ['OS=="win"', { |
143 'link_settings': { | 161 'link_settings': { |
144 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 162 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
145 }, | 163 }, |
146 }]], | 164 }]], |
147 }, | 165 }, |
148 { | 166 { |
149 # Completely statically linked binary for generating snapshots. | 167 # Completely statically linked binary for generating snapshots. |
150 'target_name': 'gen_snapshot', | 168 'target_name': 'gen_snapshot', |
151 'type': 'executable', | 169 'type': 'executable', |
152 'dependencies': [ | 170 'dependencies': [ |
153 'libdart', | 171 'libdart_withcore', |
154 'libdart_builtin', | 172 'libdart_builtin', |
155 ], | 173 ], |
156 'include_dirs': [ | 174 'include_dirs': [ |
157 '..', | 175 '..', |
158 ], | 176 ], |
159 'sources': [ | 177 'sources': [ |
160 'gen_snapshot.cc', | 178 'gen_snapshot.cc', |
| 179 'builtin.cc', |
| 180 # Include generated source files. |
| 181 '<(builtin_cc_file)', |
161 ], | 182 ], |
162 'conditions': [ | 183 'conditions': [ |
163 ['OS=="win"', { | 184 ['OS=="win"', { |
164 'link_settings': { | 185 'link_settings': { |
165 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 186 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
166 }, | 187 }, |
167 }]], | 188 }]], |
168 }, | 189 }, |
169 { | 190 { |
170 # Generate snapshot file. | 191 # Generate snapshot file. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 'dependencies': [ | 228 'dependencies': [ |
208 'libdart', | 229 'libdart', |
209 'libdart_builtin', | 230 'libdart_builtin', |
210 'generate_snapshot_file', | 231 'generate_snapshot_file', |
211 ], | 232 ], |
212 'include_dirs': [ | 233 'include_dirs': [ |
213 '..', | 234 '..', |
214 ], | 235 ], |
215 'sources': [ | 236 'sources': [ |
216 'main.cc', | 237 'main.cc', |
| 238 'builtin_nolib.cc', |
217 '<(snapshot_cc_file)', | 239 '<(snapshot_cc_file)', |
218 ], | 240 ], |
219 'conditions': [ | 241 'conditions': [ |
220 ['OS=="win"', { | 242 ['OS=="win"', { |
221 'link_settings': { | 243 'link_settings': { |
222 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 244 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
223 }, | 245 }, |
224 }]], | 246 }]], |
225 }, | 247 }, |
226 { | 248 { |
227 'target_name': 'process_test', | 249 'target_name': 'process_test', |
228 'type': 'executable', | 250 'type': 'executable', |
229 'sources': [ | 251 'sources': [ |
230 'process_test.cc', | 252 'process_test.cc', |
231 ] | 253 ] |
232 }, | 254 }, |
233 { | 255 { |
234 'target_name': 'run_vm_tests', | 256 'target_name': 'run_vm_tests', |
235 'type': 'executable', | 257 'type': 'executable', |
236 'dependencies': [ | 258 'dependencies': [ |
237 'libdart', | 259 'libdart_withcore', |
238 'generate_snapshot_test_dat_file', | 260 'generate_snapshot_test_dat_file', |
239 ], | 261 ], |
240 'include_dirs': [ | 262 'include_dirs': [ |
241 '..', | 263 '..', |
242 '<(SHARED_INTERMEDIATE_DIR)', | 264 '<(SHARED_INTERMEDIATE_DIR)', |
243 ], | 265 ], |
244 'sources': [ | 266 'sources': [ |
245 'run_vm_tests.cc', | 267 'run_vm_tests.cc', |
246 'dartutils.h', | 268 'dartutils.h', |
247 'dartutils.cc', | 269 'dartutils.cc', |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 ]}], | 369 ]}], |
348 ['OS=="win"', { | 370 ['OS=="win"', { |
349 'link_settings': { | 371 'link_settings': { |
350 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 372 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
351 }, | 373 }, |
352 }], | 374 }], |
353 ], | 375 ], |
354 }, | 376 }, |
355 ], | 377 ], |
356 } | 378 } |
OLD | NEW |