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

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

Issue 2937503003: Reapply "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binar… (Closed)
Patch Set: Created 3 years, 6 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
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("../../utils/generate_patch_sdk.gni") 7 import("../../utils/generate_patch_sdk.gni")
8 import("gypi_contents.gni") 8 import("gypi_contents.gni")
9 import("../runtime_args.gni") 9 import("../runtime_args.gni")
10 10
(...skipping 28 matching lines...) Expand all
39 39
40 include_dirs = [ ".." ] 40 include_dirs = [ ".." ]
41 } 41 }
42 42
43 vm_sources_list = processed_gypis.vm_sources 43 vm_sources_list = processed_gypis.vm_sources
44 44
45 static_library("libdart_vm_jit") { 45 static_library("libdart_vm_jit") {
46 configs += [ 46 configs += [
47 "..:dart_config", 47 "..:dart_config",
48 "..:dart_maybe_product_config", 48 "..:dart_maybe_product_config",
49 "..:dart_use_target_arch_config",
49 ] 50 ]
50 public_configs = [ ":libdart_vm_config" ] 51 public_configs = [ ":libdart_vm_config" ]
51 set_sources_assignment_filter([ 52 set_sources_assignment_filter([
52 "*_test.cc", 53 "*_test.cc",
53 "*_test.h", 54 "*_test.h",
54 ]) 55 ])
55 sources = vm_sources_list 56 sources = vm_sources_list
56 include_dirs = [ ".." ] 57 include_dirs = [ ".." ]
57 } 58 }
58 59
59 static_library("libdart_vm_precompiled_runtime") { 60 static_library("libdart_vm_precompiled_runtime") {
60 configs += [ 61 configs += [
61 "..:dart_config", 62 "..:dart_config",
62 "..:dart_maybe_product_config", 63 "..:dart_maybe_product_config",
63 "..:dart_precompiled_runtime_config", 64 "..:dart_precompiled_runtime_config",
65 "..:dart_use_target_arch_config",
64 ] 66 ]
65 public_configs = [ ":libdart_vm_config" ] 67 public_configs = [ ":libdart_vm_config" ]
66 set_sources_assignment_filter([ 68 set_sources_assignment_filter([
67 "*_test.cc", 69 "*_test.cc",
68 "*_test.h", 70 "*_test.h",
69 ]) 71 ])
70 sources = vm_sources_list 72 sources = vm_sources_list
71 include_dirs = [ ".." ] 73 include_dirs = [ ".." ]
72 } 74 }
73 75
74 static_library("libdart_vm_nosnapshot") { 76 static_library("libdart_vm_nosnapshot") {
75 configs += [ 77 configs += [
76 "..:dart_config", 78 "..:dart_config",
77 "..:dart_maybe_product_config", 79 "..:dart_maybe_product_config",
78 "..:dart_no_snapshot_config", 80 "..:dart_no_snapshot_config",
81 "..:dart_use_target_arch_config",
79 ] 82 ]
80 public_configs = [ ":libdart_vm_config" ] 83 public_configs = [ ":libdart_vm_config" ]
81 set_sources_assignment_filter([ 84 set_sources_assignment_filter([
82 "*_test.cc", 85 "*_test.cc",
83 "*_test.h", 86 "*_test.h",
84 ]) 87 ])
85 sources = vm_sources_list 88 sources = vm_sources_list
86 include_dirs = [ ".." ] 89 include_dirs = [ ".." ]
87 } 90 }
88 91
89 static_library("libdart_vm_nosnapshot_with_precompiler") { 92 static_library("libdart_vm_nosnapshot_with_precompiler") {
90 configs += [ 93 configs += [
91 "..:dart_config", 94 "..:dart_config",
92 "..:dart_maybe_product_config", 95 "..:dart_maybe_product_config",
96 "..:dart_precompiler_config",
97 "..:dart_no_snapshot_config",
98 "..:dart_use_target_arch_config",
99 ]
100 public_configs = [ ":libdart_vm_config" ]
101 set_sources_assignment_filter([
102 "*_test.cc",
103 "*_test.h",
104 ])
105 sources = vm_sources_list
106 include_dirs = [ ".." ]
107 }
108
109 static_library("libdart_vm_nosnapshot_with_precompiler_host_arch") {
110 configs += [
111 "..:dart_config",
112 "..:dart_maybe_product_config",
93 "..:dart_precompiler_config", 113 "..:dart_precompiler_config",
94 "..:dart_no_snapshot_config", 114 "..:dart_no_snapshot_config",
95 ] 115 ]
96 public_configs = [ ":libdart_vm_config" ] 116 public_configs = [ ":libdart_vm_config" ]
97 set_sources_assignment_filter([ 117 set_sources_assignment_filter([
98 "*_test.cc", 118 "*_test.cc",
99 "*_test.h", 119 "*_test.h",
100 ]) 120 ])
101 sources = vm_sources_list 121 sources = vm_sources_list
102 include_dirs = [ ".." ] 122 include_dirs = [ ".." ]
103 } 123 }
104 124
105 static_library("libdart_vm_with_precompiler") { 125 static_library("libdart_vm_with_precompiler") {
106 configs += [ 126 configs += [
107 "..:dart_config", 127 "..:dart_config",
108 "..:dart_maybe_product_config", 128 "..:dart_maybe_product_config",
109 "..:dart_precompiler_config", 129 "..:dart_precompiler_config",
130 "..:dart_use_target_arch_config",
110 ] 131 ]
111 public_configs = [ ":libdart_vm_config" ] 132 public_configs = [ ":libdart_vm_config" ]
112 set_sources_assignment_filter([ 133 set_sources_assignment_filter([
113 "*_test.cc", 134 "*_test.cc",
114 "*_test.h", 135 "*_test.h",
115 ]) 136 ])
116 sources = vm_sources_list 137 sources = vm_sources_list
117 include_dirs = [ ".." ] 138 include_dirs = [ ".." ]
118 } 139 }
119 140
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 libdeps += [ ":generate_${filename}_patch_cc_file" ] 230 libdeps += [ ":generate_${filename}_patch_cc_file" ]
210 } 231 }
211 } 232 }
212 233
213 all_libsources = rebase_path(invoker.allsources, ".", "../lib") 234 all_libsources = rebase_path(invoker.allsources, ".", "../lib")
214 235
215 static_library("libdart_lib_nosnapshot_with_precompiler") { 236 static_library("libdart_lib_nosnapshot_with_precompiler") {
216 configs += [ 237 configs += [
217 "..:dart_config", 238 "..:dart_config",
218 "..:dart_maybe_product_config", 239 "..:dart_maybe_product_config",
240 "..:dart_precompiler_config",
241 "..:dart_use_target_arch_config",
242 ]
243 deps = libdeps
244 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs
245 include_dirs = [ ".." ]
246 }
247
248 static_library("libdart_lib_nosnapshot_with_precompiler_host_arch") {
249 configs += [
250 "..:dart_config",
251 "..:dart_maybe_product_config",
219 "..:dart_precompiler_config", 252 "..:dart_precompiler_config",
220 ] 253 ]
221 deps = libdeps 254 deps = libdeps
222 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs 255 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs
223 include_dirs = [ ".." ] 256 include_dirs = [ ".." ]
224 } 257 }
225 258
226 static_library("libdart_lib_with_precompiler") { 259 static_library("libdart_lib_with_precompiler") {
227 configs += [ 260 configs += [
228 "..:dart_config", 261 "..:dart_config",
229 "..:dart_maybe_product_config", 262 "..:dart_maybe_product_config",
230 "..:dart_precompiler_config", 263 "..:dart_precompiler_config",
264 "..:dart_use_target_arch_config",
231 ] 265 ]
232 deps = libdeps 266 deps = libdeps
233 sources = all_libsources + [ "bootstrap_nocore.cc" ] 267 sources = all_libsources + [ "bootstrap_nocore.cc" ]
234 include_dirs = [ ".." ] 268 include_dirs = [ ".." ]
235 } 269 }
236 270
237 static_library("libdart_lib_jit") { 271 static_library("libdart_lib_jit") {
238 configs += [ 272 configs += [
239 "..:dart_config", 273 "..:dart_config",
240 "..:dart_maybe_product_config", 274 "..:dart_maybe_product_config",
275 "..:dart_use_target_arch_config",
241 ] 276 ]
242 sources = all_libsources + [ "bootstrap_nocore.cc" ] 277 sources = all_libsources + [ "bootstrap_nocore.cc" ]
243 include_dirs = [ ".." ] 278 include_dirs = [ ".." ]
244 } 279 }
245 280
246 static_library("libdart_lib_precompiled_runtime") { 281 static_library("libdart_lib_precompiled_runtime") {
247 configs += [ 282 configs += [
248 "..:dart_config", 283 "..:dart_config",
249 "..:dart_maybe_product_config", 284 "..:dart_maybe_product_config",
250 "..:dart_precompiled_runtime_config", 285 "..:dart_precompiled_runtime_config",
286 "..:dart_use_target_arch_config",
251 ] 287 ]
252 sources = all_libsources + [ "bootstrap_nocore.cc" ] 288 sources = all_libsources + [ "bootstrap_nocore.cc" ]
253 include_dirs = [ ".." ] 289 include_dirs = [ ".." ]
254 } 290 }
255 } 291 }
256 292
257 generate_core_libraries("core_libraries") { 293 generate_core_libraries("core_libraries") {
258 sources = [ 294 sources = [
259 [ 295 [
260 "async", 296 "async",
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 processed_gypis.vmservice_runtime_sources, 507 processed_gypis.vmservice_runtime_sources,
472 "../lib", 508 "../lib",
473 ], 509 ],
474 [ 510 [
475 "io", 511 "io",
476 processed_gypis.bin_io_sources, 512 processed_gypis.bin_io_sources,
477 "../bin", 513 "../bin",
478 ], 514 ],
479 ] 515 ]
480 } 516 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698