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("//extensions/shell/app_shell.gni") | |
6 | |
5 # Technically, this directory should not depend on files from src/chrome, but | 7 # 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 | 8 # that's where the VERSION file is. This should probably all be moved to |
7 # src/build. | 9 # src/build. |
8 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
11 import("//testing/test.gni") | |
9 import("//tools/grit/grit_rule.gni") | 12 import("//tools/grit/grit_rule.gni") |
10 | 13 |
11 assert(enable_extensions) | 14 assert(enable_extensions) |
12 | 15 |
13 grit("resources") { | 16 grit("resources") { |
14 source = "app_shell_resources.grd" | 17 source = "app_shell_resources.grd" |
15 outputs = [ | 18 outputs = [ |
16 "grit/app_shell_resources.h", | 19 "grit/app_shell_resources.h", |
17 "app_shell_resources.pak", | 20 "app_shell_resources.pak", |
18 ] | 21 ] |
(...skipping 26 matching lines...) Expand all Loading... | |
45 "//extensions/shell/common/api:api_registration", | 48 "//extensions/shell/common/api:api_registration", |
46 "//extensions/utility", | 49 "//extensions/utility", |
47 "//extensions:extensions_resources", | 50 "//extensions:extensions_resources", |
48 "//extensions:shell_and_test_pak", | 51 "//extensions:shell_and_test_pak", |
49 "//mojo/environment:chromium", | 52 "//mojo/environment:chromium", |
50 "//skia", | 53 "//skia", |
51 "//third_party/WebKit/public:blink", | 54 "//third_party/WebKit/public:blink", |
52 "//third_party/mojo/src/mojo/edk/system", | 55 "//third_party/mojo/src/mojo/edk/system", |
53 "//ui/base", | 56 "//ui/base", |
54 "//ui/base/ime", | 57 "//ui/base/ime", |
55 "//ui/wm", | |
56 "//v8", | 58 "//v8", |
57 ] | 59 ] |
58 sources = [ | 60 |
59 "app/shell_main_delegate.cc", | 61 sources = rebase_path(app_shell_gypi_values.app_shell_lib_sources, |
60 "app/shell_main_delegate.h", | 62 ".", |
61 "browser/api/identity/identity_api.cc", | 63 "//extensions/shell") |
62 "browser/api/identity/identity_api.h", | 64 |
63 "browser/default_shell_browser_main_delegate.cc", | 65 if (use_aura) { |
64 "browser/default_shell_browser_main_delegate.h", | 66 deps += [ "//ui/wm" ] |
65 "browser/desktop_controller.cc", | 67 |
66 "browser/desktop_controller.h", | 68 aura_sources = rebase_path(app_shell_gypi_values.app_shell_lib_sources_aura, |
67 "browser/media_capture_util.cc", | 69 ".", |
68 "browser/media_capture_util.h", | 70 "//extensions/shell") |
69 "browser/shell_app_delegate.cc", | 71 sources += aura_sources |
70 "browser/shell_app_delegate.h", | 72 } |
71 "browser/shell_app_view_guest_delegate.cc", | 73 |
72 "browser/shell_app_view_guest_delegate.h", | |
73 "browser/shell_app_window_client.cc", | |
74 "browser/shell_app_window_client.h", | |
75 "browser/shell_app_window_client_aura.cc", | |
76 "browser/shell_audio_controller_chromeos.cc", | |
77 "browser/shell_audio_controller_chromeos.h", | |
78 "browser/shell_browser_context.cc", | |
79 "browser/shell_browser_context.h", | |
80 "browser/shell_browser_context_keyed_service_factories.cc", | |
81 "browser/shell_browser_context_keyed_service_factories.h", | |
82 "browser/shell_browser_main_delegate.h", | |
83 "browser/shell_browser_main_parts.cc", | |
84 "browser/shell_browser_main_parts.h", | |
85 "browser/shell_content_browser_client.cc", | |
86 "browser/shell_content_browser_client.h", | |
87 "browser/shell_desktop_controller_aura.cc", | |
88 "browser/shell_desktop_controller_aura.h", | |
89 "browser/shell_device_client.cc", | |
90 "browser/shell_device_client.h", | |
91 "browser/shell_display_info_provider.cc", | |
92 "browser/shell_display_info_provider.h", | |
93 "browser/shell_extension_host_delegate.cc", | |
94 "browser/shell_extension_host_delegate.h", | |
95 "browser/shell_extension_system.cc", | |
96 "browser/shell_extension_system.h", | |
97 "browser/shell_extension_system_factory.cc", | |
98 "browser/shell_extension_system_factory.h", | |
99 "browser/shell_extension_web_contents_observer.cc", | |
100 "browser/shell_extension_web_contents_observer.h", | |
101 "browser/shell_extensions_api_client.cc", | |
102 "browser/shell_extensions_api_client.h", | |
103 "browser/shell_extensions_browser_client.cc", | |
104 "browser/shell_extensions_browser_client.h", | |
105 "browser/shell_native_app_window.cc", | |
106 "browser/shell_native_app_window.h", | |
107 "browser/shell_native_app_window_aura.cc", | |
108 "browser/shell_native_app_window_aura.h", | |
109 "browser/shell_network_controller_chromeos.cc", | |
110 "browser/shell_network_controller_chromeos.h", | |
111 "browser/shell_network_delegate.cc", | |
112 "browser/shell_network_delegate.h", | |
113 "browser/shell_oauth2_token_service.cc", | |
114 "browser/shell_oauth2_token_service.h", | |
115 "browser/shell_prefs.cc", | |
116 "browser/shell_prefs.h", | |
117 "browser/shell_runtime_api_delegate.cc", | |
118 "browser/shell_runtime_api_delegate.h", | |
119 "browser/shell_screen.cc", | |
120 "browser/shell_screen.h", | |
121 "browser/shell_special_storage_policy.cc", | |
122 "browser/shell_special_storage_policy.h", | |
123 "browser/shell_speech_recognition_manager_delegate.cc", | |
124 "browser/shell_speech_recognition_manager_delegate.h", | |
125 "browser/shell_update_query_params_delegate.cc", | |
126 "browser/shell_update_query_params_delegate.h", | |
127 "browser/shell_url_request_context_getter.cc", | |
128 "browser/shell_url_request_context_getter.h", | |
129 "browser/shell_web_contents_modal_dialog_manager.cc", | |
130 "common/shell_content_client.cc", | |
131 "common/shell_content_client.h", | |
132 "common/shell_extensions_client.cc", | |
133 "common/shell_extensions_client.h", | |
134 "common/switches.cc", | |
135 "common/switches.h", | |
136 "renderer/shell_content_renderer_client.cc", | |
137 "renderer/shell_content_renderer_client.h", | |
138 "renderer/shell_extensions_renderer_client.cc", | |
139 "renderer/shell_extensions_renderer_client.h", | |
140 "utility/shell_content_utility_client.cc", | |
141 "utility/shell_content_utility_client.h", | |
142 ] | |
143 if (is_chromeos) { | 74 if (is_chromeos) { |
144 deps += [ | 75 deps += [ |
145 "//chromeos", | 76 "//chromeos", |
146 "//ui/chromeos:ui_chromeos", | 77 "//ui/chromeos:ui_chromeos", |
147 "//ui/display", | 78 "//ui/display", |
148 ] | 79 ] |
149 sources += [ | 80 chromeos_sources = |
150 "browser/api/shell_gcd/shell_gcd_api.cc", | 81 rebase_path(app_shell_gypi_values.app_shell_lib_sources_chromeos, |
151 "browser/api/shell_gcd/shell_gcd_api.h", | 82 ".", |
152 "browser/api/vpn_provider/vpn_service_factory.cc", | 83 "//extensions/shell") |
153 ] | 84 sources += chromeos_sources |
85 } | |
86 | |
87 # TODO(GYP): Enable this when //components/nacl GN is done. | |
James Cook
2015/02/13 21:53:31
Can you maybe file a bug for this? Or reference th
Ken Rockot(use gerrit already)
2015/02/13 22:08:31
Added a ref to the nacl GN bug
| |
88 if (false) { | |
89 if (enable_nacl) { | |
90 if (is_linux) { | |
91 deps += [ "//components/nacl:nacl_helper" ] | |
92 } | |
93 deps += [ | |
94 "//components/nacl", | |
95 "//components/nacl:browser", | |
96 "//components/nacl:common", | |
97 "//components/nacl:renderer", | |
98 "//components/nacl:switches", | |
99 ] | |
100 nacl_sources = | |
101 rebase_path(app_shell_gypi_values.app_shell_lib_sources_nacl, | |
102 ".", | |
103 "//extensions/shell") | |
104 sources += nacl_sources | |
105 } | |
154 } | 106 } |
155 } | 107 } |
156 | 108 |
157 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { | 109 if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { |
158 executable("app_shell") { | 110 executable("app_shell") { |
159 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. | 111 # testonly because :app_shell_lib is testonly. See :app_shell_lib comment. |
160 testonly = true | 112 testonly = true |
161 sources = [ | 113 sources = rebase_path(app_shell_gypi_values.app_shell_sources, |
162 "app/shell_main.cc", | 114 ".", |
163 ] | 115 "//extensions/shell") |
164 deps = [ | 116 deps = [ |
165 ":app_shell_lib", | 117 ":app_shell_lib", |
166 "//extensions:shell_and_test_pak", | 118 "//extensions:shell_and_test_pak", |
167 ] | 119 ] |
168 | 120 |
169 if (is_win) { | 121 if (is_win) { |
170 configs += [ "//build/config/win:windowed" ] | 122 configs += [ "//build/config/win:windowed" ] |
171 configs -= [ "//build/config/win:console" ] | 123 configs -= [ "//build/config/win:console" ] |
124 deps += [ "//base/allocator" ] | |
172 } | 125 } |
126 | |
127 if (is_mac) { | |
128 # TODO(GYP): Mac bundling | |
129 } | |
130 } | |
131 } | |
132 | |
133 test("app_shell_unittests") { | |
134 sources = rebase_path(app_shell_gypi_values.app_shell_unittests_sources, | |
135 ".", | |
136 "//extensions/shell") | |
137 | |
138 deps = [ | |
139 ":app_shell_lib", | |
140 "//base", | |
141 "//base/test:test_support", | |
142 "//content/test:test_support", | |
143 "//extensions:shell_and_test_pak", | |
144 "//extensions:test_support", | |
145 "//testing/gtest", | |
146 ] | |
147 | |
148 if (use_aura) { | |
149 deps += [ "//ui/aura:test_support" ] | |
150 | |
151 aura_sources = | |
152 rebase_path(app_shell_gypi_values.app_shell_unittests_sources_aura, | |
153 ".", | |
154 "//extensions/shell") | |
155 sources += aura_sources | |
156 } | |
157 | |
158 if (is_chromeos) { | |
159 deps += [ "//chromeos:test_support_without_gmock" ] | |
160 | |
161 chromeos_sources = | |
162 rebase_path(app_shell_gypi_values.app_shell_unittests_sources_chromeos, | |
163 ".", | |
164 "//extensions/shell") | |
165 sources += chromeos_sources | |
166 } | |
167 | |
168 # TODO(GYP): Enable this when //components/nacl GN is done. | |
169 if (false) { | |
170 if (use_nacl) { | |
171 nacl_sources = | |
172 rebase_path(app_shell_gypi_values.app_shell_unittests_sources_nacl, | |
173 ".", | |
174 "//extensions/shell") | |
175 sources += nacl_sources | |
176 } | |
177 } | |
178 | |
179 if (is_win) { | |
180 deps += [ "//base/allocator" ] | |
173 } | 181 } |
174 } | 182 } |
175 | 183 |
176 process_version("version_header") { | 184 process_version("version_header") { |
177 source = "common/version.h.in" | 185 source = "common/version.h.in" |
178 output = "$target_gen_dir/common/version.h" | 186 output = "$target_gen_dir/common/version.h" |
179 } | 187 } |
OLD | NEW |