Home | History | Annotate | Download | only in mojo
      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
      3 # found in the LICENSE file.
      4 
      5 import("//mojo/public/tools/bindings/mojom.gni")
      6 
      7 # This target does NOT depend on skia. One can depend on this target to avoid
      8 # picking up a dependency on skia.
      9 mojom("mojo") {
     10   sources = [
     11     "geometry.mojom",
     12   ]
     13 
     14   check_includes_blink = false
     15 }
     16 
     17 mojom("test_interfaces") {
     18   sources = [
     19     "geometry_traits_test_service.mojom",
     20   ]
     21 
     22   public_deps = [
     23     ":mojo",
     24   ]
     25 }
     26 
     27 source_set("unit_test") {
     28   testonly = true
     29 
     30   sources = [
     31     "geometry_struct_traits_unittest.cc",
     32   ]
     33 
     34   deps = [
     35     ":test_interfaces",
     36     "//base",
     37     "//mojo/public/cpp/bindings",
     38     "//testing/gtest",
     39     "//ui/gfx/geometry",
     40   ]
     41 }
     42 
     43 source_set("struct_traits") {
     44   sources = [
     45     "geometry_struct_traits.h",
     46   ]
     47   public_deps = [
     48     ":mojo_shared_cpp_sources",
     49     "//ui/gfx/geometry",
     50   ]
     51 }
     52