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", |
(...skipping 17 matching lines...) Expand all Loading... |
28 "ref_counted.cc", | 28 "ref_counted.cc", |
29 "ref_counted.h", | 29 "ref_counted.h", |
30 "ref_counted_delete_on_message_loop.h", | 30 "ref_counted_delete_on_message_loop.h", |
31 "ref_counted_memory.cc", | 31 "ref_counted_memory.cc", |
32 "ref_counted_memory.h", | 32 "ref_counted_memory.h", |
33 "scoped_policy.h", | 33 "scoped_policy.h", |
34 "scoped_ptr.h", | 34 "scoped_ptr.h", |
35 "scoped_vector.h", | 35 "scoped_vector.h", |
36 "shared_memory.h", | 36 "shared_memory.h", |
37 "shared_memory_android.cc", | 37 "shared_memory_android.cc", |
| 38 "shared_memory_handle.h", |
| 39 "shared_memory_handle_mac.cc", |
| 40 "shared_memory_mac.cc", |
38 "shared_memory_nacl.cc", | 41 "shared_memory_nacl.cc", |
39 "shared_memory_posix.cc", | 42 "shared_memory_posix.cc", |
40 "shared_memory_win.cc", | 43 "shared_memory_win.cc", |
41 "singleton.cc", | 44 "singleton.cc", |
42 "singleton.h", | 45 "singleton.h", |
43 "weak_ptr.cc", | 46 "weak_ptr.cc", |
44 "weak_ptr.h", | 47 "weak_ptr.h", |
45 ] | 48 ] |
46 | 49 |
47 if (is_nacl) { | 50 if (is_nacl) { |
48 sources -= [ | 51 sources -= [ |
49 "discardable_memory.cc", | 52 "discardable_memory.cc", |
50 "discardable_memory.h", | 53 "discardable_memory.h", |
51 "discardable_memory_allocator.cc", | 54 "discardable_memory_allocator.cc", |
52 "discardable_memory_allocator.h", | 55 "discardable_memory_allocator.h", |
53 "discardable_shared_memory.cc", | 56 "discardable_shared_memory.cc", |
54 "discardable_shared_memory.h", | 57 "discardable_shared_memory.h", |
55 "shared_memory_posix.cc", | 58 "shared_memory_posix.cc", |
56 ] | 59 ] |
57 } else { | 60 } else { |
58 sources -= [ "shared_memory_nacl.cc" ] | 61 sources -= [ "shared_memory_nacl.cc" ] |
59 } | 62 } |
60 | 63 |
| 64 if (is_mac) { |
| 65 sources -= [ "shared_memory_posix.cc" ] |
| 66 } |
| 67 |
61 if (is_android) { | 68 if (is_android) { |
62 deps = [ | 69 deps = [ |
63 "//third_party/ashmem", | 70 "//third_party/ashmem", |
64 ] | 71 ] |
65 } | 72 } |
66 | 73 |
67 configs += [ "//base:base_implementation" ] | 74 configs += [ "//base:base_implementation" ] |
68 | 75 |
69 visibility = [ "//base/*" ] | 76 visibility = [ "//base/*" ] |
70 } | 77 } |
OLD | NEW |