| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 # Include generated source files. | 116 # Include generated source files. |
| 117 '<(builtin_cc_file)', | 117 '<(builtin_cc_file)', |
| 118 ], | 118 ], |
| 119 'conditions': [ | 119 'conditions': [ |
| 120 ['OS=="win"', {'sources/' : [ | 120 ['OS=="win"', {'sources/' : [ |
| 121 ['exclude', 'fdutils.h'], | 121 ['exclude', 'fdutils.h'], |
| 122 ]}], | 122 ]}], |
| 123 ], | 123 ], |
| 124 }, | 124 }, |
| 125 { | 125 { |
| 126 # Standalone executable using the shared libdart library. | 126 # Completely statically linked dart binary. |
| 127 'target_name': 'dart_no_snapshot', | 127 'target_name': 'dart_no_snapshot_bin', |
| 128 'type': 'executable', | 128 'type': 'executable', |
| 129 'dependencies': [ | 129 'dependencies': [ |
| 130 'libdart', | 130 'libdart', |
| 131 'libdart_builtin', | 131 'libdart_builtin', |
| 132 ], | 132 ], |
| 133 'include_dirs': [ | 133 'include_dirs': [ |
| 134 '..', | |
| 135 ], | |
| 136 'sources': [ | |
| 137 'main.cc', | |
| 138 'snapshot_empty.cc', | |
| 139 ], | |
| 140 'conditions': [ | |
| 141 ['OS=="win"', { | |
| 142 'link_settings': { | |
| 143 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | |
| 144 }, | |
| 145 }]], | |
| 146 }, | |
| 147 { | |
| 148 # Completely statically linked dart binary. | |
| 149 'target_name': 'dart_no_snapshot_bin', | |
| 150 'type': 'executable', | |
| 151 'dependencies': [ | |
| 152 'libdart_lib', | |
| 153 'libdart_vm', | |
| 154 'libjscre', | |
| 155 'libdart_api', | |
| 156 'libdart_builtin', | |
| 157 ], | |
| 158 'include_dirs': [ | |
| 159 '..', | 134 '..', |
| 160 ], | 135 ], |
| 161 'sources': [ | 136 'sources': [ |
| 162 'main.cc', | 137 'main.cc', |
| 163 'snapshot_empty.cc', | 138 'snapshot_empty.cc', |
| 164 ], | 139 ], |
| 165 'conditions': [ | 140 'conditions': [ |
| 166 ['OS=="win"', { | 141 ['OS=="win"', { |
| 167 'link_settings': { | 142 'link_settings': { |
| 168 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 143 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 169 }, | 144 }, |
| 170 }]], | 145 }]], |
| 171 }, | 146 }, |
| 172 { | 147 { |
| 173 # Completely statically linked binary for generating snapshots. | 148 # Completely statically linked binary for generating snapshots. |
| 174 'target_name': 'gen_snapshot_bin', | 149 'target_name': 'gen_snapshot_bin', |
| 175 'type': 'executable', | 150 'type': 'executable', |
| 176 'dependencies': [ | 151 'dependencies': [ |
| 177 'libdart_lib', | 152 'libdart', |
| 178 'libdart_vm', | |
| 179 'libjscre', | |
| 180 'libdart_api', | |
| 181 'libdart_builtin', | 153 'libdart_builtin', |
| 182 ], | 154 ], |
| 183 'include_dirs': [ | 155 'include_dirs': [ |
| 184 '..', | 156 '..', |
| 185 ], | 157 ], |
| 186 'sources': [ | 158 'sources': [ |
| 187 'gen_snapshot.cc', | 159 'gen_snapshot.cc', |
| 188 ], | 160 ], |
| 189 'conditions': [ | 161 'conditions': [ |
| 190 ['OS=="win"', { | 162 ['OS=="win"', { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 '--executable', '<(PRODUCT_DIR)/gen_snapshot_bin', | 194 '--executable', '<(PRODUCT_DIR)/gen_snapshot_bin', |
| 223 '--output_bin', '<(snapshot_bin_file)', | 195 '--output_bin', '<(snapshot_bin_file)', |
| 224 '--input_cc', '<(snapshot_in_cc_file)', | 196 '--input_cc', '<(snapshot_in_cc_file)', |
| 225 '--output', '<(snapshot_cc_file)', | 197 '--output', '<(snapshot_cc_file)', |
| 226 ], | 198 ], |
| 227 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 199 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
| 228 }, | 200 }, |
| 229 ] | 201 ] |
| 230 }, | 202 }, |
| 231 { | 203 { |
| 232 # Standalone executable using the shared libdart library with a snapshot | 204 'target_name': 'dart_bin', |
| 233 # of the core and builtin libraries linked in. | |
| 234 'target_name': 'dart', | |
| 235 'type': 'executable', | 205 'type': 'executable', |
| 236 'dependencies': [ | 206 'dependencies': [ |
| 237 'libdart', | 207 'libdart', |
| 238 'libdart_builtin', | 208 'libdart_builtin', |
| 239 'generate_snapshot_file', | 209 'generate_snapshot_file', |
| 240 ], | 210 ], |
| 241 'include_dirs': [ | 211 'include_dirs': [ |
| 242 '..', | 212 '..', |
| 243 ], | 213 ], |
| 244 'sources': [ | 214 'sources': [ |
| 245 'main.cc', | 215 'main.cc', |
| 246 '<(snapshot_cc_file)', | 216 '<(snapshot_cc_file)', |
| 247 ], | 217 ], |
| 248 'conditions': [ | 218 'conditions': [ |
| 249 ['OS=="win"', { | 219 ['OS=="win"', { |
| 250 'link_settings': { | 220 'link_settings': { |
| 251 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 221 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 252 }, | 222 }, |
| 253 }]], | 223 }]], |
| 254 }, | 224 }, |
| 255 { | 225 { |
| 256 # Completely statically linked dart binary with a snapshot of the core | 226 'target_name': 'dart', |
| 257 # and builtin libraries linked in. | |
| 258 'target_name': 'dart_bin', | |
| 259 'type': 'executable', | 227 'type': 'executable', |
| 260 'dependencies': [ | 228 'dependencies': [ |
| 261 'libdart_lib', | 229 'libdart', |
| 262 'libdart_vm', | |
| 263 'libjscre', | |
| 264 'libdart_api', | |
| 265 'libdart_builtin', | 230 'libdart_builtin', |
| 266 'generate_snapshot_file', | 231 'generate_snapshot_file', |
| 267 ], | 232 ], |
| 268 'include_dirs': [ | 233 'include_dirs': [ |
| 269 '..', | 234 '..', |
| 270 ], | 235 ], |
| 271 'sources': [ | 236 'sources': [ |
| 272 'main.cc', | 237 'main.cc', |
| 273 '<(snapshot_cc_file)', | 238 '<(snapshot_cc_file)', |
| 274 ], | 239 ], |
| 275 'conditions': [ | 240 'conditions': [ |
| 276 ['OS=="win"', { | 241 ['OS=="win"', { |
| 277 'link_settings': { | 242 'link_settings': { |
| 278 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 243 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 279 }, | 244 }, |
| 280 }]], | 245 }]], |
| 281 }, | 246 }, |
| 282 { | 247 { |
| 283 'target_name': 'process_test', | 248 'target_name': 'process_test', |
| 284 'type': 'executable', | 249 'type': 'executable', |
| 285 'sources': [ | 250 'sources': [ |
| 286 'process_test.cc', | 251 'process_test.cc', |
| 287 ] | 252 ] |
| 288 }, | 253 }, |
| 289 { | 254 { |
| 290 'target_name': 'run_vm_tests', | 255 'target_name': 'run_vm_tests', |
| 291 'type': 'executable', | 256 'type': 'executable', |
| 292 # The unittest framework needs to be able to call the unexported symbols, | |
| 293 # which is why it links against the static libraries. In general binaries | |
| 294 # should depend on the shared library. | |
| 295 'dependencies': [ | 257 'dependencies': [ |
| 296 'libdart_lib', | 258 'libdart', |
| 297 'libdart_vm', | |
| 298 'libjscre', | |
| 299 'libdart_api', | |
| 300 'generate_snapshot_test_dat_file', | 259 'generate_snapshot_test_dat_file', |
| 301 ], | 260 ], |
| 302 'include_dirs': [ | 261 'include_dirs': [ |
| 303 '..', | 262 '..', |
| 304 '<(SHARED_INTERMEDIATE_DIR)', | 263 '<(SHARED_INTERMEDIATE_DIR)', |
| 305 ], | 264 ], |
| 306 'sources': [ | 265 'sources': [ |
| 307 'run_vm_tests.cc', | 266 'run_vm_tests.cc', |
| 308 'dartutils.h', | 267 'dartutils.h', |
| 309 'dartutils.cc', | 268 'dartutils.cc', |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 ]}], | 368 ]}], |
| 410 ['OS=="win"', { | 369 ['OS=="win"', { |
| 411 'link_settings': { | 370 'link_settings': { |
| 412 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 371 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 413 }, | 372 }, |
| 414 }], | 373 }], |
| 415 ], | 374 ], |
| 416 }, | 375 }, |
| 417 ], | 376 ], |
| 418 } | 377 } |
| OLD | NEW |