blob: 6e807d4333d7297d96c24b01eb5ccb84937ae31a [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': [
blundell70fb547672015-01-19 17:18:3335 '../third_party/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 ],
40 },
41 {
[email protected]4205a96e2014-07-23 14:08:1842 # GN version: //extensions/common
[email protected]8eb6d532013-09-25 21:45:5643 'target_name': 'extensions_common',
44 'type': 'static_library',
45 'dependencies': [
[email protected]8c83fe02014-08-15 19:07:3546 '../components/components.gyp:crx_file',
[email protected]716c0162013-12-13 20:36:5347 '../components/components.gyp:url_matcher',
[email protected]8eb6d532013-09-25 21:45:5648 '../content/content.gyp:content_common',
[email protected]abe4d452014-04-05 07:51:3849 '../crypto/crypto.gyp:crypto',
thestigda556af2014-11-01 00:51:3150 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
51 # For Mojo generated headers for generated_api.cc.
52 '../device/serial/serial.gyp:device_serial_mojo',
53 '../device/usb/usb.gyp:device_usb',
[email protected]abe4d452014-04-05 07:51:3854 '../ipc/ipc.gyp:ipc',
55 '../net/net.gyp:net',
mostynb18f43752015-02-23 19:02:3956 '../third_party/icu/icu.gyp:icuuc',
[email protected]abe4d452014-04-05 07:51:3857 '../third_party/re2/re2.gyp:re2',
58 '../ui/base/ui_base.gyp:ui_base',
59 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0860 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]abe4d452014-04-05 07:51:3861 '../url/url.gyp:url_lib',
[email protected]85718102014-08-08 21:07:0662 '../third_party/libxml/libxml.gyp:libxml',
thestigda556af2014-11-01 00:51:3163 'common/api/api.gyp:extensions_api',
hanxi46c567a2014-10-02 17:55:2264 'extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:5765 'extensions_strings.gyp:extensions_strings',
thestigcdced8a2014-10-20 21:45:0466 'extensions_common_constants',
sammca0a73e52014-10-07 04:53:1667 'extensions_common_mojo',
[email protected]8eb6d532013-09-25 21:45:5668 ],
69 'include_dirs': [
70 '..',
71 '<(INTERMEDIATE_DIR)',
72 ],
73 'sources': [
rockot5354cb9d2015-02-11 23:54:3174 '<@(extensions_common_sources)',
75
76 # Mojom generated files should not be included in the common gypi source
77 # list because GN has proper mojom dependency support.
sammcb2c43622014-10-23 07:49:4178 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
79 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
sammcb9eefc92014-10-24 02:26:0880 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
81 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
[email protected]8eb6d532013-09-25 21:45:5682 ],
83 # Disable c4267 warnings until we fix size_t to int truncations.
84 'msvs_disabled_warnings': [ 4267, ],
[email protected]d6ec84a2013-11-01 13:07:3885 'conditions': [
[email protected]b90f3432014-08-07 20:40:0786 ['disable_nacl==0', {
87 # NaClModulesHandler does not use any code in NaCl, so no dependency
88 # on nacl_common.
89 'sources': [
rockot5354cb9d2015-02-11 23:54:3190 '<@(extensions_common_sources_nacl)',
[email protected]b90f3432014-08-07 20:40:0791 ],
92 }],
sheretov8e00ed92015-01-23 00:38:4793 ['use_openssl==1', {
94 'sources': [
rockot5354cb9d2015-02-11 23:54:3195 '<@(extensions_common_sources_openssl)',
sheretov8e00ed92015-01-23 00:38:4796 ],
97 'dependencies': [
98 '../third_party/boringssl/boringssl.gyp:boringssl',
99 ],
100 }, {
101 'sources': [
rockot5354cb9d2015-02-11 23:54:31102 '<@(extensions_common_sources_nonopenssl)'
sheretov8e00ed92015-01-23 00:38:47103 ],
104 'conditions': [
105 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
106 'dependencies': [
107 '../build/linux/system.gyp:ssl',
108 ],
109 }],
110 ['OS == "mac" or OS == "ios" or OS == "win"', {
111 'dependencies': [
112 '../third_party/nss/nss.gyp:nspr',
113 '../third_party/nss/nss.gyp:nss',
114 ],
115 }],
116 ],
117 }],
[email protected]d6ec84a2013-11-01 13:07:38118 ],
[email protected]8eb6d532013-09-25 21:45:56119 },
120 {
[email protected]6f9866a2014-07-26 20:06:35121 # GN version: //extensions/browser
[email protected]8eb6d532013-09-25 21:45:56122 'target_name': 'extensions_browser',
123 'type': 'static_library',
124 'dependencies': [
[email protected]39ca20512014-07-24 12:35:52125 '../base/base.gyp:base',
jshin8b581d82015-08-07 10:11:09126 '../base/base.gyp:base_i18n',
[email protected]39ca20512014-07-24 12:35:52127 '../base/base.gyp:base_prefs',
lazyboyd5b83832015-04-26 14:58:32128 '../components/components.gyp:browsing_data',
reillyg4a849272015-02-20 21:38:43129 '../components/components.gyp:device_event_log_component',
fsamuelaf5bf6d12015-05-28 16:29:54130 '../components/components.gyp:guest_view_browser',
[email protected]8c2802b2014-04-04 18:37:03131 '../components/components.gyp:keyed_service_content',
[email protected]ac73cdf12014-06-13 09:27:20132 '../components/components.gyp:keyed_service_core',
stevenjbd194dd1362015-01-28 17:30:08133 '../components/components.gyp:onc_component',
[email protected]f0c8c4992014-05-15 17:37:26134 '../components/components.gyp:pref_registry',
rohitraod16f44e2014-10-24 15:34:35135 '../components/components.gyp:sessions_content',
thiago.santos89e236b2014-09-05 13:29:49136 '../components/components.gyp:storage_monitor',
wjmacleanec6bd522014-12-12 16:17:50137 '../components/components.gyp:ui_zoom',
kalman4f89cad42015-04-20 18:24:05138 '../components/components.gyp:variations',
hanxi2183a5ca2014-09-23 04:20:27139 '../components/components.gyp:web_cache_browser',
[email protected]2accabe2014-08-20 07:48:29140 '../components/components.gyp:web_modal',
[email protected]8eb6d532013-09-25 21:45:56141 '../content/content.gyp:content_browser',
thestig8146daf2014-08-29 23:41:06142 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]ab930692014-07-10 22:46:22143 '../device/serial/serial.gyp:device_serial',
rockot05f40a922014-10-16 19:40:25144 '../google_apis/google_apis.gyp:google_apis',
[email protected]8eb6d532013-09-25 21:45:56145 '../skia/skia.gyp:skia',
[email protected]47b870f2014-03-01 00:34:00146 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
wjmacleanc66af5262014-09-19 16:25:47147 '../third_party/re2/re2.gyp:re2',
yoz774dcda2d2014-08-27 03:32:58148 'browser/api/api_registration.gyp:extensions_api_registration',
kmarshalld61f0b92014-09-22 17:10:31149 'common/api/api.gyp:cast_channel_proto',
[email protected]99c0125b2014-04-17 05:21:57150 'common/api/api.gyp:extensions_api',
151 'extensions_common',
hanxi46c567a2014-10-02 17:55:22152 'extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57153 'extensions_strings.gyp:extensions_strings',
[email protected]8eb6d532013-09-25 21:45:56154 ],
155 'include_dirs': [
156 '..',
157 '<(INTERMEDIATE_DIR)',
[email protected]98b6d942013-11-10 00:34:07158 # Needed to access generated API headers.
159 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]8eb6d532013-09-25 21:45:56160 ],
161 'sources': [
rockot5354cb9d2015-02-11 23:54:31162 '<@(extensions_browser_sources)',
[email protected]8eb6d532013-09-25 21:45:56163 ],
[email protected]be514c32014-03-17 23:30:44164 'conditions': [
thestigda556af2014-11-01 00:51:31165 # This condition exists only because the extensions_common_constants
166 # target is always built and thus this file gets evaluated by GYP.
167 # This does not need to be replicated into extensions/browser/BUILD.gn.
168 ['OS == "ios" or OS == "android"', {
[email protected]6e84e2c12014-05-05 18:40:11169 'dependencies!': [
thiago.santos89e236b2014-09-05 13:29:49170 '../components/components.gyp:storage_monitor',
[email protected]6e84e2c12014-05-05 18:40:11171 ],
[email protected]be514c32014-03-17 23:30:44172 }],
jamescookf1545b582014-12-16 18:16:33173 ['chromeos == 1', {
174 'dependencies': [
175 '../chromeos/chromeos.gyp:chromeos',
176 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49177 'sources': [
rockot5354cb9d2015-02-11 23:54:31178 '<@(extensions_browser_sources_chromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47179 ],
180 }, { # chromeos==0
181 'sources': [
rockot5354cb9d2015-02-11 23:54:31182 '<@(extensions_browser_sources_nonchromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47183 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49184 }],
stevenjbd194dd1362015-01-28 17:30:08185 ['OS == "win" or OS == "mac"', {
186 'dependencies': [
187 '../components/components.gyp:wifi_component',
188 ],
189 'sources': [
rockot5354cb9d2015-02-11 23:54:31190 '<@(extensions_browser_sources_win_or_mac)',
stevenjbd194dd1362015-01-28 17:30:08191 ],
192 }],
193 ['OS == "linux" and chromeos == 0', {
194 'dependencies': [
195 '../build/linux/system.gyp:dbus',
196 '../dbus/dbus.gyp:dbus',
197 ],
198 'sources': [
rockot5354cb9d2015-02-11 23:54:31199 '<@(extensions_browser_sources_linux_nonchromeos)',
stevenjbd194dd1362015-01-28 17:30:08200 ],
201 }],
[email protected]be514c32014-03-17 23:30:44202 ],
[email protected]8eb6d532013-09-25 21:45:56203 # Disable c4267 warnings until we fix size_t to int truncations.
204 'msvs_disabled_warnings': [ 4267, ],
205 },
[email protected]f971f9ca2014-01-07 21:28:49206 {
[email protected]016eeef82014-08-01 20:37:43207 # GN version: //extensions/renderer
[email protected]b8ce52f2014-04-04 22:45:15208 'target_name': 'extensions_renderer',
209 'type': 'static_library',
[email protected]b6cd4722014-05-01 22:04:06210 'dependencies': [
211 'extensions_resources.gyp:extensions_resources',
fsamuelaf5bf6d12015-05-28 16:29:54212 '../components/components.gyp:guest_view_renderer',
thestigbce02672014-08-26 10:01:34213 '../content/content.gyp:content_resources',
[email protected]d9f51dad2014-07-09 05:39:38214 '../gin/gin.gyp:gin',
[email protected]b6cd4722014-05-01 22:04:06215 '../third_party/WebKit/public/blink.gyp:blink',
blundell70fb547672015-01-19 17:18:33216 '../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
[email protected]b6cd4722014-05-01 22:04:06217 ],
[email protected]b8ce52f2014-04-04 22:45:15218 'include_dirs': [
219 '..',
220 ],
221 'sources': [
rockot5354cb9d2015-02-11 23:54:31222 '<@(extensions_renderer_sources)',
[email protected]b8ce52f2014-04-04 22:45:15223 ],
[email protected]b8ce52f2014-04-04 22:45:15224 # Disable c4267 warnings until we fix size_t to int truncations.
225 'msvs_disabled_warnings': [ 4267, ],
226 },
227 {
rockot38130232014-11-06 18:50:01228 # GN version: //extensions/utility
229 'target_name': 'extensions_utility',
230 'type': 'static_library',
231 'dependencies': [
taptedeeda21f2015-06-19 07:55:10232 '../content/content.gyp:content_common',
rockot38130232014-11-06 18:50:01233 '../content/content.gyp:content_utility',
reede6177342015-08-12 01:27:33234 '../skia/skia.gyp:skia',
asargent9156f0292015-01-15 01:07:02235 '../third_party/zlib/google/zip.gyp:zip',
rockot38130232014-11-06 18:50:01236 'extensions_common',
asargent33f39fe2015-01-23 22:56:02237 'extensions_strings.gyp:extensions_strings',
rockot38130232014-11-06 18:50:01238 ],
239 'include_dirs': [
240 '..',
241 ],
242 'sources': [
rockot5354cb9d2015-02-11 23:54:31243 '<@(extensions_utility_sources)',
rockot38130232014-11-06 18:50:01244 ],
245 },
246 {
[email protected]016eeef82014-08-01 20:37:43247 # GN version: //extensions:test_support
[email protected]f971f9ca2014-01-07 21:28:49248 'target_name': 'extensions_test_support',
249 'type': 'static_library',
250 'dependencies': [
[email protected]f971f9ca2014-01-07 21:28:49251 '../base/base.gyp:base',
jamescook8a5199402014-12-03 05:34:46252 '../base/base.gyp:base_prefs_test_support',
krasinbb63c0a2015-07-28 19:04:17253 '../components/components.gyp:pref_registry_test_support',
yozb6272ef2014-08-28 02:23:05254 '../components/components.gyp:user_prefs',
jamescook62117922014-10-20 14:35:11255 '../content/content.gyp:content_browser',
256 '../content/content.gyp:content_common',
257 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]e49e10142014-07-23 06:52:41258 '../net/net.gyp:net_test_support',
[email protected]98e16172014-03-06 20:52:32259 '../testing/gtest.gyp:gtest',
yoz774dcda2d2014-08-27 03:32:58260 'browser/api/api_registration.gyp:extensions_api_registration',
jamescookf112ccd2015-02-06 18:06:33261 'common/api/api.gyp:cast_channel_proto',
[email protected]f0e9ac552014-05-07 14:26:50262 'common/api/api.gyp:extensions_api',
[email protected]99c0125b2014-04-17 05:21:57263 'extensions_browser',
264 'extensions_common',
[email protected]bc8a0922014-08-20 00:51:08265 'extensions_resources.gyp:extensions_resources',
[email protected]f971f9ca2014-01-07 21:28:49266 ],
267 'include_dirs': [
268 '..',
[email protected]f0e9ac552014-05-07 14:26:50269 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]f971f9ca2014-01-07 21:28:49270 ],
271 'sources': [
rockot5354cb9d2015-02-11 23:54:31272 '<@(extensions_test_support_sources)',
[email protected]f971f9ca2014-01-07 21:28:49273 ],
274 # Disable c4267 warnings until we fix size_t to int truncations.
275 'msvs_disabled_warnings': [ 4267, ],
amalika78d8cc12015-08-24 19:00:38276 'conditions': [
277 [ 'cld_version==2', {
278 'dependencies': [
279 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ],
280 }],
281 ],
[email protected]f971f9ca2014-01-07 21:28:49282 },
[email protected]abe4d452014-04-05 07:51:38283 {
[email protected]02b2c902014-07-30 16:34:40284 # The pak file generated by this target is intended to be shared by
285 # both shell and test targets. It was combined because it might help a
286 # little bit with build time by avoiding a repack step (one instead of
287 # two).
288 'target_name': 'extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03289 'type': 'none',
290 'dependencies': [
[email protected]02b2c902014-07-30 16:34:40291 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
thestigbce02672014-08-26 10:01:34292 '../content/content.gyp:content_resources',
[email protected]02b2c902014-07-30 16:34:40293 '../content/content_shell_and_tests.gyp:content_shell_resources',
jamescookccffe0e2014-10-30 01:31:35294 '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]02b2c902014-07-30 16:34:40295 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]b49ced62014-07-25 16:47:03296 '../ui/strings/ui_strings.gyp:ui_strings',
297 'extensions_resources.gyp:extensions_resources',
[email protected]02b2c902014-07-30 16:34:40298 'extensions_strings.gyp:extensions_strings',
jamescook62117922014-10-20 14:35:11299 'shell/app_shell_resources.gyp:app_shell_resources',
[email protected]b49ced62014-07-25 16:47:03300 ],
301 'actions': [
302 {
[email protected]02b2c902014-07-30 16:34:40303 'action_name': 'repack_extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03304 'variables': {
305 'pak_inputs': [
erga3c614c92015-04-03 17:47:51306 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
307 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
lfg0330a7e2014-09-12 22:58:28308 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]f80685c32014-07-26 19:48:04309 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]02b2c902014-07-30 16:34:40310 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
jamescook07cad332014-09-22 03:48:35311 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03312 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
[email protected]02b2c902014-07-30 16:34:40313 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
jamescook62117922014-10-20 14:35:11314 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
[email protected]02b2c902014-07-30 16:34:40315 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
316 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03317 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
318 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
vivek.vg77816a12014-12-18 14:28:20319 '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
[email protected]b49ced62014-07-25 16:47:03320 ],
[email protected]02b2c902014-07-30 16:34:40321 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
[email protected]b49ced62014-07-25 16:47:03322 },
323 'includes': [ '../build/repack_action.gypi' ],
324 },
325 ],
326 },
[email protected]8eb6d532013-09-25 21:45:56327 ]
328}