OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 source_set("memory") { | 5 source_set("memory") { |
6 sources = [ | 6 sources = [ |
7 "aligned_memory.cc", | 7 "aligned_memory.cc", |
8 "aligned_memory.h", | 8 "aligned_memory.h", |
9 "discardable_memory.cc", | 9 "discardable_memory.cc", |
10 "discardable_memory.h", | 10 "discardable_memory.h", |
11 "discardable_memory_allocator.cc", | 11 "discardable_memory_allocator.cc", |
12 "discardable_memory_allocator.h", | 12 "discardable_memory_allocator.h", |
13 "discardable_shared_memory.cc", | 13 "discardable_shared_memory.cc", |
14 "discardable_shared_memory.h", | 14 "discardable_shared_memory.h", |
15 "linked_ptr.h", | 15 "linked_ptr.h", |
16 "manual_constructor.h", | 16 "manual_constructor.h", |
17 "memory_pressure_listener.cc", | 17 "memory_pressure_listener.cc", |
18 "memory_pressure_listener.h", | 18 "memory_pressure_listener.h", |
19 "memory_pressure_monitor.cc", | 19 "memory_pressure_monitor.cc", |
20 "memory_pressure_monitor.h", | 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", |
21 "raw_scoped_refptr_mismatch_checker.h", | 27 "raw_scoped_refptr_mismatch_checker.h", |
22 "ref_counted.cc", | 28 "ref_counted.cc", |
23 "ref_counted.h", | 29 "ref_counted.h", |
24 "ref_counted_delete_on_message_loop.h", | 30 "ref_counted_delete_on_message_loop.h", |
25 "ref_counted_memory.cc", | 31 "ref_counted_memory.cc", |
26 "ref_counted_memory.h", | 32 "ref_counted_memory.h", |
27 "scoped_policy.h", | 33 "scoped_policy.h", |
28 "scoped_ptr.h", | 34 "scoped_ptr.h", |
29 "scoped_vector.h", | 35 "scoped_vector.h", |
30 "shared_memory.h", | 36 "shared_memory.h", |
(...skipping 14 matching lines...) Expand all Loading... |
45 "discardable_memory_allocator.cc", | 51 "discardable_memory_allocator.cc", |
46 "discardable_memory_allocator.h", | 52 "discardable_memory_allocator.h", |
47 "discardable_shared_memory.cc", | 53 "discardable_shared_memory.cc", |
48 "discardable_shared_memory.h", | 54 "discardable_shared_memory.h", |
49 "shared_memory_posix.cc", | 55 "shared_memory_posix.cc", |
50 ] | 56 ] |
51 } else { | 57 } else { |
52 sources -= [ "shared_memory_nacl.cc" ] | 58 sources -= [ "shared_memory_nacl.cc" ] |
53 } | 59 } |
54 | 60 |
| 61 if (is_android) { |
| 62 deps = [ |
| 63 "//third_party/ashmem", |
| 64 ] |
| 65 } |
| 66 |
55 configs += [ "//base:base_implementation" ] | 67 configs += [ "//base:base_implementation" ] |
56 | 68 |
57 visibility = [ "//base/*" ] | 69 visibility = [ "//base/*" ] |
58 } | 70 } |
OLD | NEW |