Enterprise policy: Ignore the deprecated ForceSafeSearch if ForceGoogleSafeSearch...
[chromium-blink-merge.git] / base / memory / BUILD.gn
blobbd864caa245b32bb57dcf4737f08c87074ea69b4
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.
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     "raw_scoped_refptr_mismatch_checker.h",
22     "ref_counted.cc",
23     "ref_counted.h",
24     "ref_counted_delete_on_message_loop.h",
25     "ref_counted_memory.cc",
26     "ref_counted_memory.h",
27     "scoped_policy.h",
28     "scoped_ptr.h",
29     "scoped_vector.h",
30     "shared_memory.h",
31     "shared_memory_android.cc",
32     "shared_memory_nacl.cc",
33     "shared_memory_posix.cc",
34     "shared_memory_win.cc",
35     "singleton.cc",
36     "singleton.h",
37     "weak_ptr.cc",
38     "weak_ptr.h",
39   ]
41   if (is_nacl) {
42     sources -= [
43       "discardable_memory.cc",
44       "discardable_memory.h",
45       "discardable_memory_allocator.cc",
46       "discardable_memory_allocator.h",
47       "discardable_shared_memory.cc",
48       "discardable_shared_memory.h",
49       "shared_memory_posix.cc",
50     ]
51   } else {
52     sources -= [ "shared_memory_nacl.cc" ]
53   }
55   configs += [ "//base:base_implementation" ]
57   visibility = [ "//base/*" ]