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.
14 # GN version: //extensions/common
15 'target_name': 'extensions_common_constants',
16 'type': 'static_library',
19 '<(INTERMEDIATE_DIR)',
22 '<@(extensions_common_constants_sources)',
24 # Disable c4267 warnings until we fix size_t to int truncations.
25 'msvs_disabled_warnings': [ 4267, ],
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
35 '../third_party/mojo/mojom_bindings_generator.gypi',
38 '<@(extensions_common_mojo_sources)',
42 # GN version: //extensions/common
43 'target_name': 'extensions_common',
44 'type': 'static_library',
46 '../components/components.gyp:crx_file',
47 '../components/components.gyp:url_matcher',
48 '../content/content.gyp:content_common',
49 '../crypto/crypto.gyp:crypto',
50 '../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',
56 '../third_party/icu/icu.gyp:icuuc',
57 '../third_party/re2/re2.gyp:re2',
58 '../ui/base/ui_base.gyp:ui_base',
59 '../ui/gfx/gfx.gyp:gfx_geometry',
60 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
61 '../url/url.gyp:url_lib',
62 '../third_party/libxml/libxml.gyp:libxml',
63 'common/api/api.gyp:extensions_api',
64 'extensions_resources.gyp:extensions_resources',
65 'extensions_strings.gyp:extensions_strings',
66 'extensions_common_constants',
67 'extensions_common_mojo',
71 '<(INTERMEDIATE_DIR)',
74 '<@(extensions_common_sources)',
76 # Mojom generated files should not be included in the common gypi source
77 # list because GN has proper mojom dependency support.
78 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
79 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
80 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
81 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
83 # Disable c4267 warnings until we fix size_t to int truncations.
84 'msvs_disabled_warnings': [ 4267, ],
87 # NaClModulesHandler does not use any code in NaCl, so no dependency
90 '<@(extensions_common_sources_nacl)',
95 '<@(extensions_common_sources_openssl)',
98 '../third_party/boringssl/boringssl.gyp:boringssl',
102 '<@(extensions_common_sources_nonopenssl)'
105 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
107 '../build/linux/system.gyp:ssl',
110 ['OS == "mac" or OS == "ios" or OS == "win"', {
112 '../third_party/nss/nss.gyp:nspr',
113 '../third_party/nss/nss.gyp:nss',
121 # GN version: //extensions/browser
122 'target_name': 'extensions_browser',
123 'type': 'static_library',
125 '../base/base.gyp:base',
126 '../base/base.gyp:base_prefs',
127 '../components/components.gyp:browsing_data',
128 '../components/components.gyp:device_event_log_component',
129 '../components/components.gyp:keyed_service_content',
130 '../components/components.gyp:keyed_service_core',
131 '../components/components.gyp:onc_component',
132 '../components/components.gyp:pref_registry',
133 '../components/components.gyp:sessions_content',
134 '../components/components.gyp:storage_monitor',
135 '../components/components.gyp:ui_zoom',
136 '../components/components.gyp:variations',
137 '../components/components.gyp:web_cache_browser',
138 '../components/components.gyp:web_modal',
139 '../content/content.gyp:content_browser',
140 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
141 '../device/serial/serial.gyp:device_serial',
142 '../google_apis/google_apis.gyp:google_apis',
143 '../skia/skia.gyp:skia',
144 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
145 '../third_party/re2/re2.gyp:re2',
146 'browser/api/api_registration.gyp:extensions_api_registration',
147 'common/api/api.gyp:cast_channel_proto',
148 'common/api/api.gyp:extensions_api',
150 'extensions_resources.gyp:extensions_resources',
151 'extensions_strings.gyp:extensions_strings',
155 '<(INTERMEDIATE_DIR)',
156 # Needed to access generated API headers.
157 '<(SHARED_INTERMEDIATE_DIR)',
160 '<@(extensions_browser_sources)',
163 # This condition exists only because the extensions_common_constants
164 # target is always built and thus this file gets evaluated by GYP.
165 # This does not need to be replicated into extensions/browser/BUILD.gn.
166 ['OS == "ios" or OS == "android"', {
168 '../components/components.gyp:storage_monitor',
173 '../chromeos/chromeos.gyp:chromeos',
176 '<@(extensions_browser_sources_chromeos)',
180 '<@(extensions_browser_sources_nonchromeos)',
183 ['OS == "win" or OS == "mac"', {
185 '../components/components.gyp:wifi_component',
188 '<@(extensions_browser_sources_win_or_mac)',
191 ['OS == "linux" and chromeos == 0', {
193 '../build/linux/system.gyp:dbus',
194 '../dbus/dbus.gyp:dbus',
197 '<@(extensions_browser_sources_linux_nonchromeos)',
201 # Disable c4267 warnings until we fix size_t to int truncations.
202 'msvs_disabled_warnings': [ 4267, ],
205 # GN version: //extensions/renderer
206 'target_name': 'extensions_renderer',
207 'type': 'static_library',
209 'extensions_resources.gyp:extensions_resources',
210 '../content/content.gyp:content_resources',
211 '../gin/gin.gyp:gin',
212 '../third_party/WebKit/public/blink.gyp:blink',
213 '../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
219 '<@(extensions_renderer_sources)',
221 # Disable c4267 warnings until we fix size_t to int truncations.
222 'msvs_disabled_warnings': [ 4267, ],
225 # GN version: //extensions/utility
226 'target_name': 'extensions_utility',
227 'type': 'static_library',
229 '../content/content.gyp:content_utility',
230 '../third_party/zlib/google/zip.gyp:zip',
232 'extensions_strings.gyp:extensions_strings',
238 '<@(extensions_utility_sources)',
242 # GN version: //extensions:test_support
243 'target_name': 'extensions_test_support',
244 'type': 'static_library',
246 '../base/base.gyp:base',
247 '../base/base.gyp:base_prefs_test_support',
248 '../components/components.gyp:user_prefs',
249 '../content/content.gyp:content_browser',
250 '../content/content.gyp:content_common',
251 '../content/content_shell_and_tests.gyp:test_support_content',
252 '../net/net.gyp:net_test_support',
253 '../testing/gtest.gyp:gtest',
254 'browser/api/api_registration.gyp:extensions_api_registration',
255 'common/api/api.gyp:cast_channel_proto',
256 'common/api/api.gyp:extensions_api',
257 'extensions_browser',
259 'extensions_resources.gyp:extensions_resources',
263 '<(SHARED_INTERMEDIATE_DIR)',
266 '<@(extensions_test_support_sources)',
268 # Disable c4267 warnings until we fix size_t to int truncations.
269 'msvs_disabled_warnings': [ 4267, ],
272 # The pak file generated by this target is intended to be shared by
273 # both shell and test targets. It was combined because it might help a
274 # little bit with build time by avoiding a repack step (one instead of
276 'target_name': 'extensions_shell_and_test_pak',
279 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
280 '../content/content.gyp:content_resources',
281 '../content/content_shell_and_tests.gyp:content_shell_resources',
282 '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
283 '../ui/resources/ui_resources.gyp:ui_resources',
284 '../ui/strings/ui_strings.gyp:ui_strings',
285 'extensions_resources.gyp:extensions_resources',
286 'extensions_strings.gyp:extensions_strings',
287 'shell/app_shell_resources.gyp:app_shell_resources',
291 'action_name': 'repack_extensions_shell_and_test_pak',
294 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
295 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
296 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
297 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
298 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
299 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
300 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
301 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
302 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
303 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
304 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
305 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
306 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
307 '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
309 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
311 'includes': [ '../build/repack_action.gypi' ],