OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 6 |
7 group("apptest") { | 7 group("apptest") { |
8 testonly = true | 8 testonly = true |
9 | 9 |
10 deps = [ | 10 deps = [ |
11 ":apptests", | 11 ":apptests", |
12 ":service", | 12 ":service", |
13 ] | 13 ] |
14 } | 14 } |
15 | 15 |
16 # GYP version mojo/mojo_examples.gypi:mojo_example_service | |
17 shared_library("service") { | 16 shared_library("service") { |
18 output_name = "mojo_example_service" | 17 output_name = "mojo_example_service" |
19 | 18 |
20 sources = [ | 19 sources = [ |
21 "example_service_application.cc", | 20 "example_service_application.cc", |
22 "example_service_application.h", | 21 "example_service_application.h", |
23 "example_service_impl.cc", | 22 "example_service_impl.cc", |
24 "example_service_impl.h", | 23 "example_service_impl.h", |
25 ] | 24 ] |
26 | 25 |
27 deps = [ | 26 deps = [ |
28 ":bindings", | 27 ":bindings", |
29 "//mojo/public/c/system:for_shared_library", | 28 "//mojo/public/c/system:for_shared_library", |
30 "//mojo/public/cpp/application:standalone", | 29 "//mojo/public/cpp/application:standalone", |
31 "//mojo/public/cpp/utility" | 30 "//mojo/public/cpp/utility" |
32 ] | 31 ] |
33 } | 32 } |
34 | 33 |
35 # GYP version: mojo/mojo_examples.gypi:mojo_example_apptests | |
36 shared_library("apptests") { | 34 shared_library("apptests") { |
37 output_name = "mojo_example_apptests" | 35 output_name = "mojo_example_apptests" |
38 | 36 |
39 testonly = true | 37 testonly = true |
40 | 38 |
41 sources = [ | 39 sources = [ |
42 "example_apptest.cc", | 40 "example_apptest.cc", |
43 "example_client_application.cc", | 41 "example_client_application.cc", |
44 "example_client_application.h", | 42 "example_client_application.h", |
45 "example_client_impl.cc", | 43 "example_client_impl.cc", |
46 "example_client_impl.h", | 44 "example_client_impl.h", |
47 ] | 45 ] |
48 | 46 |
49 deps = [ | 47 deps = [ |
50 ":bindings", | 48 ":bindings", |
51 "//testing/gtest", | 49 "//testing/gtest", |
52 "//mojo/public/c/system:for_shared_library", | 50 "//mojo/public/c/system:for_shared_library", |
53 "//mojo/public/cpp/application:standalone", | 51 "//mojo/public/cpp/application:standalone", |
54 "//mojo/public/cpp/utility", | 52 "//mojo/public/cpp/utility", |
55 ] | 53 ] |
56 } | 54 } |
57 | 55 |
58 # GYP version: mojo/mojo_examples.gypi:mojo_example_service_bindings | |
59 mojom("bindings") { | 56 mojom("bindings") { |
60 sources = [ "example_service.mojom" ] | 57 sources = [ "example_service.mojom" ] |
61 } | 58 } |
OLD | NEW |