Home | History | Annotate | Download | only in surfaces_app
      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
      3 # found in the LICENSE file.
      4 
      5 import("//mojo/public/tools/bindings/mojom.gni")
      6 
      7 group("surfaces_app") {
      8   deps = [
      9     ":child_app",
     10     ":child_gl_app",
     11     ":parent_app",
     12   ]
     13 }
     14 
     15 # GYP version: mojo/mojo_examples.gypi:mojo_surfaces_app
     16 shared_library("parent_app") {
     17   output_name = "mojo_surfaces_app"
     18 
     19   deps = [
     20     ":bindings",
     21     ":util",
     22     "//base",
     23     "//cc",
     24     "//cc/surfaces",
     25     "//skia",
     26     "//ui/gfx",
     27     "//ui/gfx/geometry",
     28     "//mojo/application",
     29     "//mojo/common",
     30     "//mojo/environment:chromium",
     31     "//mojo/public/c/system:for_shared_library",
     32     "//mojo/services/public/interfaces/geometry",
     33     "//mojo/services/public/cpp/geometry",
     34     "//mojo/services/public/interfaces/surfaces",
     35     "//mojo/services/public/cpp/surfaces",
     36   ]
     37 
     38   sources = [
     39     "embedder.cc",
     40     "embedder.h",
     41     "surfaces_app.cc",
     42   ]
     43 }
     44 
     45 
     46 # GYP version: mojo/mojo_examples.gypi:mojo_surfaces_child_app
     47 shared_library("child_app") {
     48   output_name = "mojo_surfaces_child_app"
     49 
     50   deps = [
     51     ":bindings",
     52     ":util",
     53     "//base",
     54     "//cc",
     55     "//cc/surfaces",
     56     "//skia",
     57     "//ui/gfx",
     58     "//ui/gfx/geometry",
     59     "//mojo/application",
     60     "//mojo/common",
     61     "//mojo/environment:chromium",
     62     "//mojo/public/c/system:for_shared_library",
     63     "//mojo/services/public/interfaces/geometry",
     64     "//mojo/services/public/cpp/geometry",
     65     "//mojo/services/public/interfaces/surfaces",
     66     "//mojo/services/public/cpp/surfaces",
     67   ]
     68 
     69   sources = [
     70     "child_app.cc",
     71     "child_impl.cc",
     72     "child_impl.h",
     73   ]
     74 }
     75 
     76 # GYP version: mojo/mojo_examples.gypi:mojo_surfaces_child_gl_app
     77 shared_library("child_gl_app") {
     78   output_name = "mojo_surfaces_child_gl_app"
     79 
     80   deps = [
     81     ":bindings",
     82     ":util",
     83     "//base",
     84     "//cc",
     85     "//cc/surfaces",
     86     "//skia",
     87     "//ui/gfx",
     88     "//ui/gfx/geometry",
     89     "//mojo/common",
     90     "//mojo/application",
     91     "//mojo/environment:chromium",
     92     "//mojo/examples/sample_app:spinning_cube",
     93     "//mojo/public/c/system:for_shared_library",
     94     "//mojo/public/gles2:for_shared_library",
     95     "//mojo/services/public/interfaces/geometry",
     96     "//mojo/services/public/cpp/geometry",
     97     "//mojo/services/public/interfaces/surfaces",
     98     "//mojo/services/public/cpp/surfaces",
     99   ]
    100 
    101   sources = [
    102     "child_gl_app.cc",
    103     "child_gl_impl.cc",
    104     "child_gl_impl.h",
    105   ]
    106 }
    107 
    108 source_set("util") {
    109   deps = [
    110     "//cc",
    111     "//skia",
    112   ]
    113 
    114   sources = [
    115     "surfaces_util.cc",
    116     "surfaces_util.h",
    117   ]
    118 }
    119 
    120 # GYP version: mojo/mojo_examples.gypi:mojo_surfaces_app_bindings
    121 mojom("bindings") {
    122   deps = [
    123     "//mojo/services/public/interfaces/geometry",
    124     "//mojo/services/public/interfaces/surfaces",
    125   ]
    126 
    127   sources = [ "child.mojom" ]
    128 }
    129