| OLD | NEW |
| 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, 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 import("../../build/executable_suffix.gni") | 5 import("../../build/executable_suffix.gni") |
| 6 import("../../build/prebuilt_dart_sdk.gni") | 6 import("../../build/prebuilt_dart_sdk.gni") |
| 7 import("gypi_contents.gni") | 7 import("gypi_contents.gni") |
| 8 import("../runtime_args.gni") | 8 import("../runtime_args.gni") |
| 9 | 9 |
| 10 config("libdart_vm_config") { | 10 config("libdart_vm_config") { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ] | 34 ] |
| 35 public_configs = [ ":libdart_vm_config" ] | 35 public_configs = [ ":libdart_vm_config" ] |
| 36 | 36 |
| 37 sources = rebase_path(processed_gypis.platform_sources, ".", "../platform") | 37 sources = rebase_path(processed_gypis.platform_sources, ".", "../platform") |
| 38 | 38 |
| 39 include_dirs = [ ".." ] | 39 include_dirs = [ ".." ] |
| 40 } | 40 } |
| 41 | 41 |
| 42 vm_sources_list = processed_gypis.vm_sources | 42 vm_sources_list = processed_gypis.vm_sources |
| 43 | 43 |
| 44 # TODO(rmacnak): Remove after updating all clients of libdart to use |
| 45 # libdart_jit or libdart_precompiled_runtime. |
| 44 static_library("libdart_vm") { | 46 static_library("libdart_vm") { |
| 45 configs += [ | 47 configs += [ |
| 46 "..:dart_config", | 48 "..:dart_config", |
| 47 "..:dart_maybe_product_config", | 49 "..:dart_maybe_product_config", |
| 48 "..:dart_maybe_precompiled_runtime_config", | 50 "..:dart_maybe_precompiled_runtime_config", |
| 49 ] | 51 ] |
| 50 public_configs = [ ":libdart_vm_config" ] | 52 public_configs = [ ":libdart_vm_config" ] |
| 51 set_sources_assignment_filter([ | 53 set_sources_assignment_filter([ |
| 52 "*_test.cc", | 54 "*_test.cc", |
| 53 "*_test.h", | 55 "*_test.h", |
| 54 ]) | 56 ]) |
| 55 sources = vm_sources_list | 57 sources = vm_sources_list |
| 56 include_dirs = [ ".." ] | 58 include_dirs = [ ".." ] |
| 57 } | 59 } |
| 58 | 60 |
| 61 static_library("libdart_vm_jit") { |
| 62 configs += [ |
| 63 "..:dart_config", |
| 64 "..:dart_maybe_product_config", |
| 65 ] |
| 66 public_configs = [ ":libdart_vm_config" ] |
| 67 set_sources_assignment_filter([ |
| 68 "*_test.cc", |
| 69 "*_test.h", |
| 70 ]) |
| 71 sources = vm_sources_list |
| 72 include_dirs = [ ".." ] |
| 73 } |
| 74 |
| 59 static_library("libdart_vm_precompiled_runtime") { | 75 static_library("libdart_vm_precompiled_runtime") { |
| 60 configs += [ | 76 configs += [ |
| 61 "..:dart_config", | 77 "..:dart_config", |
| 62 "..:dart_maybe_product_config", | 78 "..:dart_maybe_product_config", |
| 63 "..:dart_precompiled_runtime_config", | 79 "..:dart_precompiled_runtime_config", |
| 64 ] | 80 ] |
| 65 public_configs = [ ":libdart_vm_config" ] | 81 public_configs = [ ":libdart_vm_config" ] |
| 66 set_sources_assignment_filter([ | 82 set_sources_assignment_filter([ |
| 67 "*_test.cc", | 83 "*_test.cc", |
| 68 "*_test.h", | 84 "*_test.h", |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 liboutputs += [ "$target_gen_dir/${filename}_gen.cc" ] | 221 liboutputs += [ "$target_gen_dir/${filename}_gen.cc" ] |
| 206 libdeps += [ ":generate_${filename}_cc_file" ] | 222 libdeps += [ ":generate_${filename}_cc_file" ] |
| 207 if (do_patch) { | 223 if (do_patch) { |
| 208 liboutputs += [ "$target_gen_dir/${filename}_patch_gen.cc" ] | 224 liboutputs += [ "$target_gen_dir/${filename}_patch_gen.cc" ] |
| 209 libdeps += [ ":generate_${filename}_patch_cc_file" ] | 225 libdeps += [ ":generate_${filename}_patch_cc_file" ] |
| 210 } | 226 } |
| 211 } | 227 } |
| 212 | 228 |
| 213 all_libsources = rebase_path(invoker.allsources, ".", "../lib") | 229 all_libsources = rebase_path(invoker.allsources, ".", "../lib") |
| 214 | 230 |
| 215 static_library("libdart_lib_nosnapshot") { | |
| 216 configs += [ | |
| 217 "..:dart_config", | |
| 218 "..:dart_maybe_product_config", | |
| 219 "..:dart_maybe_precompiled_runtime_config", | |
| 220 ] | |
| 221 deps = libdeps | |
| 222 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs | |
| 223 include_dirs = [ ".." ] | |
| 224 } | |
| 225 static_library("libdart_lib_nosnapshot_with_precompiler") { | 231 static_library("libdart_lib_nosnapshot_with_precompiler") { |
| 226 configs += [ | 232 configs += [ |
| 227 "..:dart_config", | 233 "..:dart_config", |
| 228 "..:dart_maybe_product_config", | 234 "..:dart_maybe_product_config", |
| 229 "..:dart_precompiler_config", | 235 "..:dart_precompiler_config", |
| 230 ] | 236 ] |
| 231 deps = libdeps | 237 deps = libdeps |
| 232 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs | 238 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs |
| 233 include_dirs = [ ".." ] | 239 include_dirs = [ ".." ] |
| 234 } | 240 } |
| 235 static_library("libdart_lib_with_precompiler") { | 241 static_library("libdart_lib_with_precompiler") { |
| 236 configs += [ | 242 configs += [ |
| 237 "..:dart_config", | 243 "..:dart_config", |
| 238 "..:dart_maybe_product_config", | 244 "..:dart_maybe_product_config", |
| 239 "..:dart_precompiler_config", | 245 "..:dart_precompiler_config", |
| 240 ] | 246 ] |
| 241 deps = libdeps | 247 deps = libdeps |
| 242 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 248 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 243 include_dirs = [ ".." ] | 249 include_dirs = [ ".." ] |
| 244 } | 250 } |
| 251 |
| 252 # TODO(rmacnak): Remove after updating all clients of libdart to use |
| 253 # libdart_jit or libdart_precompiled_runtime. |
| 245 static_library("libdart_lib") { | 254 static_library("libdart_lib") { |
| 246 configs += [ | 255 configs += [ |
| 247 "..:dart_config", | 256 "..:dart_config", |
| 248 "..:dart_maybe_product_config", | 257 "..:dart_maybe_product_config", |
| 249 "..:dart_maybe_precompiled_runtime_config", | 258 "..:dart_maybe_precompiled_runtime_config", |
| 250 ] | 259 ] |
| 251 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 260 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 252 include_dirs = [ ".." ] | 261 include_dirs = [ ".." ] |
| 262 } |
| 263 static_library("libdart_lib_jit") { |
| 264 configs += [ |
| 265 "..:dart_config", |
| 266 "..:dart_maybe_product_config", |
| 267 ] |
| 268 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 269 include_dirs = [ ".." ] |
| 253 } | 270 } |
| 254 static_library("libdart_lib_precompiled_runtime") { | 271 static_library("libdart_lib_precompiled_runtime") { |
| 255 configs += [ | 272 configs += [ |
| 256 "..:dart_config", | 273 "..:dart_config", |
| 257 "..:dart_maybe_product_config", | 274 "..:dart_maybe_product_config", |
| 258 "..:dart_precompiled_runtime_config", | 275 "..:dart_precompiled_runtime_config", |
| 259 ] | 276 ] |
| 260 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 277 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 261 include_dirs = [ ".." ] | 278 include_dirs = [ ".." ] |
| 262 } | 279 } |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 processed_gypis.vmservice_runtime_sources, | 532 processed_gypis.vmservice_runtime_sources, |
| 516 "../lib", | 533 "../lib", |
| 517 ], | 534 ], |
| 518 [ | 535 [ |
| 519 "io", | 536 "io", |
| 520 processed_gypis.bin_io_sources, | 537 processed_gypis.bin_io_sources, |
| 521 "../bin", | 538 "../bin", |
| 522 ], | 539 ], |
| 523 ] | 540 ] |
| 524 } | 541 } |
| OLD | NEW |