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

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

Issue 2946123002: [fuchsia] Make symbols in the Dart VM visible, so they are available to the profiler. (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
« no previous file with comments | « runtime/third_party/double-conversion/src/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("../../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 15 matching lines...) Expand all
26 libs += [ "rt" ] 26 libs += [ "rt" ]
27 } 27 }
28 } 28 }
29 } 29 }
30 30
31 static_library("libdart_platform") { 31 static_library("libdart_platform") {
32 configs += [ 32 configs += [
33 "..:dart_config", 33 "..:dart_config",
34 "..:dart_maybe_product_config", 34 "..:dart_maybe_product_config",
35 ] 35 ]
36 if (is_fuchsia) {
37 configs -= [ "//build/config:symbol_visibility_hidden" ]
38 }
36 public_configs = [ ":libdart_vm_config" ] 39 public_configs = [ ":libdart_vm_config" ]
37 40
38 sources = rebase_path(processed_gypis.platform_sources, ".", "../platform") 41 sources = rebase_path(processed_gypis.platform_sources, ".", "../platform")
39 42
40 include_dirs = [ ".." ] 43 include_dirs = [ ".." ]
41 } 44 }
42 45
43 vm_sources_list = processed_gypis.vm_sources 46 vm_sources_list = processed_gypis.vm_sources
44 47
45 static_library("libdart_vm_jit") { 48 static_library("libdart_vm_jit") {
46 configs += [ 49 configs += [
47 "..:dart_config", 50 "..:dart_config",
48 "..:dart_maybe_product_config", 51 "..:dart_maybe_product_config",
49 "..:dart_use_target_arch_config", 52 "..:dart_use_target_arch_config",
50 ] 53 ]
54 if (is_fuchsia) {
55 configs -= [ "//build/config:symbol_visibility_hidden" ]
56 }
51 public_configs = [ ":libdart_vm_config" ] 57 public_configs = [ ":libdart_vm_config" ]
52 set_sources_assignment_filter([ 58 set_sources_assignment_filter([
53 "*_test.cc", 59 "*_test.cc",
54 "*_test.h", 60 "*_test.h",
55 ]) 61 ])
56 sources = vm_sources_list 62 sources = vm_sources_list
57 include_dirs = [ ".." ] 63 include_dirs = [ ".." ]
58 } 64 }
59 65
60 static_library("libdart_vm_precompiled_runtime") { 66 static_library("libdart_vm_precompiled_runtime") {
61 configs += [ 67 configs += [
62 "..:dart_config", 68 "..:dart_config",
63 "..:dart_maybe_product_config", 69 "..:dart_maybe_product_config",
64 "..:dart_precompiled_runtime_config", 70 "..:dart_precompiled_runtime_config",
65 "..:dart_use_target_arch_config", 71 "..:dart_use_target_arch_config",
66 ] 72 ]
73 if (is_fuchsia) {
74 configs -= [ "//build/config:symbol_visibility_hidden" ]
75 }
67 public_configs = [ ":libdart_vm_config" ] 76 public_configs = [ ":libdart_vm_config" ]
68 set_sources_assignment_filter([ 77 set_sources_assignment_filter([
69 "*_test.cc", 78 "*_test.cc",
70 "*_test.h", 79 "*_test.h",
71 ]) 80 ])
72 sources = vm_sources_list 81 sources = vm_sources_list
73 include_dirs = [ ".." ] 82 include_dirs = [ ".." ]
74 } 83 }
75 84
76 static_library("libdart_vm_nosnapshot") { 85 static_library("libdart_vm_nosnapshot") {
77 configs += [ 86 configs += [
78 "..:dart_config", 87 "..:dart_config",
79 "..:dart_maybe_product_config", 88 "..:dart_maybe_product_config",
80 "..:dart_no_snapshot_config", 89 "..:dart_no_snapshot_config",
81 "..:dart_use_target_arch_config", 90 "..:dart_use_target_arch_config",
82 ] 91 ]
92 if (is_fuchsia) {
93 configs -= [ "//build/config:symbol_visibility_hidden" ]
94 }
83 public_configs = [ ":libdart_vm_config" ] 95 public_configs = [ ":libdart_vm_config" ]
84 set_sources_assignment_filter([ 96 set_sources_assignment_filter([
85 "*_test.cc", 97 "*_test.cc",
86 "*_test.h", 98 "*_test.h",
87 ]) 99 ])
88 sources = vm_sources_list 100 sources = vm_sources_list
89 include_dirs = [ ".." ] 101 include_dirs = [ ".." ]
90 } 102 }
91 103
92 static_library("libdart_vm_nosnapshot_with_precompiler") { 104 static_library("libdart_vm_nosnapshot_with_precompiler") {
93 configs += [ 105 configs += [
94 "..:dart_config", 106 "..:dart_config",
95 "..:dart_maybe_product_config", 107 "..:dart_maybe_product_config",
96 "..:dart_precompiler_config", 108 "..:dart_precompiler_config",
97 "..:dart_no_snapshot_config", 109 "..:dart_no_snapshot_config",
98 "..:dart_use_target_arch_config", 110 "..:dart_use_target_arch_config",
99 ] 111 ]
112 if (is_fuchsia) {
113 configs -= [ "//build/config:symbol_visibility_hidden" ]
114 }
100 public_configs = [ ":libdart_vm_config" ] 115 public_configs = [ ":libdart_vm_config" ]
101 set_sources_assignment_filter([ 116 set_sources_assignment_filter([
102 "*_test.cc", 117 "*_test.cc",
103 "*_test.h", 118 "*_test.h",
104 ]) 119 ])
105 sources = vm_sources_list 120 sources = vm_sources_list
106 include_dirs = [ ".." ] 121 include_dirs = [ ".." ]
107 } 122 }
108 123
109 static_library("libdart_vm_nosnapshot_with_precompiler_host_arch") { 124 static_library("libdart_vm_nosnapshot_with_precompiler_host_arch") {
110 configs += [ 125 configs += [
111 "..:dart_config", 126 "..:dart_config",
112 "..:dart_maybe_product_config", 127 "..:dart_maybe_product_config",
113 "..:dart_precompiler_config", 128 "..:dart_precompiler_config",
114 "..:dart_no_snapshot_config", 129 "..:dart_no_snapshot_config",
115 ] 130 ]
131 if (is_fuchsia) {
132 configs -= [ "//build/config:symbol_visibility_hidden" ]
133 }
116 public_configs = [ ":libdart_vm_config" ] 134 public_configs = [ ":libdart_vm_config" ]
117 set_sources_assignment_filter([ 135 set_sources_assignment_filter([
118 "*_test.cc", 136 "*_test.cc",
119 "*_test.h", 137 "*_test.h",
120 ]) 138 ])
121 sources = vm_sources_list 139 sources = vm_sources_list
122 include_dirs = [ ".." ] 140 include_dirs = [ ".." ]
123 } 141 }
124 142
125 static_library("libdart_vm_with_precompiler") { 143 static_library("libdart_vm_with_precompiler") {
126 configs += [ 144 configs += [
127 "..:dart_config", 145 "..:dart_config",
128 "..:dart_maybe_product_config", 146 "..:dart_maybe_product_config",
129 "..:dart_precompiler_config", 147 "..:dart_precompiler_config",
130 "..:dart_use_target_arch_config", 148 "..:dart_use_target_arch_config",
131 ] 149 ]
150 if (is_fuchsia) {
151 configs -= [ "//build/config:symbol_visibility_hidden" ]
152 }
132 public_configs = [ ":libdart_vm_config" ] 153 public_configs = [ ":libdart_vm_config" ]
133 set_sources_assignment_filter([ 154 set_sources_assignment_filter([
134 "*_test.cc", 155 "*_test.cc",
135 "*_test.h", 156 "*_test.h",
136 ]) 157 ])
137 sources = vm_sources_list 158 sources = vm_sources_list
138 include_dirs = [ ".." ] 159 include_dirs = [ ".." ]
139 } 160 }
140 161
141 template("process_library_source") { 162 template("process_library_source") {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 254
234 all_libsources = rebase_path(invoker.allsources, ".", "../lib") 255 all_libsources = rebase_path(invoker.allsources, ".", "../lib")
235 256
236 static_library("libdart_lib_nosnapshot_with_precompiler") { 257 static_library("libdart_lib_nosnapshot_with_precompiler") {
237 configs += [ 258 configs += [
238 "..:dart_config", 259 "..:dart_config",
239 "..:dart_maybe_product_config", 260 "..:dart_maybe_product_config",
240 "..:dart_precompiler_config", 261 "..:dart_precompiler_config",
241 "..:dart_use_target_arch_config", 262 "..:dart_use_target_arch_config",
242 ] 263 ]
264 if (is_fuchsia) {
265 configs -= [ "//build/config:symbol_visibility_hidden" ]
266 }
243 deps = libdeps 267 deps = libdeps
244 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs 268 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs
245 include_dirs = [ ".." ] 269 include_dirs = [ ".." ]
246 } 270 }
247 271
248 static_library("libdart_lib_nosnapshot_with_precompiler_host_arch") { 272 static_library("libdart_lib_nosnapshot_with_precompiler_host_arch") {
249 configs += [ 273 configs += [
250 "..:dart_config", 274 "..:dart_config",
251 "..:dart_maybe_product_config", 275 "..:dart_maybe_product_config",
252 "..:dart_precompiler_config", 276 "..:dart_precompiler_config",
253 ] 277 ]
278 if (is_fuchsia) {
279 configs -= [ "//build/config:symbol_visibility_hidden" ]
280 }
254 deps = libdeps 281 deps = libdeps
255 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs 282 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs
256 include_dirs = [ ".." ] 283 include_dirs = [ ".." ]
257 } 284 }
258 285
259 static_library("libdart_lib_with_precompiler") { 286 static_library("libdart_lib_with_precompiler") {
260 configs += [ 287 configs += [
261 "..:dart_config", 288 "..:dart_config",
262 "..:dart_maybe_product_config", 289 "..:dart_maybe_product_config",
263 "..:dart_precompiler_config", 290 "..:dart_precompiler_config",
264 "..:dart_use_target_arch_config", 291 "..:dart_use_target_arch_config",
265 ] 292 ]
293 if (is_fuchsia) {
294 configs -= [ "//build/config:symbol_visibility_hidden" ]
295 }
266 deps = libdeps 296 deps = libdeps
267 sources = all_libsources + [ "bootstrap_nocore.cc" ] 297 sources = all_libsources + [ "bootstrap_nocore.cc" ]
268 include_dirs = [ ".." ] 298 include_dirs = [ ".." ]
269 } 299 }
270 300
271 static_library("libdart_lib_jit") { 301 static_library("libdart_lib_jit") {
272 configs += [ 302 configs += [
273 "..:dart_config", 303 "..:dart_config",
274 "..:dart_maybe_product_config", 304 "..:dart_maybe_product_config",
275 "..:dart_use_target_arch_config", 305 "..:dart_use_target_arch_config",
276 ] 306 ]
307 if (is_fuchsia) {
308 configs -= [ "//build/config:symbol_visibility_hidden" ]
309 }
277 sources = all_libsources + [ "bootstrap_nocore.cc" ] 310 sources = all_libsources + [ "bootstrap_nocore.cc" ]
278 include_dirs = [ ".." ] 311 include_dirs = [ ".." ]
279 } 312 }
280 313
281 static_library("libdart_lib_precompiled_runtime") { 314 static_library("libdart_lib_precompiled_runtime") {
282 configs += [ 315 configs += [
283 "..:dart_config", 316 "..:dart_config",
284 "..:dart_maybe_product_config", 317 "..:dart_maybe_product_config",
285 "..:dart_precompiled_runtime_config", 318 "..:dart_precompiled_runtime_config",
286 "..:dart_use_target_arch_config", 319 "..:dart_use_target_arch_config",
287 ] 320 ]
321 if (is_fuchsia) {
322 configs -= [ "//build/config:symbol_visibility_hidden" ]
323 }
288 sources = all_libsources + [ "bootstrap_nocore.cc" ] 324 sources = all_libsources + [ "bootstrap_nocore.cc" ]
289 include_dirs = [ ".." ] 325 include_dirs = [ ".." ]
290 } 326 }
291 } 327 }
292 328
293 generate_core_libraries("core_libraries") { 329 generate_core_libraries("core_libraries") {
294 sources = [ 330 sources = [
295 [ 331 [
296 "async", 332 "async",
297 processed_gypis.async_sdk_sources, 333 processed_gypis.async_sdk_sources,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 processed_gypis.vmservice_runtime_sources, 543 processed_gypis.vmservice_runtime_sources,
508 "../lib", 544 "../lib",
509 ], 545 ],
510 [ 546 [
511 "io", 547 "io",
512 processed_gypis.bin_io_sources, 548 processed_gypis.bin_io_sources,
513 "../bin", 549 "../bin",
514 ], 550 ],
515 ] 551 ]
516 } 552 }
OLDNEW
« no previous file with comments | « runtime/third_party/double-conversion/src/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698