Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: runtime/vm/BUILD.gn

Issue 2814513003: GN: Add libdart_jit and dart_api. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« runtime/BUILD.gn ('K') | « runtime/bin/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 static_library("libdart_vm") { 44 static_library("libdart_vm") {
zra 2017/04/10 19:50:02 Is this still needed?
rmacnak 2017/04/10 20:30:11 This can be removed after clients of libdart are u
45 configs += [ 45 configs += [
46 "..:dart_config", 46 "..:dart_config",
47 "..:dart_maybe_product_config", 47 "..:dart_maybe_product_config",
48 "..:dart_maybe_precompiled_runtime_config", 48 "..:dart_maybe_precompiled_runtime_config",
49 ] 49 ]
50 public_configs = [ ":libdart_vm_config" ] 50 public_configs = [ ":libdart_vm_config" ]
51 set_sources_assignment_filter([ 51 set_sources_assignment_filter([
52 "*_test.cc", 52 "*_test.cc",
53 "*_test.h", 53 "*_test.h",
54 ]) 54 ])
55 sources = vm_sources_list 55 sources = vm_sources_list
56 include_dirs = [ ".." ] 56 include_dirs = [ ".." ]
57 } 57 }
58 58
59 static_library("libdart_vm_jit") {
60 configs += [
61 "..:dart_config",
62 "..:dart_maybe_product_config",
63 ]
64 public_configs = [ ":libdart_vm_config" ]
65 set_sources_assignment_filter([
66 "*_test.cc",
67 "*_test.h",
68 ])
69 sources = vm_sources_list
70 include_dirs = [ ".." ]
71 }
72
59 static_library("libdart_vm_precompiled_runtime") { 73 static_library("libdart_vm_precompiled_runtime") {
60 configs += [ 74 configs += [
61 "..:dart_config", 75 "..:dart_config",
62 "..:dart_maybe_product_config", 76 "..:dart_maybe_product_config",
63 "..:dart_precompiled_runtime_config", 77 "..:dart_precompiled_runtime_config",
64 ] 78 ]
65 public_configs = [ ":libdart_vm_config" ] 79 public_configs = [ ":libdart_vm_config" ]
66 set_sources_assignment_filter([ 80 set_sources_assignment_filter([
67 "*_test.cc", 81 "*_test.cc",
68 "*_test.h", 82 "*_test.h",
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 liboutputs += [ "$target_gen_dir/${filename}_gen.cc" ] 219 liboutputs += [ "$target_gen_dir/${filename}_gen.cc" ]
206 libdeps += [ ":generate_${filename}_cc_file" ] 220 libdeps += [ ":generate_${filename}_cc_file" ]
207 if (do_patch) { 221 if (do_patch) {
208 liboutputs += [ "$target_gen_dir/${filename}_patch_gen.cc" ] 222 liboutputs += [ "$target_gen_dir/${filename}_patch_gen.cc" ]
209 libdeps += [ ":generate_${filename}_patch_cc_file" ] 223 libdeps += [ ":generate_${filename}_patch_cc_file" ]
210 } 224 }
211 } 225 }
212 226
213 all_libsources = rebase_path(invoker.allsources, ".", "../lib") 227 all_libsources = rebase_path(invoker.allsources, ".", "../lib")
214 228
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") { 229 static_library("libdart_lib_nosnapshot_with_precompiler") {
226 configs += [ 230 configs += [
227 "..:dart_config", 231 "..:dart_config",
228 "..:dart_maybe_product_config", 232 "..:dart_maybe_product_config",
229 "..:dart_precompiler_config", 233 "..:dart_precompiler_config",
230 ] 234 ]
231 deps = libdeps 235 deps = libdeps
232 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs 236 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs
233 include_dirs = [ ".." ] 237 include_dirs = [ ".." ]
234 } 238 }
235 static_library("libdart_lib_with_precompiler") { 239 static_library("libdart_lib_with_precompiler") {
236 configs += [ 240 configs += [
237 "..:dart_config", 241 "..:dart_config",
238 "..:dart_maybe_product_config", 242 "..:dart_maybe_product_config",
239 "..:dart_precompiler_config", 243 "..:dart_precompiler_config",
240 ] 244 ]
241 deps = libdeps 245 deps = libdeps
242 sources = all_libsources + [ "bootstrap_nocore.cc" ] 246 sources = all_libsources + [ "bootstrap_nocore.cc" ]
243 include_dirs = [ ".." ] 247 include_dirs = [ ".." ]
244 } 248 }
245 static_library("libdart_lib") { 249 static_library("libdart_lib") {
zra 2017/04/10 19:50:02 Is this still needed?
rmacnak 2017/04/10 20:30:11 This can be removed after clients of libdart are u
246 configs += [ 250 configs += [
247 "..:dart_config", 251 "..:dart_config",
248 "..:dart_maybe_product_config", 252 "..:dart_maybe_product_config",
249 "..:dart_maybe_precompiled_runtime_config", 253 "..:dart_maybe_precompiled_runtime_config",
250 ] 254 ]
251 sources = all_libsources + [ "bootstrap_nocore.cc" ] 255 sources = all_libsources + [ "bootstrap_nocore.cc" ]
252 include_dirs = [ ".." ] 256 include_dirs = [ ".." ]
257 }
258 static_library("libdart_lib_jit") {
259 configs += [
260 "..:dart_config",
261 "..:dart_maybe_product_config",
262 ]
263 sources = all_libsources + [ "bootstrap_nocore.cc" ]
264 include_dirs = [ ".." ]
253 } 265 }
254 static_library("libdart_lib_precompiled_runtime") { 266 static_library("libdart_lib_precompiled_runtime") {
255 configs += [ 267 configs += [
256 "..:dart_config", 268 "..:dart_config",
257 "..:dart_maybe_product_config", 269 "..:dart_maybe_product_config",
258 "..:dart_precompiled_runtime_config", 270 "..:dart_precompiled_runtime_config",
259 ] 271 ]
260 sources = all_libsources + [ "bootstrap_nocore.cc" ] 272 sources = all_libsources + [ "bootstrap_nocore.cc" ]
261 include_dirs = [ ".." ] 273 include_dirs = [ ".." ]
262 } 274 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 processed_gypis.vmservice_runtime_sources, 527 processed_gypis.vmservice_runtime_sources,
516 "../lib", 528 "../lib",
517 ], 529 ],
518 [ 530 [
519 "io", 531 "io",
520 processed_gypis.bin_io_sources, 532 processed_gypis.bin_io_sources,
521 "../bin", 533 "../bin",
522 ], 534 ],
523 ] 535 ]
524 } 536 }
OLDNEW
« runtime/BUILD.gn ('K') | « runtime/bin/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698