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

Side by Side Diff: runtime/bin/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/BUILD.gn ('k') | runtime/third_party/double-conversion/src/BUILD.gn » ('j') | 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("gypi_contents.gni") 5 import("gypi_contents.gni")
6 import("../runtime_args.gni") 6 import("../runtime_args.gni")
7 import("../../build/compiled_action.gni") 7 import("../../build/compiled_action.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # Controls the kind of core snapshot linked into the standalone VM. Using a 10 # Controls the kind of core snapshot linked into the standalone VM. Using a
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 "log", 230 "log",
231 ] 231 ]
232 } 232 }
233 } 233 }
234 234
235 static_library("libdart_builtin") { 235 static_library("libdart_builtin") {
236 configs += [ 236 configs += [
237 "..:dart_config", 237 "..:dart_config",
238 "..:dart_maybe_product_config", 238 "..:dart_maybe_product_config",
239 ] 239 ]
240 if (is_fuchsia) {
241 configs -= [ "//build/config:symbol_visibility_hidden" ]
242 }
240 public_configs = [ ":libdart_builtin_config" ] 243 public_configs = [ ":libdart_builtin_config" ]
241 deps = [ 244 deps = [
242 ":generate_blink_cc_file", 245 ":generate_blink_cc_file",
243 ":generate_builtin_cc_file", 246 ":generate_builtin_cc_file",
244 ":generate_cached_patches_cc_file", 247 ":generate_cached_patches_cc_file",
245 ":generate_html_cc_file", 248 ":generate_html_cc_file",
246 ":generate_html_common_cc_file", 249 ":generate_html_common_cc_file",
247 ":generate_indexed_db_cc_file", 250 ":generate_indexed_db_cc_file",
248 ":generate_io_cc_file", 251 ":generate_io_cc_file",
249 ":generate_io_patch_cc_file", 252 ":generate_io_patch_cc_file",
(...skipping 19 matching lines...) Expand all
269 ] + builtin_impl_sources_gypi 272 ] + builtin_impl_sources_gypi
270 } 273 }
271 274
272 executable("gen_snapshot") { 275 executable("gen_snapshot") {
273 configs += [ 276 configs += [
274 "..:dart_config", 277 "..:dart_config",
275 "..:dart_maybe_product_config", 278 "..:dart_maybe_product_config",
276 "..:dart_precompiler_config", 279 "..:dart_precompiler_config",
277 "..:dart_use_target_arch_config", 280 "..:dart_use_target_arch_config",
278 ] 281 ]
282 if (is_fuchsia) {
283 configs -= [ "//build/config:symbol_visibility_hidden" ]
284 }
279 deps = [ 285 deps = [
280 ":gen_resources_cc", 286 ":gen_resources_cc",
281 ":gen_snapshot_dart_io", 287 ":gen_snapshot_dart_io",
282 ":generate_builtin_cc_file", 288 ":generate_builtin_cc_file",
283 ":generate_io_cc_file", 289 ":generate_io_cc_file",
284 ":generate_io_patch_cc_file", 290 ":generate_io_patch_cc_file",
285 ":libdart_builtin", 291 ":libdart_builtin",
286 "..:libdart_nosnapshot_with_precompiler", 292 "..:libdart_nosnapshot_with_precompiler",
287 ] 293 ]
288 294
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 343 }
338 344
339 # A source set for the implementation of 'dart:io' library 345 # A source set for the implementation of 'dart:io' library
340 # (without secure sockets) suitable for linking with gen_snapshot. 346 # (without secure sockets) suitable for linking with gen_snapshot.
341 source_set("gen_snapshot_dart_io") { 347 source_set("gen_snapshot_dart_io") {
342 configs += [ 348 configs += [
343 "..:dart_config", 349 "..:dart_config",
344 "..:dart_maybe_product_config", 350 "..:dart_maybe_product_config",
345 "..:dart_precompiler_config", 351 "..:dart_precompiler_config",
346 ] 352 ]
353 if (is_fuchsia) {
354 configs -= [ "//build/config:symbol_visibility_hidden" ]
355 }
347 356
348 deps = [ 357 deps = [
349 "$dart_zlib_path", 358 "$dart_zlib_path",
350 ] 359 ]
351 360
352 custom_sources_filter = [ 361 custom_sources_filter = [
353 "*_test.cc", 362 "*_test.cc",
354 "*_test.h", 363 "*_test.h",
355 "builtin.cc", 364 "builtin.cc",
356 "builtin_common.cc", 365 "builtin_common.cc",
(...skipping 26 matching lines...) Expand all
383 template("dart_io") { 392 template("dart_io") {
384 extra_sources = [] 393 extra_sources = []
385 if (defined(invoker.extra_sources)) { 394 if (defined(invoker.extra_sources)) {
386 extra_sources += invoker.extra_sources 395 extra_sources += invoker.extra_sources
387 } 396 }
388 source_set(target_name) { 397 source_set(target_name) {
389 configs += [ 398 configs += [
390 "..:dart_config", 399 "..:dart_config",
391 "..:dart_maybe_product_config", 400 "..:dart_maybe_product_config",
392 ] 401 ]
402 if (is_fuchsia) {
403 configs -= [ "//build/config:symbol_visibility_hidden" ]
404 }
393 custom_sources_filter = [ 405 custom_sources_filter = [
394 "*_test.cc", 406 "*_test.cc",
395 "*_test.h", 407 "*_test.h",
396 "builtin.cc", 408 "builtin.cc",
397 "builtin_gen_snapshot.cc", 409 "builtin_gen_snapshot.cc",
398 ] 410 ]
399 if (!is_mac && !is_ios) { 411 if (!is_mac && !is_ios) {
400 # Dart tree uses *_macos.* instead of *_mac.* 412 # Dart tree uses *_macos.* instead of *_mac.*
401 custom_sources_filter += [ 413 custom_sources_filter += [
402 "*_macos.h", 414 "*_macos.h",
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 } 610 }
599 extra_sources = [] 611 extra_sources = []
600 if (defined(invoker.extra_sources)) { 612 if (defined(invoker.extra_sources)) {
601 extra_sources += invoker.extra_sources 613 extra_sources += invoker.extra_sources
602 } 614 }
603 executable(target_name) { 615 executable(target_name) {
604 configs += [ 616 configs += [
605 "..:dart_config", 617 "..:dart_config",
606 "..:dart_maybe_product_config", 618 "..:dart_maybe_product_config",
607 ] + extra_configs 619 ] + extra_configs
608 620 if (is_fuchsia) {
621 configs -= [ "//build/config:symbol_visibility_hidden" ]
622 }
609 if (defined(is_fuchsia_host) && is_fuchsia_host) { 623 if (defined(is_fuchsia_host) && is_fuchsia_host) {
610 # We already have these in the standalone build, but Fuchsia doesn't 624 # We already have these in the standalone build, but Fuchsia doesn't
611 # have them. They are needed for running Fuchsia binaries built for the 625 # have them. They are needed for running Fuchsia binaries built for the
612 # host. 626 # host.
613 if (is_linux) { 627 if (is_linux) {
614 configs += [ "../../build/config/gcc:executable_ldconfig" ] 628 configs += [ "../../build/config/gcc:executable_ldconfig" ]
615 } else if (is_mac) { 629 } else if (is_mac) {
616 configs += [ "../../build/config/mac:mac_dynamic_flags" ] 630 configs += [ "../../build/config/mac:mac_dynamic_flags" ]
617 } 631 }
618 } 632 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 executable("run_vm_tests") { 861 executable("run_vm_tests") {
848 if (is_fuchsia || is_fuchsia_host) { 862 if (is_fuchsia || is_fuchsia_host) {
849 testonly = true 863 testonly = true
850 } 864 }
851 865
852 configs += [ 866 configs += [
853 "..:dart_config", 867 "..:dart_config",
854 "..:dart_maybe_product_config", 868 "..:dart_maybe_product_config",
855 "..:dart_use_target_arch_config", 869 "..:dart_use_target_arch_config",
856 ] 870 ]
871 if (is_fuchsia) {
872 configs -= [ "//build/config:symbol_visibility_hidden" ]
873 }
857 874
858 deps = [ 875 deps = [
859 ":dart_snapshot_cc", 876 ":dart_snapshot_cc",
860 ":generate_snapshot_test_dat_file", 877 ":generate_snapshot_test_dat_file",
861 ":libdart_builtin", 878 ":libdart_builtin",
862 ":standalone_dart_io", 879 ":standalone_dart_io",
863 "$dart_zlib_path", 880 "$dart_zlib_path",
864 "..:libdart_jit", 881 "..:libdart_jit",
865 ] 882 ]
866 include_dirs = [ 883 include_dirs = [
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 ] 959 ]
943 if (is_linux || is_android) { 960 if (is_linux || is_android) {
944 cflags = [ "-fPIC" ] 961 cflags = [ "-fPIC" ]
945 } 962 }
946 if (is_win) { 963 if (is_win) {
947 libs = [ "dart.lib" ] 964 libs = [ "dart.lib" ]
948 abs_root_out_dir = rebase_path(root_out_dir) 965 abs_root_out_dir = rebase_path(root_out_dir)
949 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 966 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
950 } 967 }
951 } 968 }
OLDNEW
« no previous file with comments | « runtime/BUILD.gn ('k') | runtime/third_party/double-conversion/src/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698