Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: extensions/extensions.gyp

Issue 2302743003: Inline extensions .gypi files into GN build. (Closed)
Patch Set: ChromeOS Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/extensions.gni ('k') | extensions/extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 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 {
6 'includes': [
7 'extensions.gypi',
8 ],
9 'variables': {
10 'chromium_code': 1,
11 },
12 'targets': [
13 {
14 # GN version: //extensions/common
15 'target_name': 'extensions_common_constants',
16 'type': 'static_library',
17 'include_dirs': [
18 '..',
19 '<(INTERMEDIATE_DIR)',
20 ],
21 'sources': [
22 '<@(extensions_common_constants_sources)',
23 ],
24 # Disable c4267 warnings until we fix size_t to int truncations.
25 'msvs_disabled_warnings': [ 4267, ],
26 },
27 {
28 # GN version: //extensions/common:mojo
29 'target_name': 'extensions_common_mojo',
30 # The type of this target must be none. This is so that resources can
31 # depend upon this target for generating the js bindings files. Any
32 # generated cpp files must be listed explicitly in extensions_common
33 'type': 'none',
34 'includes': [
35 '../mojo/mojom_bindings_generator.gypi',
36 ],
37 'sources': [
38 '<@(extensions_common_mojo_sources)',
39 ],
40 'conditions': [
41 ['proprietary_codecs==1 and enable_wifi_display==1', {
42 'sources': [
43 '<@(extensions_common_mojo_sources_wifi_display)',
44 ],
45 }],
46 ],
47 'variables': {
48 'use_new_wrapper_types': 'false',
49 },
50 },
51 {
52 # GN version: //extensions/common
53 'target_name': 'extensions_common',
54 'type': 'static_library',
55 'dependencies': [
56 '../components/components.gyp:crx_file',
57 '../components/components.gyp:url_matcher',
58 '../content/content.gyp:content_common',
59 '../crypto/crypto.gyp:crypto',
60 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
61 # For Mojo generated headers for generated_api.cc.
62 '../device/serial/serial.gyp:device_serial_mojo',
63 '../device/power_save_blocker/power_save_blocker.gyp:device_power_save_b locker',
64 '../device/usb/usb.gyp:device_usb',
65 '../ipc/ipc.gyp:ipc',
66 '../net/net.gyp:net',
67 '../third_party/icu/icu.gyp:icuuc',
68 '../third_party/re2/re2.gyp:re2',
69 '../ui/base/ui_base.gyp:ui_base',
70 '../ui/gfx/gfx.gyp:gfx_geometry',
71 '../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
72 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
73 '../ui/gfx/ipc/skia/gfx_ipc_skia.gyp:gfx_ipc_skia',
74 '../url/url.gyp:url_lib',
75 '../third_party/boringssl/boringssl.gyp:boringssl',
76 '../third_party/libxml/libxml.gyp:libxml',
77 '../url/ipc/url_ipc.gyp:url_ipc',
78 'common/api/api.gyp:extensions_api',
79 'extensions_resources.gyp:extensions_resources',
80 'extensions_strings.gyp:extensions_strings',
81 'extensions_common_constants',
82 'extensions_common_mojo',
83 ],
84 'include_dirs': [
85 '..',
86 '<(INTERMEDIATE_DIR)',
87 ],
88 'sources': [
89 '<@(extensions_common_sources)',
90
91 # Mojom generated files should not be included in the common gypi source
92 # list because GN has proper mojom dependency support.
93 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
94 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
95 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
96 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
97 ],
98 # Disable c4267 warnings until we fix size_t to int truncations.
99 'msvs_disabled_warnings': [ 4267, ],
100 'conditions': [
101 ['disable_nacl==0', {
102 # NaClModulesHandler does not use any code in NaCl, so no dependency
103 # on nacl_common.
104 'sources': [
105 '<@(extensions_common_sources_nacl)',
106 ],
107 }],
108 ],
109 },
110 {
111 # GN version: //extensions/browser
112 'target_name': 'extensions_browser',
113 'type': 'static_library',
114 'dependencies': [
115 '../base/base.gyp:base',
116 '../base/base.gyp:base_i18n',
117 '../components/components.gyp:browsing_data_content',
118 '../components/components.gyp:cast_certificate',
119 '../components/components.gyp:device_event_log_component',
120 '../components/components.gyp:guest_view_browser',
121 '../components/components.gyp:keyed_service_content',
122 '../components/components.gyp:keyed_service_core',
123 '../components/components.gyp:onc_component',
124 '../components/components.gyp:pref_registry',
125 '../components/components.gyp:sessions_content',
126 '../components/components.gyp:storage_monitor',
127 '../components/components.gyp:update_client',
128 '../components/components.gyp:variations',
129 '../components/components.gyp:version_info',
130 '../components/components.gyp:web_cache_browser',
131 '../components/components.gyp:web_modal',
132 '../components/components.gyp:zoom',
133 '../components/prefs/prefs.gyp:prefs',
134 '../content/content.gyp:content_browser',
135 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
136 '../device/serial/serial.gyp:device_serial',
137 '../google_apis/google_apis.gyp:google_apis',
138 '../skia/skia.gyp:skia',
139 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
140 '../third_party/re2/re2.gyp:re2',
141 'browser/api/api_registration.gyp:extensions_api_registration',
142 'common/api/api.gyp:cast_channel_proto',
143 'common/api/api.gyp:extensions_api',
144 'extensions_common',
145 'extensions_resources.gyp:extensions_resources',
146 'extensions_strings.gyp:extensions_strings',
147 ],
148 'include_dirs': [
149 '..',
150 '<(INTERMEDIATE_DIR)',
151 # Needed to access generated API headers.
152 '<(SHARED_INTERMEDIATE_DIR)',
153 ],
154 'sources': [
155 '<@(extensions_browser_sources)',
156 ],
157 'conditions': [
158 # This condition exists only because the extensions_common_constants
159 # target is always built and thus this file gets evaluated by GYP.
160 # This does not need to be replicated into extensions/browser/BUILD.gn.
161 ['OS == "ios" or OS == "android"', {
162 'dependencies!': [
163 '../components/components.gyp:storage_monitor',
164 ],
165 }],
166 ['chromeos == 1', {
167 'dependencies': [
168 '../chromeos/chromeos.gyp:chromeos',
169 ],
170 'sources': [
171 '<@(extensions_browser_sources_chromeos)',
172 ],
173 }, { # chromeos==0
174 'sources': [
175 '<@(extensions_browser_sources_nonchromeos)',
176 ],
177 }],
178 ['OS == "win" or OS == "mac"', {
179 'dependencies': [
180 '../components/components.gyp:wifi_component',
181 ],
182 'sources': [
183 '<@(extensions_browser_sources_win_or_mac)',
184 ],
185 }],
186 ['OS == "linux" and chromeos == 0', {
187 'dependencies': [
188 '../build/linux/system.gyp:dbus',
189 '../dbus/dbus.gyp:dbus',
190 ],
191 'sources': [
192 '<@(extensions_browser_sources_linux_nonchromeos)',
193 ],
194 }],
195 ['proprietary_codecs==1 and enable_wifi_display == 1', {
196 'sources': [
197 '<@(extensions_browser_sources_wifi_display)',
198 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/wifi_display_sess ion_service.mojom.cc',
199 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/wifi_display_sess ion_service.mojom.h',
200 ],
201 }],
202 ],
203 # Disable c4267 warnings until we fix size_t to int truncations.
204 'msvs_disabled_warnings': [ 4267, ],
205 },
206 {
207 # GN version: //extensions/renderer
208 'target_name': 'extensions_renderer',
209 'type': 'static_library',
210 'dependencies': [
211 'extensions_resources.gyp:extensions_resources',
212 '../components/components.gyp:guest_view_renderer',
213 '../content/content.gyp:content_common',
214 '../content/content.gyp:content_resources',
215 '../gin/gin.gyp:gin',
216 '../mojo/mojo_public.gyp:mojo_js_bindings',
217 '../third_party/WebKit/public/blink.gyp:blink',
218 ],
219 'include_dirs': [
220 '..',
221 ],
222 'sources': [
223 '<@(extensions_renderer_sources)',
224 ],
225 # Disable c4267 warnings until we fix size_t to int truncations.
226 'msvs_disabled_warnings': [ 4267, ],
227 'conditions': [
228 ['proprietary_codecs==1 and enable_wifi_display==1', {
229 'dependencies': [
230 '../third_party/openh264/openh264.gyp:openh264_encoder',
231 '../third_party/wds/wds.gyp:libwds',
232 ],
233 'sources': [
234 '<@(extensions_renderer_sources_wifi_display)',
235 ],
236 }],
237 ],
238 },
239 {
240 # GN version: //extensions/utility
241 'target_name': 'extensions_utility',
242 'type': 'static_library',
243 'dependencies': [
244 '../content/content.gyp:content_common',
245 '../content/content.gyp:content_utility',
246 '../skia/skia.gyp:skia',
247 '../third_party/zlib/google/zip.gyp:zip',
248 'extensions_common',
249 'extensions_strings.gyp:extensions_strings',
250 ],
251 'include_dirs': [
252 '..',
253 ],
254 'sources': [
255 '<@(extensions_utility_sources)',
256 ],
257 },
258 {
259 # GN version: //extensions:test_support
260 'target_name': 'extensions_test_support',
261 'type': 'static_library',
262 'dependencies': [
263 '../base/base.gyp:base',
264 '../components/components.gyp:pref_registry_test_support',
265 '../components/components.gyp:user_prefs',
266 '../components/prefs/prefs.gyp:prefs_test_support',
267 '../content/content.gyp:content_browser',
268 '../content/content.gyp:content_common',
269 '../content/content_shell_and_tests.gyp:test_support_content',
270 '../net/net.gyp:net_test_support',
271 '../testing/gtest.gyp:gtest',
272 '../third_party/cld_2/cld_2.gyp:cld_2',
273 'browser/api/api_registration.gyp:extensions_api_registration',
274 'common/api/api.gyp:cast_channel_proto',
275 'common/api/api.gyp:extensions_api',
276 'extensions_browser',
277 'extensions_common',
278 'extensions_resources.gyp:extensions_resources',
279 'test/test_api.gyp:extensions_features',
280 ],
281 'include_dirs': [
282 '..',
283 '<(SHARED_INTERMEDIATE_DIR)',
284 ],
285 'sources': [
286 '<@(extensions_test_support_sources)',
287 ],
288 # Disable c4267 warnings until we fix size_t to int truncations.
289 'msvs_disabled_warnings': [ 4267, ],
290 },
291 {
292 # The pak file generated by this target is intended to be shared by
293 # both shell and test targets. It was combined because it might help a
294 # little bit with build time by avoiding a repack step (one instead of
295 # two).
296 'target_name': 'extensions_shell_and_test_pak',
297 'type': 'none',
298 'dependencies': [
299 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
300 '../content/content.gyp:content_resources',
301 '../content/content_shell_and_tests.gyp:content_shell_resources',
302 '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
303 '../ui/resources/ui_resources.gyp:ui_resources',
304 '../ui/strings/ui_strings.gyp:ui_strings',
305 'extensions_resources.gyp:extensions_resources',
306 'extensions_strings.gyp:extensions_strings',
307 'shell/app_shell_resources.gyp:app_shell_resources',
308 ],
309 'actions': [
310 {
311 'action_name': 'repack_extensions_shell_and_test_pak',
312 'variables': {
313 'pak_inputs': [
314 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_res ources_100_percent.pak',
315 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources .pak',
316 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en -US.pak',
317 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
318 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
319 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resource s_100_percent.pak',
320 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resourc es.pak',
321 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
322 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.p ak',
323 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_ en-US.pak',
324 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent. pak',
325 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.p ak',
326 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
327 '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
328 ],
329 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
330 },
331 'includes': [ '../build/repack_action.gypi' ],
332 },
333 ],
334 },
335 ]
336 }
OLDNEW
« no previous file with comments | « extensions/extensions.gni ('k') | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698