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_shared_memory.cc", | 52 "discardable_shared_memory.cc", |
50 "discardable_shared_memory.h", | 53 "discardable_shared_memory.h", |
51 "shared_memory_posix.cc", | 54 "shared_memory_posix.cc", |
52 ] | 55 ] |
53 } else { | 56 } else { |
54 sources -= [ "shared_memory_nacl.cc" ] | 57 sources -= [ "shared_memory_nacl.cc" ] |
55 } | 58 } |
56 | 59 |
| 60 if (is_mac) { |
| 61 sources -= [ "shared_memory_posix.cc" ] |
| 62 } |
| 63 |
57 if (is_android) { | 64 if (is_android) { |
58 deps = [ | 65 deps = [ |
59 "//third_party/ashmem", | 66 "//third_party/ashmem", |
60 ] | 67 ] |
61 } | 68 } |
62 | 69 |
63 configs += [ "//base:base_implementation" ] | 70 configs += [ "//base:base_implementation" ] |
64 | 71 |
65 visibility = [ "//base/*" ] | 72 visibility = [ "//base/*" ] |
66 } | 73 } |
OLD | NEW |