blob: 4c12f71c71da1f4f8158785ec3e6f162a950836b [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',
126 '../base/base.gyp:base_prefs',
reillyg4a849272015-02-20 21:38:43127 '../components/components.gyp:device_event_log_component',
[email protected]8c2802b2014-04-04 18:37:03128 '../components/components.gyp:keyed_service_content',
[email protected]ac73cdf12014-06-13 09:27:20129 '../components/components.gyp:keyed_service_core',
stevenjbd194dd1362015-01-28 17:30:08130 '../components/components.gyp:onc_component',
[email protected]f0c8c4992014-05-15 17:37:26131 '../components/components.gyp:pref_registry',
rohitraod16f44e2014-10-24 15:34:35132 '../components/components.gyp:sessions_content',
thiago.santos89e236b2014-09-05 13:29:49133 '../components/components.gyp:storage_monitor',
wjmacleanec6bd522014-12-12 16:17:50134 '../components/components.gyp:ui_zoom',
kalman4f89cad42015-04-20 18:24:05135 '../components/components.gyp:variations',
hanxi2183a5ca2014-09-23 04:20:27136 '../components/components.gyp:web_cache_browser',
[email protected]2accabe2014-08-20 07:48:29137 '../components/components.gyp:web_modal',
[email protected]8eb6d532013-09-25 21:45:56138 '../content/content.gyp:content_browser',
thestig8146daf2014-08-29 23:41:06139 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]ab930692014-07-10 22:46:22140 '../device/serial/serial.gyp:device_serial',
rockot05f40a922014-10-16 19:40:25141 '../google_apis/google_apis.gyp:google_apis',
[email protected]8eb6d532013-09-25 21:45:56142 '../skia/skia.gyp:skia',
[email protected]47b870f2014-03-01 00:34:00143 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
wjmacleanc66af5262014-09-19 16:25:47144 '../third_party/re2/re2.gyp:re2',
yoz774dcda2d2014-08-27 03:32:58145 'browser/api/api_registration.gyp:extensions_api_registration',
kmarshalld61f0b92014-09-22 17:10:31146 'common/api/api.gyp:cast_channel_proto',
[email protected]99c0125b2014-04-17 05:21:57147 'common/api/api.gyp:extensions_api',
148 'extensions_common',
hanxi46c567a2014-10-02 17:55:22149 'extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57150 'extensions_strings.gyp:extensions_strings',
[email protected]8eb6d532013-09-25 21:45:56151 ],
152 'include_dirs': [
153 '..',
154 '<(INTERMEDIATE_DIR)',
[email protected]98b6d942013-11-10 00:34:07155 # Needed to access generated API headers.
156 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]8eb6d532013-09-25 21:45:56157 ],
158 'sources': [
rockot5354cb9d2015-02-11 23:54:31159 '<@(extensions_browser_sources)',
[email protected]8eb6d532013-09-25 21:45:56160 ],
[email protected]be514c32014-03-17 23:30:44161 'conditions': [
thestigda556af2014-11-01 00:51:31162 # This condition exists only because the extensions_common_constants
163 # target is always built and thus this file gets evaluated by GYP.
164 # This does not need to be replicated into extensions/browser/BUILD.gn.
165 ['OS == "ios" or OS == "android"', {
[email protected]6e84e2c12014-05-05 18:40:11166 'dependencies!': [
thiago.santos89e236b2014-09-05 13:29:49167 '../components/components.gyp:storage_monitor',
[email protected]6e84e2c12014-05-05 18:40:11168 ],
[email protected]be514c32014-03-17 23:30:44169 }],
jamescookf1545b582014-12-16 18:16:33170 ['chromeos == 1', {
171 'dependencies': [
172 '../chromeos/chromeos.gyp:chromeos',
173 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49174 'sources': [
rockot5354cb9d2015-02-11 23:54:31175 '<@(extensions_browser_sources_chromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47176 ],
177 }, { # chromeos==0
178 'sources': [
rockot5354cb9d2015-02-11 23:54:31179 '<@(extensions_browser_sources_nonchromeos)',
sudarsana.naginenidc80f4b72015-02-09 14:12:47180 ],
kaliamoorthi80a3d7d2014-11-19 19:30:49181 }],
stevenjbd194dd1362015-01-28 17:30:08182 ['OS == "win" or OS == "mac"', {
183 'dependencies': [
184 '../components/components.gyp:wifi_component',
185 ],
186 'sources': [
rockot5354cb9d2015-02-11 23:54:31187 '<@(extensions_browser_sources_win_or_mac)',
stevenjbd194dd1362015-01-28 17:30:08188 ],
189 }],
190 ['OS == "linux" and chromeos == 0', {
191 'dependencies': [
192 '../build/linux/system.gyp:dbus',
193 '../dbus/dbus.gyp:dbus',
194 ],
195 'sources': [
rockot5354cb9d2015-02-11 23:54:31196 '<@(extensions_browser_sources_linux_nonchromeos)',
stevenjbd194dd1362015-01-28 17:30:08197 ],
198 }],
[email protected]be514c32014-03-17 23:30:44199 ],
[email protected]8eb6d532013-09-25 21:45:56200 # Disable c4267 warnings until we fix size_t to int truncations.
201 'msvs_disabled_warnings': [ 4267, ],
202 },
[email protected]f971f9ca2014-01-07 21:28:49203 {
[email protected]016eeef82014-08-01 20:37:43204 # GN version: //extensions/renderer
[email protected]b8ce52f2014-04-04 22:45:15205 'target_name': 'extensions_renderer',
206 'type': 'static_library',
[email protected]b6cd4722014-05-01 22:04:06207 'dependencies': [
208 'extensions_resources.gyp:extensions_resources',
thestigbce02672014-08-26 10:01:34209 '../content/content.gyp:content_resources',
[email protected]d9f51dad2014-07-09 05:39:38210 '../gin/gin.gyp:gin',
[email protected]b6cd4722014-05-01 22:04:06211 '../third_party/WebKit/public/blink.gyp:blink',
blundell70fb547672015-01-19 17:18:33212 '../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
[email protected]b6cd4722014-05-01 22:04:06213 ],
[email protected]b8ce52f2014-04-04 22:45:15214 'include_dirs': [
215 '..',
216 ],
217 'sources': [
rockot5354cb9d2015-02-11 23:54:31218 '<@(extensions_renderer_sources)',
[email protected]b8ce52f2014-04-04 22:45:15219 ],
[email protected]b8ce52f2014-04-04 22:45:15220 # Disable c4267 warnings until we fix size_t to int truncations.
221 'msvs_disabled_warnings': [ 4267, ],
222 },
223 {
rockot38130232014-11-06 18:50:01224 # GN version: //extensions/utility
225 'target_name': 'extensions_utility',
226 'type': 'static_library',
227 'dependencies': [
228 '../content/content.gyp:content_utility',
asargent9156f0292015-01-15 01:07:02229 '../third_party/zlib/google/zip.gyp:zip',
rockot38130232014-11-06 18:50:01230 'extensions_common',
asargent33f39fe2015-01-23 22:56:02231 'extensions_strings.gyp:extensions_strings',
rockot38130232014-11-06 18:50:01232 ],
233 'include_dirs': [
234 '..',
235 ],
236 'sources': [
rockot5354cb9d2015-02-11 23:54:31237 '<@(extensions_utility_sources)',
rockot38130232014-11-06 18:50:01238 ],
239 },
240 {
[email protected]016eeef82014-08-01 20:37:43241 # GN version: //extensions:test_support
[email protected]f971f9ca2014-01-07 21:28:49242 'target_name': 'extensions_test_support',
243 'type': 'static_library',
244 'dependencies': [
[email protected]f971f9ca2014-01-07 21:28:49245 '../base/base.gyp:base',
jamescook8a5199402014-12-03 05:34:46246 '../base/base.gyp:base_prefs_test_support',
yozb6272ef2014-08-28 02:23:05247 '../components/components.gyp:user_prefs',
jamescook62117922014-10-20 14:35:11248 '../content/content.gyp:content_browser',
249 '../content/content.gyp:content_common',
250 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]e49e10142014-07-23 06:52:41251 '../net/net.gyp:net_test_support',
[email protected]98e16172014-03-06 20:52:32252 '../testing/gtest.gyp:gtest',
yoz774dcda2d2014-08-27 03:32:58253 'browser/api/api_registration.gyp:extensions_api_registration',
jamescookf112ccd2015-02-06 18:06:33254 'common/api/api.gyp:cast_channel_proto',
[email protected]f0e9ac552014-05-07 14:26:50255 'common/api/api.gyp:extensions_api',
[email protected]99c0125b2014-04-17 05:21:57256 'extensions_browser',
257 'extensions_common',
[email protected]bc8a0922014-08-20 00:51:08258 'extensions_resources.gyp:extensions_resources',
[email protected]f971f9ca2014-01-07 21:28:49259 ],
260 'include_dirs': [
261 '..',
[email protected]f0e9ac552014-05-07 14:26:50262 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]f971f9ca2014-01-07 21:28:49263 ],
264 'sources': [
rockot5354cb9d2015-02-11 23:54:31265 '<@(extensions_test_support_sources)',
[email protected]f971f9ca2014-01-07 21:28:49266 ],
267 # Disable c4267 warnings until we fix size_t to int truncations.
268 'msvs_disabled_warnings': [ 4267, ],
269 },
[email protected]abe4d452014-04-05 07:51:38270 {
[email protected]02b2c902014-07-30 16:34:40271 # The pak file generated by this target is intended to be shared by
272 # both shell and test targets. It was combined because it might help a
273 # little bit with build time by avoiding a repack step (one instead of
274 # two).
275 'target_name': 'extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03276 'type': 'none',
277 'dependencies': [
[email protected]02b2c902014-07-30 16:34:40278 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
thestigbce02672014-08-26 10:01:34279 '../content/content.gyp:content_resources',
[email protected]02b2c902014-07-30 16:34:40280 '../content/content_shell_and_tests.gyp:content_shell_resources',
jamescookccffe0e2014-10-30 01:31:35281 '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]02b2c902014-07-30 16:34:40282 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]b49ced62014-07-25 16:47:03283 '../ui/strings/ui_strings.gyp:ui_strings',
284 'extensions_resources.gyp:extensions_resources',
[email protected]02b2c902014-07-30 16:34:40285 'extensions_strings.gyp:extensions_strings',
jamescook62117922014-10-20 14:35:11286 'shell/app_shell_resources.gyp:app_shell_resources',
[email protected]b49ced62014-07-25 16:47:03287 ],
288 'actions': [
289 {
[email protected]02b2c902014-07-30 16:34:40290 'action_name': 'repack_extensions_shell_and_test_pak',
[email protected]b49ced62014-07-25 16:47:03291 'variables': {
292 'pak_inputs': [
erga3c614c92015-04-03 17:47:51293 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
294 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
lfg0330a7e2014-09-12 22:58:28295 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]f80685c32014-07-26 19:48:04296 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]02b2c902014-07-30 16:34:40297 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
jamescook07cad332014-09-22 03:48:35298 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03299 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
[email protected]02b2c902014-07-30 16:34:40300 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
jamescook62117922014-10-20 14:35:11301 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
[email protected]02b2c902014-07-30 16:34:40302 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
303 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
[email protected]b49ced62014-07-25 16:47:03304 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
305 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
vivek.vg77816a12014-12-18 14:28:20306 '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
[email protected]b49ced62014-07-25 16:47:03307 ],
[email protected]02b2c902014-07-30 16:34:40308 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
[email protected]b49ced62014-07-25 16:47:03309 },
310 'includes': [ '../build/repack_action.gypi' ],
311 },
312 ],
313 },
[email protected]8eb6d532013-09-25 21:45:56314 ]
315}