OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 import("//mojo/system.gni") |
| 6 |
5 component("geometry") { | 7 component("geometry") { |
6 output_name = "mojo_geometry_lib" | 8 output_name = "mojo_geometry_lib" |
7 | 9 |
8 deps = [ | 10 deps = [ |
9 "//skia", | 11 "//skia", |
10 "//ui/gfx", | 12 "//ui/gfx", |
11 "//ui/gfx/geometry", | 13 "//ui/gfx/geometry", |
12 "//mojo/environment:chromium", | 14 "//mojo/environment:chromium", |
13 "//mojo/services/public/interfaces/geometry", | 15 "//mojo/services/public/interfaces/geometry", |
14 ] | 16 ] |
| 17 deps += mojo_system_for_component |
15 | 18 |
16 forward_dependent_configs_from = [ "//ui/gfx" ] | 19 forward_dependent_configs_from = [ "//ui/gfx" ] |
17 | 20 |
18 defines = [ | 21 defines = [ |
19 "MOJO_GEOMETRY_IMPLEMENTATION", | 22 "MOJO_GEOMETRY_IMPLEMENTATION", |
20 ] | 23 ] |
21 | 24 |
22 sources = [ | 25 sources = [ |
23 "lib/geometry_type_converters.cc", | 26 "lib/geometry_type_converters.cc", |
24 "geometry_type_converters.h", | 27 "geometry_type_converters.h", |
25 "mojo_geometry_export.h", | 28 "mojo_geometry_export.h", |
26 ] | 29 ] |
27 | |
28 if (is_component_build) { | |
29 deps += [ "//mojo/system" ] | |
30 } | |
31 } | 30 } |
OLD | NEW |