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