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 shared_library("service") { | 16 shared_library("service") { |
17 output_name = "example_service" | 17 output_name = "mojo_example_service" |
18 | 18 |
19 sources = [ | 19 sources = [ |
20 "example_service_application.cc", | 20 "example_service_application.cc", |
21 "example_service_application.h", | 21 "example_service_application.h", |
22 "example_service_impl.cc", | 22 "example_service_impl.cc", |
23 "example_service_impl.h", | 23 "example_service_impl.h", |
24 ] | 24 ] |
25 | 25 |
26 deps = [ | 26 deps = [ |
27 ":bindings", | 27 ":bindings", |
28 "//mojo/public/c/system:for_shared_library", | 28 "//mojo/public/c/system:for_shared_library", |
29 "//mojo/public/cpp/application:standalone", | 29 "//mojo/public/cpp/application:standalone", |
30 "//mojo/public/cpp/utility" | 30 "//mojo/public/cpp/utility" |
31 ] | 31 ] |
32 } | 32 } |
33 | 33 |
34 shared_library("apptests") { | 34 shared_library("apptests") { |
35 output_name = "example_apptests" | 35 output_name = "mojo_example_apptests" |
36 | 36 |
37 testonly = true | 37 testonly = true |
38 | 38 |
39 sources = [ | 39 sources = [ |
40 "example_apptest.cc", | 40 "example_apptest.cc", |
41 "example_client_application.cc", | 41 "example_client_application.cc", |
42 "example_client_application.h", | 42 "example_client_application.h", |
43 "example_client_impl.cc", | 43 "example_client_impl.cc", |
44 "example_client_impl.h", | 44 "example_client_impl.h", |
45 ] | 45 ] |
46 | 46 |
47 deps = [ | 47 deps = [ |
48 ":bindings", | 48 ":bindings", |
49 "//testing/gtest", | 49 "//testing/gtest", |
50 "//mojo/public/c/system:for_shared_library", | 50 "//mojo/public/c/system:for_shared_library", |
51 "//mojo/public/cpp/application:standalone", | 51 "//mojo/public/cpp/application:standalone", |
52 "//mojo/public/cpp/utility", | 52 "//mojo/public/cpp/utility", |
53 ] | 53 ] |
54 } | 54 } |
55 | 55 |
56 mojom("bindings") { | 56 mojom("bindings") { |
57 sources = [ "example_service.mojom" ] | 57 sources = [ "example_service.mojom" ] |
58 } | 58 } |
OLD | NEW |