| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 | 6 |
| 7 # This target does NOT depend on skia. One can depend on this target to avoid | 7 # This target does NOT depend on skia. One can depend on this target to avoid |
| 8 # picking up a dependency on skia. | 8 # picking up a dependency on skia. |
| 9 component("mojo") { | 9 mojom("mojo") { |
| 10 output_name = "mojo_geometry_lib" | |
| 11 | |
| 12 public_deps = [ | |
| 13 "//ui/gfx/geometry", | |
| 14 ] | |
| 15 deps = [ | |
| 16 "//mojo/public/c/system:for_component", | |
| 17 "//ui/gfx/geometry/mojo:interfaces", | |
| 18 ] | |
| 19 | |
| 20 defines = [ "MOJO_GEOMETRY_IMPLEMENTATION" ] | |
| 21 | |
| 22 sources = [ | |
| 23 "geometry_type_converters.cc", | |
| 24 "geometry_type_converters.h", | |
| 25 "mojo_geometry_export.h", | |
| 26 ] | |
| 27 } | |
| 28 | |
| 29 mojom("interfaces") { | |
| 30 sources = [ | 10 sources = [ |
| 31 "geometry.mojom", | 11 "geometry.mojom", |
| 32 ] | 12 ] |
| 33 } | 13 } |
| 34 | |
| 35 source_set("util") { | |
| 36 sources = [ | |
| 37 "geometry_util.h", | |
| 38 ] | |
| 39 | |
| 40 deps = [ | |
| 41 ":interfaces", | |
| 42 ] | |
| 43 } | |
| OLD | NEW |