Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / mojo / examples / apptest / BUILD.gn
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("apptest") {
8   testonly = true
9
10   deps = [
11     ":apptests",
12     ":service",
13   ]
14 }
15
16 # GYP version mojo/mojo_examples.gypi:mojo_example_service
17 shared_library("service") {
18   output_name = "mojo_example_service"
19
20   sources = [
21     "example_service_application.cc",
22     "example_service_application.h",
23     "example_service_impl.cc",
24     "example_service_impl.h",
25   ]
26
27   deps = [
28     ":bindings",
29     "//mojo/public/c/system:for_shared_library",
30     "//mojo/public/cpp/application:standalone",
31     "//mojo/public/cpp/utility"
32   ]
33 }
34
35 # GYP version: mojo/mojo_examples.gypi:mojo_example_apptests
36 shared_library("apptests") {
37   output_name = "mojo_example_apptests"
38
39   testonly = true
40
41   sources = [
42     "example_apptest.cc",
43     "example_client_application.cc",
44     "example_client_application.h",
45     "example_client_impl.cc",
46     "example_client_impl.h",
47   ]
48
49    deps = [
50     ":bindings",
51     "//testing/gtest",
52     "//mojo/public/c/system:for_shared_library",
53     "//mojo/public/cpp/application:standalone",
54     "//mojo/public/cpp/utility",
55    ]
56 }
57
58 # GYP version: mojo/mojo_examples.gypi:mojo_example_service_bindings
59 mojom("bindings") {
60   sources = [ "example_service.mojom" ]
61 }