IndexedDB: Protect against use-after-free in ChainedBlobWriter.
[chromium-blink-merge.git] / cc / base / BUILD.gn
blob261bb1c395e68dc32f61b46c98c4de3b0d670b96
1 # Copyright 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("base") {
6   visibility = [ "//cc" ]
8   sources = [
9     "completion_event.h",
10     "delayed_unique_notifier.cc",
11     "delayed_unique_notifier.h",
12     "histograms.cc",
13     "histograms.h",
14     "invalidation_region.cc",
15     "invalidation_region.h",
16     "math_util.cc",
17     "math_util.h",
18     "ref_counted_managed.h",
19     "region.cc",
20     "region.h",
21     "rolling_time_delta_history.cc",
22     "rolling_time_delta_history.h",
23     "scoped_ptr_algorithm.h",
24     "scoped_ptr_deque.h",
25     "scoped_ptr_vector.h",
26     "simple_enclosed_region.cc",
27     "simple_enclosed_region.h",
28     "switches.cc",
29     "switches.h",
30     "synced_property.h",
31     "tiling_data.cc",
32     "tiling_data.h",
33     "time_util.h",
34     "unique_notifier.cc",
35     "unique_notifier.h",
36     "util.h",
37   ]
39   deps = [
40     "//base",
41     "//base/third_party/dynamic_annotations",
42     "//skia",
43     "//ui/gfx",
44     "//ui/gfx/geometry",
45   ]
47   defines = [ "CC_IMPLEMENTATION=1" ]
49   if (!is_debug && (is_win || is_android)) {
50     configs -= [ "//build/config/compiler:optimize" ]
51     configs += [ "//build/config/compiler:optimize_max" ]
52   }