diff options
author | ncbray <ncbray@chromium.org> | 2015-03-10 15:14:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-10 22:15:12 +0000 |
commit | 9099f49130311a760ce3fe88b7782a5574e6ba9d (patch) | |
tree | 5bfc4e33e30b155587305e01dcede670ed80a1fa /base/debug | |
parent | 659061ebdf5119aff7c12ba135554315aae9ea79 (diff) | |
download | chromium_src-9099f49130311a760ce3fe88b7782a5574e6ba9d.zip chromium_src-9099f49130311a760ce3fe88b7782a5574e6ba9d.tar.gz chromium_src-9099f49130311a760ce3fe88b7782a5574e6ba9d.tar.bz2 |
Fix GN NaCl Debug build of base.
BUG=401761
TBR=brettw
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg
Review URL: https://codereview.chromium.org/972203003
Cr-Commit-Position: refs/heads/master@{#319987}
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/BUILD.gn | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/base/debug/BUILD.gn b/base/debug/BUILD.gn new file mode 100644 index 0000000..37a0ab2 --- /dev/null +++ b/base/debug/BUILD.gn @@ -0,0 +1,75 @@ +# Copyright (c) 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("debug") { + sources = [ + "alias.cc", + "alias.h", + "asan_invalid_access.cc", + "asan_invalid_access.h", + "crash_logging.cc", + "crash_logging.h", + "debugger.cc", + "debugger.h", + "debugger_posix.cc", + "debugger_win.cc", + "dump_without_crashing.cc", + "dump_without_crashing.h", + "gdi_debug_util_win.cc", + "gdi_debug_util_win.h", + + # This file depends on files from the "allocator" target, + # but this target does not depend on "allocator" (see + # allocator.gyp for details). + "leak_annotations.h", + "leak_tracker.h", + "proc_maps_linux.cc", + "proc_maps_linux.h", + "profiler.cc", + "profiler.h", + "stack_trace.cc", + "stack_trace.h", + "stack_trace_android.cc", + "stack_trace_posix.cc", + "stack_trace_win.cc", + "task_annotator.cc", + "task_annotator.h", + ] + + if (is_android) { + # Android uses some Linux sources, put those back. + set_sources_assignment_filter([]) + sources += [ "proc_maps_linux.cc" ] + set_sources_assignment_filter(sources_assignment_filter) + + sources -= [ "stack_trace_posix.cc" ] + } + + if (is_nacl) { + sources -= [ + "crash_logging.cc", + "crash_logging.h", + "stack_trace.cc", + "stack_trace_posix.cc", + ] + } + + defines = [ "BASE_IMPLEMENTATION" ] + + deps = [ + "//base/memory", + "//base/process", + ] + + if (is_linux) { + deps += [ "//base/third_party/symbolize" ] + } + + allow_circular_includes_from = [ + "//base/memory", + "//base/process", + ] + + visibility = [ "//base/*" ] +} |