Automated Commit: Committing new LKGM version 7479.0.0 for chromeos.
[chromium-blink-merge.git] / mojo / application / public / cpp / BUILD.gn
blob10ad0e6eca7cc0ea02e140294c757a06bfff22d7
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.
5 # GYP version: mojo/mojo_base.gyp:mojo_application_base
6 source_set("cpp") {
7   public_deps = [
8     ":sources",
9     ":init_commandline",
10   ]
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   ]
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     "interface_factory.h",
30     "interface_factory_impl.h",
31     "lib/app_lifetime_helper.cc",
32     "lib/application_delegate.cc",
33     "lib/application_impl.cc",
34     "lib/application_runner.cc",
35     "lib/interface_factory_connector.h",
36     "lib/service_connector_registry.cc",
37     "lib/service_connector_registry.h",
38     "lib/service_provider_impl.cc",
39     "lib/service_registry.cc",
40     "lib/service_registry.h",
41     "service_connector.h",
42     "service_provider_impl.h",
43   ]
45   deps = [
46     "//base",
47     "//mojo/application/public/interfaces",
48     "//mojo/common",
49     "//mojo/environment:chromium",
50     "//mojo/message_pump",
51     "//third_party/mojo/src/mojo/public/cpp/bindings",
52     "//third_party/mojo/src/mojo/public/cpp/system",
53   ]
56 source_set("init_commandline") {
57   sources = [
58     "lib/init_commandline.cc",
59   ]
62 source_set("content_handler") {
63   sources = [
64     "content_handler_factory.h",
65     "lib/content_handler_factory.cc",
66   ]
67   deps = [
68     ":cpp",
70     # TODO: this code should not depend on base.
71     "//base",
72     "//mojo/application/public/interfaces:interfaces_cpp_sources",
73     "//mojo/message_pump",
74     "//mojo/services/network/public/interfaces",
75   ]
78 source_set("test_support") {
79   testonly = true
80   sources = [
81     "application_test_base.h",
82     "lib/application_test_base.cc",
83     "lib/application_test_main.cc",
84   ]
86   deps = [
87     ":cpp",
88     "//base",
89     "//base/test:test_support",
90     "//mojo/application/public/interfaces:interfaces_cpp_sources",
91     "//mojo/logging",
92     "//third_party/mojo/src/mojo/public/cpp/bindings",
93     "//third_party/mojo/src/mojo/public/cpp/environment",
94     "//third_party/mojo/src/mojo/public/cpp/system",
95     "//testing/gtest",
96   ]
98   data_deps = []
99   if (is_android) {
100     data_deps += [ "//mojo/android" ]
101   }
102   if (!is_component_build) {
103     data_deps += [ "//mojo/runner" ]
104   }