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   # TODO(crbug.com/699569): Convert to use the new JS bindings.
     15   use_new_js_bindings = false
     16 }
     17 
     18 mojom("test_interfaces") {
     19   sources = [
     20     "geometry_traits_test_service.mojom",
     21   ]
     22 
     23   public_deps = [
     24     ":mojo",
     25   ]
     26 }
     27 
     28 source_set("unit_test") {
     29   testonly = true
     30 
     31   sources = [
     32     "geometry_struct_traits_unittest.cc",
     33   ]
     34 
     35   deps = [
     36     ":test_interfaces",
     37     "//base",
     38     "//mojo/public/cpp/bindings",
     39     "//testing/gtest",
     40     "//ui/gfx/geometry",
     41   ]
     42 }
     43 
     44 source_set("struct_traits") {
     45   sources = [
     46     "geometry_struct_traits.h",
     47   ]
     48   public_deps = [
     49     ":mojo_shared_cpp_sources",
     50     "//ui/gfx/geometry",
     51   ]
     52 }
     53