| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ] | 95 ] |
| 96 public_configs = [ ":libdart_vm_config" ] | 96 public_configs = [ ":libdart_vm_config" ] |
| 97 set_sources_assignment_filter([ | 97 set_sources_assignment_filter([ |
| 98 "*_test.cc", | 98 "*_test.cc", |
| 99 "*_test.h", | 99 "*_test.h", |
| 100 ]) | 100 ]) |
| 101 sources = vm_sources_list | 101 sources = vm_sources_list |
| 102 include_dirs = [ ".." ] | 102 include_dirs = [ ".." ] |
| 103 } | 103 } |
| 104 | 104 |
| 105 static_library("libdart_vm_with_precompiler") { |
| 106 configs += [ |
| 107 "..:dart_config", |
| 108 "..:dart_maybe_product_config", |
| 109 "..:dart_precompiler_config", |
| 110 ] |
| 111 public_configs = [ ":libdart_vm_config" ] |
| 112 set_sources_assignment_filter([ |
| 113 "*_test.cc", |
| 114 "*_test.h", |
| 115 ]) |
| 116 sources = vm_sources_list |
| 117 include_dirs = [ ".." ] |
| 118 } |
| 119 |
| 105 template("process_library_source") { | 120 template("process_library_source") { |
| 106 assert(defined(invoker.libsources), "Need libsources in $target_name") | 121 assert(defined(invoker.libsources), "Need libsources in $target_name") |
| 107 assert(defined(invoker.output), "Need output in $target_name") | 122 assert(defined(invoker.output), "Need output in $target_name") |
| 108 action(target_name) { | 123 action(target_name) { |
| 109 visibility = [ ":*" ] # Only targets in this file can see this. | 124 visibility = [ ":*" ] # Only targets in this file can see this. |
| 110 libsources = invoker.libsources | 125 libsources = invoker.libsources |
| 111 | 126 |
| 112 script = invoker.script | 127 script = invoker.script |
| 113 inputs = invoker.inputs + libsources | 128 inputs = invoker.inputs + libsources |
| 114 outputs = [ | 129 outputs = [ |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 static_library("libdart_lib_nosnapshot_with_precompiler") { | 225 static_library("libdart_lib_nosnapshot_with_precompiler") { |
| 211 configs += [ | 226 configs += [ |
| 212 "..:dart_config", | 227 "..:dart_config", |
| 213 "..:dart_maybe_product_config", | 228 "..:dart_maybe_product_config", |
| 214 "..:dart_precompiler_config", | 229 "..:dart_precompiler_config", |
| 215 ] | 230 ] |
| 216 deps = libdeps | 231 deps = libdeps |
| 217 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs | 232 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs |
| 218 include_dirs = [ ".." ] | 233 include_dirs = [ ".." ] |
| 219 } | 234 } |
| 235 static_library("libdart_lib_with_precompiler") { |
| 236 configs += [ |
| 237 "..:dart_config", |
| 238 "..:dart_maybe_product_config", |
| 239 "..:dart_precompiler_config", |
| 240 ] |
| 241 deps = libdeps |
| 242 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 243 include_dirs = [ ".." ] |
| 244 } |
| 220 static_library("libdart_lib") { | 245 static_library("libdart_lib") { |
| 221 configs += [ | 246 configs += [ |
| 222 "..:dart_config", | 247 "..:dart_config", |
| 223 "..:dart_maybe_product_config", | 248 "..:dart_maybe_product_config", |
| 224 "..:dart_maybe_precompiled_runtime_config", | 249 "..:dart_maybe_precompiled_runtime_config", |
| 225 ] | 250 ] |
| 226 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 251 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
| 227 include_dirs = [ ".." ] | 252 include_dirs = [ ".." ] |
| 228 } | 253 } |
| 229 static_library("libdart_lib_precompiled_runtime") { | 254 static_library("libdart_lib_precompiled_runtime") { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 processed_gypis.vmservice_runtime_sources, | 515 processed_gypis.vmservice_runtime_sources, |
| 491 "../lib", | 516 "../lib", |
| 492 ], | 517 ], |
| 493 [ | 518 [ |
| 494 "io", | 519 "io", |
| 495 processed_gypis.bin_io_sources, | 520 processed_gypis.bin_io_sources, |
| 496 "../bin", | 521 "../bin", |
| 497 ], | 522 ], |
| 498 ] | 523 ] |
| 499 } | 524 } |
| OLD | NEW |