| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 source_set("memory") { | |
| 6 sources = [ | |
| 7 "aligned_memory.cc", | |
| 8 "aligned_memory.h", | |
| 9 "discardable_memory.cc", | |
| 10 "discardable_memory.h", | |
| 11 "discardable_memory_allocator.cc", | |
| 12 "discardable_memory_allocator.h", | |
| 13 "discardable_shared_memory.cc", | |
| 14 "discardable_shared_memory.h", | |
| 15 "linked_ptr.h", | |
| 16 "manual_constructor.h", | |
| 17 "memory_pressure_listener.cc", | |
| 18 "memory_pressure_listener.h", | |
| 19 "memory_pressure_monitor.cc", | |
| 20 "memory_pressure_monitor.h", | |
| 21 "memory_pressure_monitor_chromeos.cc", | |
| 22 "memory_pressure_monitor_chromeos.h", | |
| 23 "memory_pressure_monitor_mac.cc", | |
| 24 "memory_pressure_monitor_mac.h", | |
| 25 "memory_pressure_monitor_win.cc", | |
| 26 "memory_pressure_monitor_win.h", | |
| 27 "raw_scoped_refptr_mismatch_checker.h", | |
| 28 "ref_counted.cc", | |
| 29 "ref_counted.h", | |
| 30 "ref_counted_delete_on_message_loop.h", | |
| 31 "ref_counted_memory.cc", | |
| 32 "ref_counted_memory.h", | |
| 33 "scoped_policy.h", | |
| 34 "scoped_ptr.h", | |
| 35 "scoped_vector.h", | |
| 36 "shared_memory.h", | |
| 37 "shared_memory_android.cc", | |
| 38 "shared_memory_handle.h", | |
| 39 "shared_memory_handle_mac.cc", | |
| 40 "shared_memory_mac.cc", | |
| 41 "shared_memory_nacl.cc", | |
| 42 "shared_memory_posix.cc", | |
| 43 "shared_memory_win.cc", | |
| 44 "singleton.cc", | |
| 45 "singleton.h", | |
| 46 "weak_ptr.cc", | |
| 47 "weak_ptr.h", | |
| 48 ] | |
| 49 | |
| 50 if (is_nacl) { | |
| 51 sources -= [ | |
| 52 "discardable_shared_memory.cc", | |
| 53 "discardable_shared_memory.h", | |
| 54 "shared_memory_posix.cc", | |
| 55 ] | |
| 56 } else { | |
| 57 sources -= [ "shared_memory_nacl.cc" ] | |
| 58 } | |
| 59 | |
| 60 if (is_mac) { | |
| 61 sources -= [ "shared_memory_posix.cc" ] | |
| 62 } | |
| 63 | |
| 64 if (is_android) { | |
| 65 deps = [ | |
| 66 "//third_party/ashmem", | |
| 67 ] | |
| 68 } | |
| 69 | |
| 70 configs += [ "//base:base_implementation" ] | |
| 71 | |
| 72 visibility = [ "//base/*" ] | |
| 73 } | |
| OLD | NEW |