summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/geometry/mojo/BUILD.gn
blob: 2d0e1efbcfd44d47b3d334990c4710c8a31c5300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//mojo/public/tools/bindings/mojom.gni")

# This target does NOT depend on skia. One can depend on this target to avoid
# picking up a dependency on skia.
mojom("mojo") {
  sources = [
    "geometry.mojom",
  ]

  check_includes_blink = false
}

mojom("test_interfaces") {
  sources = [
    "geometry_traits_test_service.mojom",
  ]

  public_deps = [
    ":mojo",
  ]
}

source_set("unit_test") {
  testonly = true

  sources = [
    "geometry_struct_traits_unittest.cc",
  ]

  deps = [
    ":test_interfaces",
    "//base",
    "//mojo/public/cpp/bindings",
    "//testing/gtest",
    "//ui/gfx/geometry",
  ]
}

source_set("struct_traits") {
  sources = [
    "geometry_struct_traits.h",
  ]
  public_deps = [
    ":mojo_shared_cpp_sources",
    "//ui/gfx/geometry",
  ]
}