| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 "shared_memory_posix.cc", | 42 "shared_memory_posix.cc", |
| 43 "shared_memory_win.cc", | 43 "shared_memory_win.cc", |
| 44 "singleton.cc", | 44 "singleton.cc", |
| 45 "singleton.h", | 45 "singleton.h", |
| 46 "weak_ptr.cc", | 46 "weak_ptr.cc", |
| 47 "weak_ptr.h", | 47 "weak_ptr.h", |
| 48 ] | 48 ] |
| 49 if (is_ios) { | 49 if (is_ios) { |
| 50 sources -= [ | 50 sources -= [ |
| 51 "discardable_shared_memory.cc", | 51 "discardable_shared_memory.cc", |
| 52 "discardable_shared_memory.h", |
| 53 "shared_memory.h", |
| 52 "shared_memory_posix.cc", | 54 "shared_memory_posix.cc", |
| 53 ] | 55 ] |
| 54 } | 56 } |
| 55 | 57 |
| 56 if (is_nacl) { | 58 if (is_nacl) { |
| 57 sources -= [ | 59 sources -= [ |
| 58 "discardable_shared_memory.cc", | 60 "discardable_shared_memory.cc", |
| 59 "discardable_shared_memory.h", | 61 "discardable_shared_memory.h", |
| 60 "shared_memory_posix.cc", | 62 "shared_memory_posix.cc", |
| 61 ] | 63 ] |
| 62 } else { | 64 } else { |
| 63 sources -= [ "shared_memory_nacl.cc" ] | 65 sources -= [ "shared_memory_nacl.cc" ] |
| 64 } | 66 } |
| 65 | 67 |
| 66 if (is_mac) { | 68 if (is_mac) { |
| 67 sources -= [ "shared_memory_posix.cc" ] | 69 sources -= [ "shared_memory_posix.cc" ] |
| 68 } | 70 } |
| 69 | 71 |
| 70 if (is_android) { | 72 if (is_android) { |
| 71 deps = [ | 73 deps = [ |
| 72 "//third_party/ashmem", | 74 "//third_party/ashmem", |
| 73 ] | 75 ] |
| 74 } | 76 } |
| 75 | 77 |
| 76 configs += [ "//base:base_implementation" ] | 78 configs += [ "//base:base_implementation" ] |
| 77 | 79 |
| 78 visibility = [ "//base/*" ] | 80 visibility = [ "//base/*" ] |
| 79 } | 81 } |
| OLD | NEW |