crazy linker: Fix failure to cleanly unload libraries.
[chromium-blink-merge.git] / ui / gfx / geometry / BUILD.gn
blobeee571fc8c8f6d33815266dedb715efe4329e9b0
1 # Copyright 2014 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 component("geometry") {
6   sources = [
7     "../gfx_export.h",
8     "box_f.cc",
9     "box_f.h",
10     "cubic_bezier.h",
11     "cubic_bezier.cc",
12     "insets.cc",
13     "insets.h",
14     "insets_base.h",
15     "insets_f.cc",
16     "insets_f.h",
17     "matrix3_f.cc",
18     "matrix3_f.h",
19     "point.cc",
20     "point.h",
21     "point3_f.cc",
22     "point3_f.h",
23     "point_conversions.cc",
24     "point_conversions.h",
25     "point_f.cc",
26     "point_f.h",
27     "quad_f.cc",
28     "quad_f.h",
29     "rect.cc",
30     "rect.h",
31     "rect_conversions.cc",
32     "rect_conversions.h",
33     "rect_f.cc",
34     "rect_f.h",
35     "r_tree.h",
36     "r_tree_base.cc",
37     "r_tree_base.h",
38     "safe_integer_conversions.h",
39     "scroll_offset.cc",
40     "scroll_offset.h",
41     "size.cc",
42     "size.h",
43     "size_conversions.cc",
44     "size_conversions.h",
45     "size_f.cc",
46     "size_f.h",
47     "vector2d.cc",
48     "vector2d.h",
49     "vector2d_conversions.cc",
50     "vector2d_conversions.h",
51     "vector2d_f.cc",
52     "vector2d_f.h",
53     "vector3d_f.cc",
54     "vector3d_f.h",
55   ]
57   defines = [ "GFX_IMPLEMENTATION" ]
59   deps = [
60     "//base",
61     "//ui/gfx:gfx_export",
62   ]
64   if (is_android && !is_debug) {
65     configs -= [ "//build/config/compiler:optimize" ]
66     configs += [ "//build/config/compiler:optimize_max" ]
67   }