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/mojo_application.gni") |
5 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 7 |
7 group("apptest") { | 8 group("apptest") { |
8 testonly = true | 9 testonly = true |
9 | 10 |
10 deps = [ | 11 deps = [ |
11 ":apptests", | 12 ":apptests", |
12 ":service", | 13 ":service", |
13 ] | 14 ] |
14 } | 15 } |
15 | 16 |
16 shared_library("service") { | 17 mojo_native_application("service") { |
17 output_name = "example_service" | 18 output_name = "example_service" |
18 | 19 |
19 sources = [ | 20 sources = [ |
20 "example_service_application.cc", | 21 "example_service_application.cc", |
21 "example_service_application.h", | 22 "example_service_application.h", |
22 "example_service_impl.cc", | 23 "example_service_impl.cc", |
23 "example_service_impl.h", | 24 "example_service_impl.h", |
24 ] | 25 ] |
25 | 26 |
26 deps = [ | 27 deps = [ |
27 ":bindings", | 28 ":bindings", |
28 "//mojo/public/c/system:for_shared_library", | 29 "//mojo/public/c/system:for_shared_library", |
29 "//mojo/public/cpp/application:standalone", | 30 "//mojo/public/cpp/application:standalone", |
30 "//mojo/public/cpp/utility" | 31 "//mojo/public/cpp/utility" |
31 ] | 32 ] |
32 } | 33 } |
33 | 34 |
34 shared_library("apptests") { | 35 mojo_native_application("apptests") { |
35 output_name = "example_apptests" | 36 output_name = "example_apptests" |
36 | 37 |
37 testonly = true | 38 testonly = true |
38 | 39 |
39 sources = [ | 40 sources = [ |
40 "example_apptest.cc", | 41 "example_apptest.cc", |
41 "example_client_application.cc", | 42 "example_client_application.cc", |
42 "example_client_application.h", | 43 "example_client_application.h", |
43 "example_client_impl.cc", | 44 "example_client_impl.cc", |
44 "example_client_impl.h", | 45 "example_client_impl.h", |
45 ] | 46 ] |
46 | 47 |
47 deps = [ | 48 deps = [ |
48 ":bindings", | 49 ":bindings", |
49 "//mojo/public/c/system:for_shared_library", | 50 "//mojo/public/c/system:for_shared_library", |
50 "//mojo/public/cpp/application:standalone", | 51 "//mojo/public/cpp/application:standalone", |
51 "//mojo/public/cpp/application:test_support_standalone", | 52 "//mojo/public/cpp/application:test_support_standalone", |
52 ] | 53 ] |
53 | 54 |
54 datadeps = [ ":service", ] | 55 datadeps = [ ":service", ] |
55 } | 56 } |
56 | 57 |
57 mojom("bindings") { | 58 mojom("bindings") { |
58 sources = [ "example_service.mojom" ] | 59 sources = [ "example_service.mojom" ] |
59 } | 60 } |
OLD | NEW |