OLD | NEW |
| (Empty) |
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 # GYP version: mojo/mojo_base.gyp:mojo_application_base | |
6 source_set("cpp") { | |
7 public_deps = [ | |
8 ":init_commandline", | |
9 ":sources", | |
10 ] | |
11 } | |
12 | |
13 # Like the target above, but without special commandline initialization that | |
14 # apps use. | |
15 source_set("cpp_for_chromium") { | |
16 public_deps = [ | |
17 ":sources", | |
18 ] | |
19 } | |
20 | |
21 source_set("sources") { | |
22 sources = [ | |
23 "app_lifetime_helper.h", | |
24 "application_connection.h", | |
25 "application_delegate.h", | |
26 "application_impl.h", | |
27 "application_runner.h", | |
28 "connect.h", | |
29 "initialize_base_and_icu.cc", | |
30 "interface_factory.h", | |
31 "interface_factory_impl.h", | |
32 "lib/app_lifetime_helper.cc", | |
33 "lib/application_delegate.cc", | |
34 "lib/application_impl.cc", | |
35 "lib/application_runner.cc", | |
36 "lib/interface_factory_connector.h", | |
37 "lib/service_connector_registry.cc", | |
38 "lib/service_connector_registry.h", | |
39 "lib/service_provider_impl.cc", | |
40 "lib/service_registry.cc", | |
41 "lib/service_registry.h", | |
42 "service_connector.h", | |
43 "service_provider_impl.h", | |
44 ] | |
45 | |
46 deps = [ | |
47 "//base:i18n", | |
48 "//mojo/common", | |
49 "//mojo/converters/network", | |
50 "//mojo/environment:chromium", | |
51 "//mojo/message_pump", | |
52 ] | |
53 | |
54 public_deps = [ | |
55 "//base", | |
56 "//mojo/application/public/interfaces", | |
57 "//mojo/public/cpp/bindings", | |
58 "//mojo/public/cpp/system", | |
59 ] | |
60 } | |
61 | |
62 source_set("init_commandline") { | |
63 sources = [ | |
64 "lib/init_commandline.cc", | |
65 ] | |
66 } | |
67 | |
68 source_set("content_handler") { | |
69 sources = [ | |
70 "content_handler_factory.h", | |
71 "lib/content_handler_factory.cc", | |
72 ] | |
73 deps = [ | |
74 ":cpp", | |
75 | |
76 # TODO: this code should not depend on base. | |
77 "//base", | |
78 "//mojo/application/public/interfaces:interfaces_cpp_sources", | |
79 "//mojo/message_pump", | |
80 "//mojo/services/network/public/interfaces", | |
81 ] | |
82 } | |
83 | |
84 source_set("test_support") { | |
85 testonly = true | |
86 sources = [ | |
87 "application_test_base.h", | |
88 "lib/application_test_base.cc", | |
89 "lib/application_test_main.cc", | |
90 ] | |
91 | |
92 public_deps = [ | |
93 ":cpp", | |
94 "//testing/gtest", | |
95 ] | |
96 | |
97 deps = [ | |
98 "//base", | |
99 "//base/test:test_support", | |
100 "//mojo/application/public/interfaces:interfaces_cpp_sources", | |
101 "//mojo/logging", | |
102 "//mojo/public/cpp/bindings", | |
103 "//mojo/public/cpp/environment", | |
104 "//mojo/public/cpp/system", | |
105 ] | |
106 | |
107 data_deps = [] | |
108 if (is_android) { | |
109 data_deps += [ "//mojo/android" ] | |
110 } | |
111 } | |
OLD | NEW |