| 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', |
| 11 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 11 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
| 12 'cygwin_dir': '../../third_party/cygwin', | 12 'cygwin_dir': '../../third_party/cygwin', |
| 13 }, | 13 }, |
| 14 'targets': [ | 14 'targets': [ |
| 15 { | 15 { |
| 16 'target_name': 'generate_builtin_cc_file', | 16 'target_name': 'generate_builtin_cc_file', |
| 17 'type': 'none', | 17 'type': 'none', |
| 18 'conditions': [ | 18 'conditions': [ |
| 19 ['OS=="win"', { | 19 ['OS=="win"', { |
| 20 'msvs_cygwin_dirs': ['<(cygwin_dir)'], | 20 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 21 }], | 21 }], |
| 22 ], | 22 ], |
| 23 'sources': [ | 23 'includes': [ |
| 24 'builtin.dart', | 24 'builtin_sources.gypi', |
| 25 'buffer_list.dart', | 25 ], |
| 26 'directory.dart', | 26 'sources/': [ |
| 27 'directory_impl.dart', | 27 ['exclude', '\\.(cc|h)$'], |
| 28 'eventhandler.dart', | |
| 29 'file.dart', | |
| 30 'file_impl.dart', | |
| 31 'input_stream.dart', | |
| 32 'output_stream.dart', | |
| 33 'string_stream.dart', | |
| 34 'platform.dart', | |
| 35 'platform_impl.dart', | |
| 36 'process.dart', | |
| 37 'process_impl.dart', | |
| 38 'socket.dart', | |
| 39 'socket_impl.dart', | |
| 40 'socket_stream.dart', | |
| 41 'timer.dart', | |
| 42 'timer_impl.dart', | |
| 43 ], | 28 ], |
| 44 'actions': [ | 29 'actions': [ |
| 45 { | 30 { |
| 46 'action_name': 'generate_builtin_cc', | 31 'action_name': 'generate_builtin_cc', |
| 47 'inputs': [ | 32 'inputs': [ |
| 48 '../tools/create_string_literal.py', | 33 '../tools/create_string_literal.py', |
| 49 '<(builtin_in_cc_file)', | 34 '<(builtin_in_cc_file)', |
| 50 '<@(_sources)', | 35 '<@(_sources)', |
| 51 ], | 36 ], |
| 52 'outputs': [ | 37 'outputs': [ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 'type': 'static_library', | 53 'type': 'static_library', |
| 69 'dependencies': [ | 54 'dependencies': [ |
| 70 'generate_builtin_cc_file', | 55 'generate_builtin_cc_file', |
| 71 ], | 56 ], |
| 72 'include_dirs': [ | 57 'include_dirs': [ |
| 73 '..', | 58 '..', |
| 74 ], | 59 ], |
| 75 'sources': [ | 60 'sources': [ |
| 76 'builtin_natives.cc', | 61 'builtin_natives.cc', |
| 77 'builtin.h', | 62 'builtin.h', |
| 78 'dartutils.h', | 63 ], |
| 79 'dartutils.cc', | 64 'includes': [ |
| 80 'directory.h', | 65 'builtin_sources.gypi', |
| 81 'directory.cc', | 66 ], |
| 82 'directory_posix.cc', | 67 'sources/': [ |
| 83 'directory_win.cc', | 68 ['exclude', '_test\\.(cc|h)$'], |
| 84 'eventhandler.cc', | |
| 85 'eventhandler.h', | |
| 86 'eventhandler_linux.cc', | |
| 87 'eventhandler_linux.h', | |
| 88 'eventhandler_macos.cc', | |
| 89 'eventhandler_macos.h', | |
| 90 'eventhandler_win.cc', | |
| 91 'eventhandler_win.h', | |
| 92 'file.cc', | |
| 93 'file.h', | |
| 94 'file_linux.cc', | |
| 95 'file_macos.cc', | |
| 96 'file_win.cc', | |
| 97 'fdutils.h', | |
| 98 'fdutils_linux.cc', | |
| 99 'fdutils_macos.cc', | |
| 100 'globals.h', | |
| 101 'platform.cc', | |
| 102 'platform.h', | |
| 103 'platform_linux.cc', | |
| 104 'platform_macos.cc', | |
| 105 'platform_win.cc', | |
| 106 'process.cc', | |
| 107 'process.h', | |
| 108 'process_linux.cc', | |
| 109 'process_macos.cc', | |
| 110 'process_win.cc', | |
| 111 'socket.cc', | |
| 112 'socket.h', | |
| 113 'socket_linux.cc', | |
| 114 'socket_macos.cc', | |
| 115 'socket_win.cc', | |
| 116 'set.h', | |
| 117 ], | 69 ], |
| 118 'conditions': [ | 70 'conditions': [ |
| 119 ['OS=="win"', {'sources/' : [ | 71 ['OS=="win"', {'sources/' : [ |
| 120 ['exclude', 'fdutils.h'], | 72 ['exclude', 'fdutils.h'], |
| 121 ]}], | 73 ]}], |
| 122 ], | 74 ], |
| 123 }, | 75 }, |
| 124 { | 76 { |
| 125 'target_name': 'libdart_withcore', | 77 'target_name': 'libdart_withcore', |
| 126 'type': 'static_library', | 78 'type': 'static_library', |
| 127 'dependencies': [ | 79 'dependencies': [ |
| 128 'libdart_lib_withcore', | 80 'libdart_lib_withcore', |
| 129 'libdart_vm', | 81 'libdart_vm', |
| 130 'libjscre', | 82 'libjscre', |
| 131 'libdouble_conversion', | 83 'libdouble_conversion', |
| 132 ], | 84 ], |
| 133 'include_dirs': [ | 85 'include_dirs': [ |
| 134 '..', | 86 '..', |
| 135 ], | 87 ], |
| 136 'sources': [ | 88 'sources': [ |
| 137 '../include/dart_api.h', | 89 '../include/dart_api.h', |
| 138 '../vm/dart_api_impl.cc', | 90 '../vm/dart_api_impl.cc', |
| 139 ], | 91 ], |
| 140 }, | 92 }, |
| 141 { | 93 { |
| 142 # Completely statically linked dart binary. | |
| 143 'target_name': 'dart_no_snapshot', | |
| 144 'type': 'executable', | |
| 145 'dependencies': [ | |
| 146 'libdart_withcore', | |
| 147 'libdart_builtin', | |
| 148 ], | |
| 149 'include_dirs': [ | |
| 150 '..', | |
| 151 ], | |
| 152 'sources': [ | |
| 153 'main.cc', | |
| 154 'snapshot_empty.cc', | |
| 155 'builtin.cc', | |
| 156 # Include generated source files. | |
| 157 '<(builtin_cc_file)', | |
| 158 ], | |
| 159 'conditions': [ | |
| 160 ['OS=="win"', { | |
| 161 'link_settings': { | |
| 162 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | |
| 163 }, | |
| 164 }]], | |
| 165 }, | |
| 166 { | |
| 167 # Completely statically linked binary for generating snapshots. | 94 # Completely statically linked binary for generating snapshots. |
| 168 'target_name': 'gen_snapshot', | 95 'target_name': 'gen_snapshot', |
| 169 'type': 'executable', | 96 'type': 'executable', |
| 170 'dependencies': [ | 97 'dependencies': [ |
| 171 'libdart_withcore', | 98 'libdart_withcore', |
| 172 'libdart_builtin', | 99 'libdart_builtin', |
| 173 ], | 100 ], |
| 174 'include_dirs': [ | 101 'include_dirs': [ |
| 175 '..', | 102 '..', |
| 176 ], | 103 ], |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 'type': 'executable', | 177 'type': 'executable', |
| 251 'sources': [ | 178 'sources': [ |
| 252 'process_test.cc', | 179 'process_test.cc', |
| 253 ] | 180 ] |
| 254 }, | 181 }, |
| 255 { | 182 { |
| 256 'target_name': 'run_vm_tests', | 183 'target_name': 'run_vm_tests', |
| 257 'type': 'executable', | 184 'type': 'executable', |
| 258 'dependencies': [ | 185 'dependencies': [ |
| 259 'libdart_withcore', | 186 'libdart_withcore', |
| 187 'libdart_builtin', |
| 260 'generate_snapshot_test_dat_file', | 188 'generate_snapshot_test_dat_file', |
| 261 ], | 189 ], |
| 262 'include_dirs': [ | 190 'include_dirs': [ |
| 263 '..', | 191 '..', |
| 264 '<(SHARED_INTERMEDIATE_DIR)', | 192 '<(SHARED_INTERMEDIATE_DIR)', |
| 265 ], | 193 ], |
| 266 'sources': [ | 194 'sources': [ |
| 267 'run_vm_tests.cc', | 195 'run_vm_tests.cc', |
| 268 'dartutils.h', | |
| 269 'dartutils.cc', | |
| 270 'directory.h', | |
| 271 'directory.cc', | |
| 272 'directory_posix.cc', | |
| 273 'directory_win.cc', | |
| 274 'eventhandler.cc', | |
| 275 'eventhandler.h', | |
| 276 'eventhandler_linux.cc', | |
| 277 'eventhandler_linux.h', | |
| 278 'eventhandler_macos.cc', | |
| 279 'eventhandler_macos.h', | |
| 280 'eventhandler_win.cc', | |
| 281 'eventhandler_win.h', | |
| 282 'file.cc', | |
| 283 'file.h', | |
| 284 'file_test.cc', | |
| 285 'file_linux.cc', | |
| 286 'file_macos.cc', | |
| 287 'file_win.cc', | |
| 288 'fdutils.h', | |
| 289 'fdutils_linux.cc', | |
| 290 'fdutils_macos.cc', | |
| 291 'platform.cc', | |
| 292 'platform.h', | |
| 293 'platform_linux.cc', | |
| 294 'platform_macos.cc', | |
| 295 'platform_win.cc', | |
| 296 'process.cc', | |
| 297 'process.h', | |
| 298 'process_linux.cc', | |
| 299 'process_macos.cc', | |
| 300 'process_win.cc', | |
| 301 'socket.cc', | |
| 302 'socket.h', | |
| 303 'socket_linux.cc', | |
| 304 'socket_macos.cc', | |
| 305 'socket_win.cc', | |
| 306 'set.h', | |
| 307 'set_test.cc', | |
| 308 ], | 196 ], |
| 309 'includes': [ | 197 'includes': [ |
| 198 'builtin_sources.gypi', |
| 310 '../vm/vm_sources.gypi', | 199 '../vm/vm_sources.gypi', |
| 311 ], | 200 ], |
| 312 'defines': [ | 201 'defines': [ |
| 313 'TESTING', | 202 'TESTING', |
| 314 ], | 203 ], |
| 315 # Only include _test.[cc|h] files. | 204 # Only include _test.[cc|h] files. |
| 316 'sources/': [ | 205 'sources/': [ |
| 317 ['exclude', '\\.(cc|h)$'], | 206 ['exclude', '\\.(cc|h)$'], |
| 318 ['include', '_test\\.(cc|h)$'], | 207 ['include', '_test\\.(cc|h)$'], |
| 319 ['include', 'run_vm_tests.cc'], | 208 ['include', 'run_vm_tests.cc'], |
| 320 ['include', 'dart_api_impl.cc'], | |
| 321 ['include', 'dartutils.h'], | |
| 322 ['include', 'dartutils.cc'], | |
| 323 ['include', 'directory.h'], | |
| 324 ['include', 'directory.cc'], | |
| 325 ['include', 'eventhandler.cc'], | |
| 326 ['include', 'eventhandler.h'], | |
| 327 ['include', 'file.cc'], | |
| 328 ['include', 'file.h'], | |
| 329 ['include', 'file_test.cc'], | |
| 330 ['include', 'platform.cc'], | |
| 331 ['include', 'platform.h'], | |
| 332 ['include', 'process.cc'], | |
| 333 ['include', 'process.h'], | |
| 334 ['include', 'socket.cc'], | |
| 335 ['include', 'socket.h'], | |
| 336 ['include', 'set_test.cc'], | |
| 337 ], | 209 ], |
| 338 'conditions': [ | 210 'conditions': [ |
| 339 ['OS=="linux"', {'sources/' : [ | |
| 340 ['include', 'directory_posix.cc'], | |
| 341 ['include', 'eventhandler_linux.cc'], | |
| 342 ['include', 'eventhandler_linux.h'], | |
| 343 ['include', 'fdutils.h'], | |
| 344 ['include', 'fdutils_linux.cc'], | |
| 345 ['include', 'file_linux.cc'], | |
| 346 ['include', 'platform_linux.cc'], | |
| 347 ['include', 'process_linux.cc'], | |
| 348 ['include', 'socket_linux.cc'], | |
| 349 ]}], | |
| 350 ['OS=="mac"', {'sources/' : [ | |
| 351 ['include', 'directory_posix.cc'], | |
| 352 ['include', 'eventhandler_macos.cc'], | |
| 353 ['include', 'eventhandler_macos.h'], | |
| 354 ['include', 'fdutils.h'], | |
| 355 ['include', 'fdutils_macos.cc'], | |
| 356 ['include', 'file_macos.cc'], | |
| 357 ['include', 'platform_macos.cc'], | |
| 358 ['include', 'process_macos.cc'], | |
| 359 ['include', 'socket_macos.cc'], | |
| 360 ]}], | |
| 361 ['OS=="win"', {'sources/' : [ | |
| 362 ['include', 'directory_win.cc'], | |
| 363 ['include', 'eventhandler_win.cc'], | |
| 364 ['include', 'eventhandler_win.h'], | |
| 365 ['include', 'file_win.cc'], | |
| 366 ['include', 'platform_win.cc'], | |
| 367 ['include', 'process_win.cc'], | |
| 368 ['include', 'socket_win.cc'], | |
| 369 ]}], | |
| 370 ['OS=="win"', { | 211 ['OS=="win"', { |
| 371 'link_settings': { | 212 'link_settings': { |
| 372 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 213 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 373 }, | 214 }, |
| 374 }], | 215 }], |
| 375 ], | 216 ], |
| 376 }, | 217 }, |
| 377 ], | 218 ], |
| 378 } | 219 } |
| OLD | NEW |