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

Side by Side Diff: base/BUILD.gn

Issue 2277863002: Enable loading native libraries with RTLD_DEEPBIND (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 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 | « no previous file | base/native_library.h » ('j') | base/native_library.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 "metrics/sample_map.h", 548 "metrics/sample_map.h",
549 "metrics/sample_vector.cc", 549 "metrics/sample_vector.cc",
550 "metrics/sample_vector.h", 550 "metrics/sample_vector.h",
551 "metrics/sparse_histogram.cc", 551 "metrics/sparse_histogram.cc",
552 "metrics/sparse_histogram.h", 552 "metrics/sparse_histogram.h",
553 "metrics/statistics_recorder.cc", 553 "metrics/statistics_recorder.cc",
554 "metrics/statistics_recorder.h", 554 "metrics/statistics_recorder.h",
555 "metrics/user_metrics.cc", 555 "metrics/user_metrics.cc",
556 "metrics/user_metrics.h", 556 "metrics/user_metrics.h",
557 "metrics/user_metrics_action.h", 557 "metrics/user_metrics_action.h",
558 "native_library.cc",
558 "native_library.h", 559 "native_library.h",
559 "native_library_ios.mm", 560 "native_library_ios.mm",
560 "native_library_mac.mm", 561 "native_library_mac.mm",
561 "native_library_posix.cc", 562 "native_library_posix.cc",
562 "native_library_win.cc", 563 "native_library_win.cc",
563 "nix/mime_util_xdg.cc", 564 "nix/mime_util_xdg.cc",
564 "nix/mime_util_xdg.h", 565 "nix/mime_util_xdg.h",
565 "nix/xdg_util.cc", 566 "nix/xdg_util.cc",
566 "nix/xdg_util.h", 567 "nix/xdg_util.h",
567 "numerics/safe_conversions.h", 568 "numerics/safe_conversions.h",
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 if (!use_sysroot && (is_android || is_linux)) { 1051 if (!use_sysroot && (is_android || is_linux)) {
1051 libs = [ "atomic" ] 1052 libs = [ "atomic" ]
1052 } 1053 }
1053 1054
1054 if (use_experimental_allocator_shim) { 1055 if (use_experimental_allocator_shim) {
1055 # The allocator shim is part of the base API. This is to allow clients of 1056 # The allocator shim is part of the base API. This is to allow clients of
1056 # base should to install hooks into the allocator path. 1057 # base should to install hooks into the allocator path.
1057 public_deps += [ "//base/allocator:unified_allocator_shim" ] 1058 public_deps += [ "//base/allocator:unified_allocator_shim" ]
1058 } 1059 }
1059 1060
1061 if (use_gold && !is_android) {
Primiano Tucci (use gerrit) 2016/08/24 22:14:08 why use_gold? The linker used to build the binary
Ken Rockot(use gerrit already) 2016/08/24 23:23:57 Well, this was failing on cast_shell_linux, and th
1062 defines += [ "EXPECT_GLOBAL_RTLD_BEHAVIOR" ]
Primiano Tucci (use gerrit) 2016/08/24 22:14:09 adding defines to an entire target is discouraged,
Ken Rockot(use gerrit already) 2016/08/24 23:23:57 Oops. This was meant to be only on the base_unitte
1063 }
1064
1060 # Allow more direct string conversions on platforms with native utf8 1065 # Allow more direct string conversions on platforms with native utf8
1061 # strings 1066 # strings
1062 if (is_mac || is_ios || is_chromeos || is_chromecast) { 1067 if (is_mac || is_ios || is_chromeos || is_chromecast) {
1063 defines += [ "SYSTEM_NATIVE_UTF8" ] 1068 defines += [ "SYSTEM_NATIVE_UTF8" ]
1064 } 1069 }
1065 1070
1066 # Android. 1071 # Android.
1067 if (is_android) { 1072 if (is_android) {
1068 sources -= [ 1073 sources -= [
1069 "debug/stack_trace_posix.cc", 1074 "debug/stack_trace_posix.cc",
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 "files/important_file_writer.cc", 1133 "files/important_file_writer.cc",
1129 "files/important_file_writer.h", 1134 "files/important_file_writer.h",
1130 "files/scoped_temp_dir.cc", 1135 "files/scoped_temp_dir.cc",
1131 "memory/discardable_memory.cc", 1136 "memory/discardable_memory.cc",
1132 "memory/discardable_memory.h", 1137 "memory/discardable_memory.h",
1133 "memory/discardable_memory_allocator.cc", 1138 "memory/discardable_memory_allocator.cc",
1134 "memory/discardable_memory_allocator.h", 1139 "memory/discardable_memory_allocator.h",
1135 "memory/discardable_shared_memory.cc", 1140 "memory/discardable_shared_memory.cc",
1136 "memory/discardable_shared_memory.h", 1141 "memory/discardable_shared_memory.h",
1137 "memory/shared_memory_posix.cc", 1142 "memory/shared_memory_posix.cc",
1143 "native_library.cc",
1138 "native_library_posix.cc", 1144 "native_library_posix.cc",
1139 "path_service.cc", 1145 "path_service.cc",
1140 "process/kill.cc", 1146 "process/kill.cc",
1141 "process/kill.h", 1147 "process/kill.h",
1142 "process/memory.cc", 1148 "process/memory.cc",
1143 "process/memory.h", 1149 "process/memory.h",
1144 "process/process_iterator.cc", 1150 "process/process_iterator.cc",
1145 "process/process_iterator.h", 1151 "process/process_iterator.h",
1146 "process/process_metrics.cc", 1152 "process/process_metrics.cc",
1147 "process/process_metrics_posix.cc", 1153 "process/process_metrics_posix.cc",
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 ":message_loop_tests", 2026 ":message_loop_tests",
2021 "//base/allocator:features", 2027 "//base/allocator:features",
2022 "//base/test:run_all_base_unittests", 2028 "//base/test:run_all_base_unittests",
2023 "//base/test:test_support", 2029 "//base/test:test_support",
2024 "//base/third_party/dynamic_annotations", 2030 "//base/third_party/dynamic_annotations",
2025 "//testing/gmock", 2031 "//testing/gmock",
2026 "//testing/gtest", 2032 "//testing/gtest",
2027 "//third_party/icu", 2033 "//third_party/icu",
2028 ] 2034 ]
2029 2035
2036 data_deps = [
2037 ":native_library_test_library",
2038 ]
2039
2030 if (is_ios || is_mac) { 2040 if (is_ios || is_mac) {
2031 deps += [ ":base_unittests_arc" ] 2041 deps += [ ":base_unittests_arc" ]
2032 } 2042 }
2033 2043
2034 public_deps = [ 2044 public_deps = [
2035 ":base_unittests_bundle_data", 2045 ":base_unittests_bundle_data",
2036 ] 2046 ]
2037 2047
2038 # Some unittests depend on the ALLOCATOR_SHIM macro. 2048 # Some unittests depend on the ALLOCATOR_SHIM macro.
2039 configs += [ "//base/allocator:allocator_shim_define" ] 2049 configs += [ "//base/allocator:allocator_shim_define" ]
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 # data += [ "$root_out_dir/base_unittests.dSYM/" ] 2156 # data += [ "$root_out_dir/base_unittests.dSYM/" ]
2147 } 2157 }
2148 } 2158 }
2149 2159
2150 if (use_cfi_cast) { 2160 if (use_cfi_cast) {
2151 # TODO(krasin): remove CFI_CAST_CHECK, see https://crbug.com/626794. 2161 # TODO(krasin): remove CFI_CAST_CHECK, see https://crbug.com/626794.
2152 defines += [ "CFI_CAST_CHECK" ] 2162 defines += [ "CFI_CAST_CHECK" ]
2153 } 2163 }
2154 } 2164 }
2155 2165
2166 shared_library("native_library_test_library") {
2167 sources = [
2168 "native_library_test_library.cc",
2169 ]
2170 }
2171
2156 action("build_date") { 2172 action("build_date") {
2157 script = "//build/write_build_date_header.py" 2173 script = "//build/write_build_date_header.py"
2158 2174
2159 # Force recalculation if there's been a change. 2175 # Force recalculation if there's been a change.
2160 inputs = [ 2176 inputs = [
2161 "//build/util/LASTCHANGE", 2177 "//build/util/LASTCHANGE",
2162 ] 2178 ]
2163 outputs = [ 2179 outputs = [
2164 "$target_gen_dir/generated_build_date.h", 2180 "$target_gen_dir/generated_build_date.h",
2165 ] 2181 ]
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 android_library("base_java_unittest_support") { 2461 android_library("base_java_unittest_support") {
2446 deps = [ 2462 deps = [
2447 ":base_java", 2463 ":base_java",
2448 ] 2464 ]
2449 java_files = [ 2465 java_files = [
2450 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", 2466 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java",
2451 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", 2467 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java",
2452 ] 2468 ]
2453 } 2469 }
2454 } 2470 }
OLDNEW
« no previous file with comments | « no previous file | base/native_library.h » ('j') | base/native_library.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698