blob: b37a4bd11fa9f47a195551e947bd368b05a425c7 [file] [log] [blame]
[email protected]8eb6d532013-09-25 21:45:561# 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{
rockot5354cb9d2015-02-11 23:54:316 'includes': [
7 'extensions.gypi',
8 ],
[email protected]9e00f362013-10-23 20:41:109 'variables': {
10 'chromium_code': 1,
11 },
[email protected]8eb6d532013-09-25 21:45:5612 'targets': [
13 {
rockot5354cb9d2015-02-11 23:54:3114 # 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 {
sammca0a73e52014-10-07 04:53:1628 # 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': [
rockotc637caf9b2016-02-10 09:57:0835 '../mojo/mojom_bindings_generator.gypi',
sammca0a73e52014-10-07 04:53:1636 ],
37 'sources': [
rockot5354cb9d2015-02-11 23:54:3138 '<@(extensions_common_mojo_sources)',
sammca0a73e52014-10-07 04:53:1639 ],
mikhail.pozdnyakov61a28e372016-01-14 15:24:0540 'conditions': [
eero.hakkinen51607a42016-04-29 15:08:1941 ['proprietary_codecs==1 and enable_wifi_display==1', {
mikhail.pozdnyakov61a28e372016-01-14 15:24:0542 'sources': [
43 '<@(extensions_common_mojo_sources_wifi_display)',
44 ],
45 }],
46 ],
sammca0a73e52014-10-07 04:53:1647 },
48 {
[email protected]4205a96e2014-07-23 14:08:1849 # GN version: //extensions/common
[email protected]8eb6d532013-09-25 21:45:5650 'target_name': 'extensions_common',
51 'type': 'static_library',
52 'dependencies': [
[email protected]8c83fe02014-08-15 19:07:3553 '../components/components.gyp:crx_file',
[email protected]716c0162013-12-13 20:36:5354 '../components/components.gyp:url_matcher',
[email protected]8eb6d532013-09-25 21:45:5655 '../content/content.gyp:content_common',
[email protected]abe4d452014-04-05 07:51:3856 '../crypto/crypto.gyp:crypto',
thestigda556af2014-11-01 00:51:3157 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
58 # For Mojo generated headers for generated_api.cc.
59 '../device/serial/serial.gyp:device_serial_mojo',
60 '../device/usb/usb.gyp:device_usb',
[email protected]abe4d452014-04-05 07:51:3861 '../ipc/ipc.gyp:ipc',
62 '../net/net.gyp:net',
mostynb18f43752015-02-23 19:02:3963 '../third_party/icu/icu.gyp:icuuc',
[email protected]abe4d452014-04-05 07:51:3864 '../third_party/re2/re2.gyp:re2',
65 '../ui/base/ui_base.gyp:ui_base',
66 '../ui/gfx/gfx.gyp:gfx_geometry',
fsamuel6b98cf92016-04-28 05:42:2467 '../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
[email protected]ffff5b32014-06-25 21:31:0868 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
markdittmer99d77bf2016-03-31 19:03:2469 '../ui/gfx/ipc/skia/gfx_ipc_skia.gyp:gfx_ipc_skia',
[email protected]abe4d452014-04-05 07:51:3870 '../url/url.gyp:url_lib',
davidben9cd4b57582015-10-02 16:46:3971 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]85718102014-08-08 21:07:0672 '../third_party/libxml/libxml.gyp:libxml',
markdittmer67b71ea2016-03-03 22:40:0373 '../url/ipc/url_ipc.gyp:url_ipc',
thestigda556af2014-11-01 00:51:3174 'common/api/api.gyp:extensions_api',
hanxi46c567a2014-10-02 17:55:2275 'extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:5776 'extensions_strings.gyp:extensions_strings',
thestigcdced8a2014-10-20 21:45:0477 'extensions_common_constants',
sammca0a73e52014-10-07 04:53:1678 'extensions_common_mojo',
[email protected]8eb6d532013-09-25 21:45:5679 ],
80 'include_dirs': [
81 '..',
82 '<(INTERMEDIATE_DIR)',
83 ],
84 'sources': [
rockot5354cb9d2015-02-11 23:54:3185 '<@(extensions_common_sources)',
86
87 # Mojom generated files should not be included in the common gypi source
88 # list because GN has proper mojom dependency support.
sammcb2c43622014-10-23 07:49:4189 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
90 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
sammcb9eefc92014-10-24 02:26:0891 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
92 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
[email protected]8eb6d532013-09-25 21:45:5693 ],
94 # Disable c4267 warnings until we fix size_t to int truncations.
95 'msvs_disabled_warnings': [ 4267, ],
[email protected]d6ec84a2013-11-01 13:07:3896 'conditions': [
[email protected]b90f3432014-08-07 20:40:0797 ['disable_nacl==0', {
98 # NaClModulesHandler does not use any code in NaCl, so no dependency
99 # on nacl_common.
100 'sources': [
rockot5354cb9d2015-02-11 23:54:31101 '<@(extensions_common_sources_nacl)',
[email protected]b90f3432014-08-07 20:40:07102 ],
103 }],
[email protected]d6ec84a2013-11-01 13:07:38104 ],
[email protected]8eb6d532013-09-25 21:45:56105 },
106 {
[email protected]6f9866a2014-07-26 20:06:35107 # GN version: //extensions/browser
[email protected]8eb6d532013-09-25 21:45:56108 'target_name': 'extensions_browser',
109 'type': 'static_library',
110 'dependencies': [
[email protected]39ca20512014-07-24 12:35:52111 '../base/base.gyp:base',
jshin8b581d82015-08-07 10:11:09112 '../base/base.gyp:base_i18n',
lazyboyd5b83832015-04-26 14:58:32113 '../components/components.gyp:browsing_data',
ryanchungd318d762016-05-05 17:22:12114 '../components/components.gyp:cast_certificate',
reillyg4a849272015-02-20 21:38:43115 '../components/components.gyp:device_event_log_component',
fsamuelaf5bf6d12015-05-28 16:29:54116 '../components/components.gyp:guest_view_browser',
[email protected]8c2802b2014-04-04 18:37:03117 '../components/components.gyp:keyed_service_content',
[email protected]ac73cdf12014-06-13 09:27:20118 '../components/components.gyp:keyed_service_core',
stevenjbd194dd1362015-01-28 17:30:08119 '../components/components.gyp:onc_component',
[email protected]f0c8c4992014-05-15 17:37:26120 '../components/components.gyp:pref_registry',
rohitraod16f44e2014-10-24 15:34:35121 '../components/components.gyp:sessions_content',
thiago.santos89e236b2014-09-05 13:29:49122 '../components/components.gyp:storage_monitor',
asargent631a99a2015-10-15 21:51:48123 '../components/components.gyp:update_client',
kalman4f89cad42015-04-20 18:24:05124 '../components/components.gyp:variations',
asargent631a99a2015-10-15 21:51:48125 '../components/components.gyp:version_info',
hanxi2183a5ca2014-09-23 04:20:27126 '../components/components.gyp:web_cache_browser',
[email protected]2accabe2014-08-20 07:48:29127 '../components/components.gyp:web_modal',
juncaia64f769c22016-06-04 00:55:32128 '../components/components.gyp:zoom',
brettw58cd1f12016-01-30 05:56:05129 '../components/prefs/prefs.gyp:prefs',
[email protected]8eb6d532013-09-25 21:45:56130 '../content/content.gyp:content_browser',
thestig8146daf2014-08-29 23:41:06131 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]ab930692014-07-10 22:46:22132 '../device/serial/serial.gyp:device_serial',
rockot05f40a922014-10-16 19:40:25133 '../google_apis/google_apis.gyp:google_apis',
[email protected]8eb6d532013-09-25 21:45:56134 '../skia/skia.gyp:skia',
[email protected]47b870f2014-03-01 00:34:00135 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
wjmacleanc66af5262014-09-19 16:25:47136 '../third_party/re2/re2.gyp:re2',
yoz774dcda2d2014-08-27 03:32:58137 'browser/api/api_registration.gyp:extensions_api_registration',
kmarshalld61f0b92014-09-22 17:10:31138 'common/api/api.gyp:cast_channel_proto',
[email protected]99c0125b2014-04-17 05:21:57139 'common/api/api.gyp:extensions_api',
140 'extensions_common',
hanxi46c567a2014-10-02 17:55:22141 'extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57142 'extensions_strings.gyp:extensions_strings',
[email protected]8eb6d532013-09-25 21:45:56143 ],
144 'include_dirs': [
145 '..',
146 '<(INTERMEDIATE_DIR)',
[email protected]98b6d942013-11-10 00:34:07147 # Needed to access generated API headers.
148 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]8eb6d532013-09-25 21:45:56149 ],
150 'sources': [
rockot5354cb9d2015-02-11 23:54:31151 '<@(extensions_browser_sources)',
[email protected]8eb6d532013-09-25 21:45:56152 ],
[email protected]be514c32014-03-17 23:30:44153 'conditions': [
thestigda556af2014-11-01 00:51:31154 # This condition exists only because the extensions_common_constants
155 # target is always built and thus this file gets evaluated by GYP.
156 # This does not need to be replicated into extensions/browser/BUILD.gn.
157 ['OS == "ios" or OS == "android"', {
[email protected]6e84e2c12014-05-05 18:40:11158 'dependencies!': [
thiago.santos89e236b2014-09-05 13:29:49159 '../components/components.gyp:storage_monitor',
[email protected]6e84e2c12014-05-05 18:40:11160 ],
[email protected]be514c32014-03-17 23:30:44161 }],
jamescookf1545b582014-12-16 18:16:33162 ['chromeos == 1', {
163 'dependencies': [
164 '../chromeos/chromeos.gyp:chromeos',
165 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49166 'sources': [
rockot5354cb9d2015-02-11 23:54:31167 '<@(extensions_browser_sources_chromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47168 ],
169 }, { # chromeos==0
170 'sources': [
rockot5354cb9d2015-02-11 23:54:31171 '<@(extensions_browser_sources_nonchromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47172 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49173 }],
stevenjbd194dd1362015-01-28 17:30:08174 ['OS == "win" or OS == "mac"', {
175 'dependencies': [
176 '../components/components.gyp:wifi_component',
177 ],
178 'sources': [
rockot5354cb9d2015-02-11 23:54:31179 '<@(extensions_browser_sources_win_or_mac)',
stevenjbd194dd1362015-01-28 17:30:08180 ],
181 }],
182 ['OS == "linux" and chromeos == 0', {
183 'dependencies': [
184 '../build/linux/system.gyp:dbus',
185 '../dbus/dbus.gyp:dbus',
186 ],
187 'sources': [
rockot5354cb9d2015-02-11 23:54:31188 '<@(extensions_browser_sources_linux_nonchromeos)',
stevenjbd194dd1362015-01-28 17:30:08189 ],
190 }],
eero.hakkinen51607a42016-04-29 15:08:19191 ['proprietary_codecs==1 and enable_wifi_display == 1', {
mikhail.pozdnyakov61a28e372016-01-14 15:24:05192 'sources': [
193 '<@(extensions_browser_sources_wifi_display)',
194 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/wifi_display_session_service.mojom.cc',
195 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/wifi_display_session_service.mojom.h',
196 ],
197 }],
[email protected]be514c32014-03-17 23:30:44198 ],
[email protected]8eb6d532013-09-25 21:45:56199 # Disable c4267 warnings until we fix size_t to int truncations.
200 'msvs_disabled_warnings': [ 4267, ],
201 },
[email protected]f971f9ca2014-01-07 21:28:49202 {
[email protected]016eeef82014-08-01 20:37:43203 # GN version: //extensions/renderer
[email protected]b8ce52f2014-04-04 22:45:15204 'target_name': 'extensions_renderer',
205 'type': 'static_library',
[email protected]b6cd4722014-05-01 22:04:06206 'dependencies': [
207 'extensions_resources.gyp:extensions_resources',
fsamuelaf5bf6d12015-05-28 16:29:54208 '../components/components.gyp:guest_view_renderer',
markdittmer67b71ea2016-03-03 22:40:03209 '../content/content.gyp:content_common',
thestigbce02672014-08-26 10:01:34210 '../content/content.gyp:content_resources',
[email protected]d9f51dad2014-07-09 05:39:38211 '../gin/gin.gyp:gin',
rockotc637caf9b2016-02-10 09:57:08212 '../mojo/mojo_public.gyp:mojo_js_bindings',
[email protected]b6cd4722014-05-01 22:04:06213 '../third_party/WebKit/public/blink.gyp:blink',
214 ],
[email protected]b8ce52f2014-04-04 22:45:15215 'include_dirs': [
216 '..',
217 ],
218 'sources': [
rockot5354cb9d2015-02-11 23:54:31219 '<@(extensions_renderer_sources)',
[email protected]b8ce52f2014-04-04 22:45:15220 ],
[email protected]b8ce52f2014-04-04 22:45:15221 # Disable c4267 warnings until we fix size_t to int truncations.
222 'msvs_disabled_warnings': [ 4267, ],
mikhail.pozdnyakov61a28e372016-01-14 15:24:05223 'conditions': [
eero.hakkinen51607a42016-04-29 15:08:19224 ['proprietary_codecs==1 and enable_wifi_display==1', {
mikhail.pozdnyakovda8ee692016-02-29 08:59:33225 'dependencies': [
eero.hakkinen51607a42016-04-29 15:08:19226 '../third_party/openh264/openh264.gyp:openh264_encoder',
mikhail.pozdnyakovda8ee692016-02-29 08:59:33227 '../third_party/wds/wds.gyp:libwds',
228 ],
mikhail.pozdnyakov61a28e372016-01-14 15:24:05229 'sources': [
mikhail.pozdnyakovda8ee692016-02-29 08:59:33230 '<@(extensions_renderer_sources_wifi_display)',
mikhail.pozdnyakov61a28e372016-01-14 15:24:05231 ],
232 }],
233 ],
[email protected]b8ce52f2014-04-04 22:45:15234 },
235 {
rockot38130232014-11-06 18:50:01236 # GN version: //extensions/utility
237 'target_name': 'extensions_utility',
238 'type': 'static_library',
239 'dependencies': [
taptedeeda21f2015-06-19 07:55:10240 '../content/content.gyp:content_common',
rockot38130232014-11-06 18:50:01241 '../content/content.gyp:content_utility',
reede6177342015-08-12 01:27:33242 '../skia/skia.gyp:skia',
asargent9156f0292015-01-15 01:07:02243 '../third_party/zlib/google/zip.gyp:zip',
rockot38130232014-11-06 18:50:01244 'extensions_common',
asargent33f39fe2015-01-23 22:56:02245 'extensions_strings.gyp:extensions_strings',
rockot38130232014-11-06 18:50:01246 ],
247 'include_dirs': [
248 '..',
249 ],
250 'sources': [
rockot5354cb9d2015-02-11 23:54:31251 '<@(extensions_utility_sources)',
rockot38130232014-11-06 18:50:01252 ],
253 },
254 {
[email protected]016eeef82014-08-01 20:37:43255 # GN version: //extensions:test_support
[email protected]f971f9ca2014-01-07 21:28:49256 'target_name': 'extensions_test_support',
257 'type': 'static_library',
258 'dependencies': [
[email protected]f971f9ca2014-01-07 21:28:49259 '../base/base.gyp:base',
krasinbb63c0a2015-07-28 19:04:17260 '../components/components.gyp:pref_registry_test_support',
yozb6272ef2014-08-28 02:23:05261 '../components/components.gyp:user_prefs',
brettw58cd1f12016-01-30 05:56:05262 '../components/prefs/prefs.gyp:prefs_test_support',
jamescook62117922014-10-20 14:35:11263 '../content/content.gyp:content_browser',
264 '../content/content.gyp:content_common',
265 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]e49e10142014-07-23 06:52:41266 '../net/net.gyp:net_test_support',
[email protected]98e16172014-03-06 20:52:32267 '../testing/gtest.gyp:gtest',
andrewhayden1e7cf432016-06-09 12:41:29268 '../third_party/cld_2/cld_2.gyp:cld_2',
yoz774dcda2d2014-08-27 03:32:58269 'browser/api/api_registration.gyp:extensions_api_registration',
jamescookf112ccd2015-02-06 18:06:33270 'common/api/api.gyp:cast_channel_proto',
[email protected]f0e9ac552014-05-07 14:26:50271 'common/api/api.gyp:extensions_api',
[email protected]99c0125b2014-04-17 05:21:57272 'extensions_browser',
273 'extensions_common',
[email protected]bc8a0922014-08-20 00:51:08274 'extensions_resources.gyp:extensions_resources',
[email protected]f971f9ca2014-01-07 21:28:49275 ],
276 'include_dirs': [
277 '..',
[email protected]f0e9ac552014-05-07 14:26:50278 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]f971f9ca2014-01-07 21:28:49279 ],
280 'sources': [
rockot5354cb9d2015-02-11 23:54:31281 '<@(extensions_test_support_sources)',
[email protected]f971f9ca2014-01-07 21:28:49282 ],
283 # Disable c4267 warnings until we fix size_t to int truncations.
284 'msvs_disabled_warnings': [ 4267, ],
285 },
[email protected]abe4d452014-04-05 07:51:38286 {
[email protected]02b2c902014-07-30 16:34:40287 # The pak file generated by this target is intended to be shared by
288 # both shell and test targets. It was combined because it might help a
289 # little bit with build time by avoiding a repack step (one instead of
290 # two).
291 'target_name': 'extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03292 'type': 'none',
293 'dependencies': [
[email protected]02b2c902014-07-30 16:34:40294 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
thestigbce02672014-08-26 10:01:34295 '../content/content.gyp:content_resources',
[email protected]02b2c902014-07-30 16:34:40296 '../content/content_shell_and_tests.gyp:content_shell_resources',
jamescookccffe0e2014-10-30 01:31:35297 '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]02b2c902014-07-30 16:34:40298 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]b49ced62014-07-25 16:47:03299 '../ui/strings/ui_strings.gyp:ui_strings',
300 'extensions_resources.gyp:extensions_resources',
[email protected]02b2c902014-07-30 16:34:40301 'extensions_strings.gyp:extensions_strings',
jamescook62117922014-10-20 14:35:11302 'shell/app_shell_resources.gyp:app_shell_resources',
[email protected]b49ced62014-07-25 16:47:03303 ],
304 'actions': [
305 {
[email protected]02b2c902014-07-30 16:34:40306 'action_name': 'repack_extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03307 'variables': {
308 'pak_inputs': [
erga3c614c92015-04-03 17:47:51309 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
310 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
lfg0330a7e2014-09-12 22:58:28311 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]f80685c32014-07-26 19:48:04312 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]02b2c902014-07-30 16:34:40313 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
jamescook07cad332014-09-22 03:48:35314 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03315 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
[email protected]02b2c902014-07-30 16:34:40316 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
jamescook62117922014-10-20 14:35:11317 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
[email protected]02b2c902014-07-30 16:34:40318 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
319 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03320 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
321 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
vivek.vg77816a12014-12-18 14:28:20322 '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
[email protected]b49ced62014-07-25 16:47:03323 ],
[email protected]02b2c902014-07-30 16:34:40324 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
[email protected]b49ced62014-07-25 16:47:03325 },
326 'includes': [ '../build/repack_action.gypi' ],
327 },
328 ],
329 },
[email protected]8eb6d532013-09-25 21:45:56330 ]
331}