Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / mojo / application / BUILD.gn
blob5ea3a25e0676148aaca11b55df63a8aec3ba6ded
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_chromium
6 source_set("application") {
7   sources = [
8     "application_runner_chromium.cc",
9     "application_runner_chromium.h",
10   ]
12   public_deps = [
13     "//third_party/mojo/src/mojo/public/cpp/application",
14   ]
15   deps = [
16     "//base",
17     "//mojo/common",
18     "//mojo/environment:chromium",
19   ]
22 source_set("content_handler") {
23   sources = [
24     "content_handler_factory.cc",
25     "content_handler_factory.h",
26   ]
27   deps = [
28     ":application",
29     "//base",
30     "//mojo/common",
31     "//mojo/environment:chromium",
32     "//third_party/mojo/src/mojo/public/interfaces/application",
33     "//third_party/mojo_services/src/content_handler/public/interfaces",
34     "//mojo/services/network/public/interfaces",
35   ]
38 source_set("test_support_source_set") {
39   testonly = true
40   sources = [
41     "application_test_base_chromium.cc",
42     "application_test_base_chromium.h",
43     "application_test_main_chromium.cc",
44   ]
46   deps = [
47     "//base",
48     "//base/test:test_support",
49     "//third_party/mojo/src/mojo/public/cpp/application:application",
50     "//third_party/mojo/src/mojo/public/cpp/bindings",
51     "//third_party/mojo/src/mojo/public/cpp/environment",
52     "//third_party/mojo/src/mojo/public/cpp/system",
53     "//testing/gtest",
54   ]
57 # This group wraps the source_set above, so building any apptest that depends
58 # on this target also builds this target's data_deps; see crbug.com/477104.
59 group("test_support") {
60   testonly = true
61   public_deps = [
62     ":test_support_source_set",
63   ]
65   data_deps = []
66   if (is_android) {
67     data_deps += [ "//mojo/android" ]
68   }
69   if (!is_component_build) {
70     data_deps += [ "//mojo/shell:mojo_shell" ]
71   }