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

Side by Side Diff: base/BUILD.gn

Issue 1423583002: Stack sampling profiler: handle unloaded and unloading modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix gcc compile Created 5 years, 1 month 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/base.gyp » ('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) 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 import("//build/config/compiler/compiler.gni") 5 import("//build/config/compiler/compiler.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 "/SUBSYSTEM:WINDOWS", 1183 "/SUBSYSTEM:WINDOWS",
1184 ] 1184 ]
1185 libs = [ 1185 libs = [
1186 "cfgmgr32.lib", 1186 "cfgmgr32.lib",
1187 "shell32.lib", 1187 "shell32.lib",
1188 ] 1188 ]
1189 deps = [ 1189 deps = [
1190 "//build/config/sanitizers:deps", 1190 "//build/config/sanitizers:deps",
1191 ] 1191 ]
1192 } 1192 }
1193
1194 if (target_cpu == "x64") {
1195 # Must be a shared library so that it can be unloaded during testing.
1196 shared_library("base_profiler_test_support_library") {
1197 sources = [
1198 "profiler/test_support_library.cc",
1199 ]
1200 deps = [
1201 "//build/config/sanitizers:deps",
1202 ]
1203 }
1204 }
1193 } 1205 }
1194 1206
1195 # TODO(GYP): Delete this after we've converted everything to GN. 1207 # TODO(GYP): Delete this after we've converted everything to GN.
1196 # The _run targets exist only for compatibility w/ GYP. 1208 # The _run targets exist only for compatibility w/ GYP.
1197 group("base_unittests_run") { 1209 group("base_unittests_run") {
1198 testonly = true 1210 testonly = true
1199 deps = [ 1211 deps = [
1200 ":base_unittests", 1212 ":base_unittests",
1201 ] 1213 ]
1202 } 1214 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 deps += [ "//third_party/libevent" ] 1534 deps += [ "//third_party/libevent" ]
1523 } 1535 }
1524 1536
1525 if (is_android) { 1537 if (is_android) {
1526 deps += [ "//testing/android/native_test:native_test_native_code" ] 1538 deps += [ "//testing/android/native_test:native_test_native_code" ]
1527 set_sources_assignment_filter([]) 1539 set_sources_assignment_filter([])
1528 sources += [ "debug/proc_maps_linux_unittest.cc" ] 1540 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1529 set_sources_assignment_filter(sources_assignment_filter) 1541 set_sources_assignment_filter(sources_assignment_filter)
1530 } 1542 }
1531 1543
1532 if (is_win) { 1544 if (is_win && target_cpu == "x64") {
1533 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] 1545 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
1546 deps += [ ":base_profiler_test_support_library" ]
1534 } 1547 }
1535 1548
1536 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1549 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1537 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1550 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1538 1551
1539 # Symbols for crashes when running tests on swarming. 1552 # Symbols for crashes when running tests on swarming.
1540 if (symbol_level > 0) { 1553 if (symbol_level > 0) {
1541 if (is_win) { 1554 if (is_win) {
1542 data += [ "$root_out_dir/base_unittests.exe.pdb" ] 1555 data += [ "$root_out_dir/base_unittests.exe.pdb" ]
1543 } else if (is_mac) { 1556 } else if (is_mac) {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 1697
1685 # GYP: //base.gyp:base_java_unittest_support 1698 # GYP: //base.gyp:base_java_unittest_support
1686 android_library("base_java_unittest_support") { 1699 android_library("base_java_unittest_support") {
1687 deps = [ 1700 deps = [
1688 ":base_java", 1701 ":base_java",
1689 ] 1702 ]
1690 java_files = 1703 java_files =
1691 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 1704 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
1692 } 1705 }
1693 } 1706 }
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698