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/memory | |
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/memory')
-rw-r--r-- | base/memory/BUILD.gn | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/base/memory/BUILD.gn b/base/memory/BUILD.gn new file mode 100644 index 0000000..561e5cd --- /dev/null +++ b/base/memory/BUILD.gn @@ -0,0 +1,81 @@ +# 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("memory") { + sources = [ + "aligned_memory.cc", + "aligned_memory.h", + "discardable_memory.cc", + "discardable_memory.h", + "discardable_memory_android.cc", + "discardable_memory_emulated.cc", + "discardable_memory_emulated.h", + "discardable_memory_linux.cc", + "discardable_memory_mac.cc", + "discardable_memory_manager.cc", + "discardable_memory_manager.h", + "discardable_memory_shmem.cc", + "discardable_memory_shmem.h", + "discardable_memory_shmem_allocator.cc", + "discardable_memory_shmem_allocator.h", + "discardable_memory_win.cc", + "discardable_shared_memory.cc", + "discardable_shared_memory.h", + "linked_ptr.h", + "manual_constructor.h", + "memory_pressure_listener.cc", + "memory_pressure_listener.h", + "raw_scoped_refptr_mismatch_checker.h", + "ref_counted.cc", + "ref_counted.h", + "ref_counted_delete_on_message_loop.h", + "ref_counted_memory.cc", + "ref_counted_memory.h", + "scoped_policy.h", + "scoped_ptr.h", + "scoped_vector.h", + "shared_memory.h", + "shared_memory_android.cc", + "shared_memory_nacl.cc", + "shared_memory_posix.cc", + "shared_memory_win.cc", + "singleton.cc", + "singleton.h", + "weak_ptr.cc", + "weak_ptr.h", + ] + + if (is_android) { + sources += [ + "discardable_memory_ashmem.cc", + "discardable_memory_ashmem.h", + "discardable_memory_ashmem_allocator.cc", + "discardable_memory_ashmem_allocator.h", + ] + } + + if (is_nacl) { + sources -= [ + "discardable_memory.cc", + "discardable_memory.h", + "discardable_memory_emulated.cc", + "discardable_memory_emulated.h", + "discardable_memory_manager.cc", + "discardable_memory_manager.h", + "discardable_memory_shmem.cc", + "discardable_memory_shmem.h", + "discardable_memory_shmem_allocator.cc", + "discardable_memory_shmem_allocator.h", + "discardable_shared_memory.cc", + "discardable_shared_memory.h", + "shared_memory_posix.cc", + ] + } else { + sources -= [ "shared_memory_nacl.cc" ] + } + + defines = [ "BASE_IMPLEMENTATION" ] + + visibility = [ "//base/*" ] +} |