cc: Remove PicturePileBase as a base class of PicturePileImpl.
[chromium-blink-merge.git] / extensions / shell / BUILD.gn
blob7d436ce19e3dd31b6c5f02d17c9f687c1fdaea0c
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 # Technically, this directory should not depend on files from src/chrome, but
6 # that's where the VERSION file is. This  should probably all be moved to
7 # src/build.
8 import("//chrome/version.gni")
9 import("//tools/grit/grit_rule.gni")
11 assert(enable_extensions)
13 grit("resources") {
14   source = "app_shell_resources.grd"
15   outputs = [
16     "grit/app_shell_resources.h",
17     "app_shell_resources.pak",
18   ]
21 source_set("app_shell_lib") {
22   # This library is testonly because it depends on testonly libarries,
23   # namely //base:prefs_test_support and //content/shell:content_shell_lib
24   # TODO(jamescook): investigate and get rid of test dependencies.
25   testonly = true
26   deps = [
27     ":resources",
28     ":version_header",
29     "//base",
30     "//base:prefs_test_support",
31     "//components/omaha_query_params",
32     "//components/pref_registry",
33     "//components/user_prefs",
34     "//components/web_cache/renderer",
35     "//content",
36     "//content/shell:content_shell_lib",
37     "//device/core",
38     "//device/hid",
39     "//extensions/common/api",
40     "//extensions/common/api:api_registration",
41     "//extensions/browser",
42     "//extensions/common",
43     "//extensions/renderer",
44     "//extensions/shell/common/api",
45     "//extensions/shell/common/api:api_registration",
46     "//extensions/utility",
47     "//extensions:extensions_resources",
48     "//extensions:shell_and_test_pak",
49     "//mojo/edk/system",
50     "//mojo/environment:chromium",
51     "//skia",
52     "//third_party/WebKit/public:blink",
53     "//ui/wm",
54     "//v8",
55   ]
56   sources = [
57     "app/shell_main_delegate.cc",
58     "app/shell_main_delegate.h",
59     "browser/api/identity/identity_api.cc",
60     "browser/api/identity/identity_api.h",
61     "browser/api/shell_gcd/shell_gcd_api.cc",
62     "browser/api/shell_gcd/shell_gcd_api.h",
63     "browser/api/shell_window/shell_window_api.cc",
64     "browser/api/shell_window/shell_window_api.h",
65     "browser/default_shell_browser_main_delegate.cc",
66     "browser/default_shell_browser_main_delegate.h",
67     "browser/desktop_controller.cc",
68     "browser/desktop_controller.h",
69     "browser/media_capture_util.cc",
70     "browser/media_capture_util.h",
71     "browser/shell_app_delegate.cc",
72     "browser/shell_app_delegate.h",
73     "browser/shell_app_window_client.cc",
74     "browser/shell_app_window_client.h",
75     "browser/shell_audio_controller_chromeos.cc",
76     "browser/shell_audio_controller_chromeos.h",
77     "browser/shell_browser_context.cc",
78     "browser/shell_browser_context.h",
79     "browser/shell_browser_context_keyed_service_factories.cc",
80     "browser/shell_browser_context_keyed_service_factories.h",
81     "browser/shell_browser_main_delegate.h",
82     "browser/shell_browser_main_parts.cc",
83     "browser/shell_browser_main_parts.h",
84     "browser/shell_content_browser_client.cc",
85     "browser/shell_content_browser_client.h",
86     "browser/shell_desktop_controller.cc",
87     "browser/shell_desktop_controller.h",
88     "browser/shell_device_client.cc",
89     "browser/shell_device_client.h",
90     "browser/shell_display_info_provider.cc",
91     "browser/shell_display_info_provider.h",
92     "browser/shell_extension_host_delegate.cc",
93     "browser/shell_extension_host_delegate.h",
94     "browser/shell_extension_system.cc",
95     "browser/shell_extension_system.h",
96     "browser/shell_extension_system_factory.cc",
97     "browser/shell_extension_system_factory.h",
98     "browser/shell_extension_web_contents_observer.cc",
99     "browser/shell_extension_web_contents_observer.h",
100     "browser/shell_extensions_browser_client.cc",
101     "browser/shell_extensions_browser_client.h",
102     "browser/shell_native_app_window.cc",
103     "browser/shell_native_app_window.h",
104     "browser/shell_network_controller_chromeos.cc",
105     "browser/shell_network_controller_chromeos.h",
106     "browser/shell_network_delegate.cc",
107     "browser/shell_network_delegate.h",
108     "browser/shell_oauth2_token_service.cc",
109     "browser/shell_oauth2_token_service.h",
110     "browser/shell_omaha_query_params_delegate.cc",
111     "browser/shell_omaha_query_params_delegate.h",
112     "browser/shell_runtime_api_delegate.cc",
113     "browser/shell_runtime_api_delegate.h",
114     "browser/shell_special_storage_policy.cc",
115     "browser/shell_special_storage_policy.h",
116     "browser/shell_url_request_context_getter.cc",
117     "browser/shell_url_request_context_getter.h",
118     "browser/shell_web_contents_modal_dialog_manager.cc",
119     "common/shell_content_client.cc",
120     "common/shell_content_client.h",
121     "common/shell_extensions_client.cc",
122     "common/shell_extensions_client.h",
123     "common/switches.cc",
124     "common/switches.h",
125     "renderer/shell_content_renderer_client.cc",
126     "renderer/shell_content_renderer_client.h",
127     "renderer/shell_extensions_renderer_client.cc",
128     "renderer/shell_extensions_renderer_client.h",
129     "utility/shell_content_utility_client.cc",
130     "utility/shell_content_utility_client.h",
131   ]
132   if (is_chromeos) {
133     deps += [
134       "//chromeos",
135       "//ui/chromeos:ui_chromeos",
136       "//ui/display",
137     ]
138   }
141 if (!(is_chromeos && !use_ozone)) {
142   executable("app_shell") {
143     # testonly because :app_shell_lib is testonly. See :app_shell_lib comment.
144     testonly = true
145     sources = [
146       "app/shell_main.cc",
147     ]
148     deps = [
149       ":app_shell_lib",
150       "//extensions:shell_and_test_pak",
151     ]
152   }
155 process_version("version_header") {
156   source = "common/version.h.in"
157   output = "$target_gen_dir/common/version.h"