1 # Copyright 2014 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.
10 # Product name is used for Mac bundle.
11 'app_shell_product_name': 'App Shell',
12 # The version is high enough to be supported by Omaha (at least 31)
13 # but fake enough to be obviously not a Chrome release.
14 'app_shell_version': '38.1234.5678.9',
19 'target_name': 'app_shell_lib',
20 'type': 'static_library',
22 'app_shell_version_header',
23 '<(DEPTH)/base/base.gyp:base',
24 '<(DEPTH)/base/base.gyp:base_prefs',
25 '<(DEPTH)/components/components.gyp:devtools_discovery',
26 '<(DEPTH)/components/components.gyp:devtools_http_handler',
27 '<(DEPTH)/components/components.gyp:pref_registry',
28 '<(DEPTH)/components/components.gyp:update_client',
29 '<(DEPTH)/components/components.gyp:user_prefs',
30 '<(DEPTH)/components/components.gyp:web_cache_renderer',
31 '<(DEPTH)/content/content.gyp:content',
32 '<(DEPTH)/content/content.gyp:content_browser',
33 '<(DEPTH)/content/content.gyp:content_gpu',
34 '<(DEPTH)/content/content.gyp:content_ppapi_plugin',
35 '<(DEPTH)/content/content_shell_and_tests.gyp:content_shell_lib',
36 '<(DEPTH)/device/core/core.gyp:device_core',
37 '<(DEPTH)/device/hid/hid.gyp:device_hid',
38 '<(DEPTH)/extensions/browser/api/api_registration.gyp:extensions_api_registration',
39 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
40 '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
41 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
42 '<(DEPTH)/extensions/extensions.gyp:extensions_renderer',
43 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
44 '<(DEPTH)/extensions/extensions.gyp:extensions_utility',
45 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
46 '<(DEPTH)/extensions/shell/browser/api/api_registration.gyp:shell_api_registration',
47 '<(DEPTH)/extensions/shell/common/api/api.gyp:shell_api',
48 '<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium',
49 '<(DEPTH)/skia/skia.gyp:skia',
50 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
51 '<(DEPTH)/third_party/mojo/mojo_edk.gyp:mojo_system_impl',
52 '<(DEPTH)/ui/base/ime/ui_base_ime.gyp:ui_base_ime',
53 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
54 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
56 'export_dependent_settings': [
57 '<(DEPTH)/content/content.gyp:content_browser',
61 '<(SHARED_INTERMEDIATE_DIR)',
62 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell',
65 '<@(app_shell_lib_sources)',
70 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
74 '<(DEPTH)/ui/wm/wm.gyp:wm',
77 '<@(app_shell_lib_sources_aura)',
82 '<(DEPTH)/chromeos/chromeos.gyp:chromeos',
83 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos',
84 '<(DEPTH)/ui/display/display.gyp:display',
87 '<@(app_shell_lib_sources_chromeos)',
90 ['disable_nacl==0 and OS=="linux"', {
92 '<(DEPTH)/components/nacl.gyp:nacl_helper',
97 '<(DEPTH)/components/nacl.gyp:nacl',
98 '<(DEPTH)/components/nacl.gyp:nacl_browser',
99 '<(DEPTH)/components/nacl.gyp:nacl_common',
100 '<(DEPTH)/components/nacl.gyp:nacl_renderer',
101 '<(DEPTH)/components/nacl.gyp:nacl_switches',
104 '<@(app_shell_lib_sources_nacl)',
110 'target_name': 'app_shell',
111 'type': 'executable',
115 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
121 '<@(app_shell_sources)',
127 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
131 '<(DEPTH)/sandbox/sandbox.gyp:sandbox',
134 ['OS=="win" and win_use_allocator_shim==1', {
136 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
140 'product_name': '<(app_shell_product_name)',
145 'app_shell_framework',
148 'mac_bundle_resources': [
149 'app/app-Info.plist',
151 # TODO(mark): Come up with a fancier way to do this. It should only
152 # be necessary to list app-Info.plist once, not the three times it is
154 'mac_bundle_resources!': [
155 'app/app-Info.plist',
158 'INFOPLIST_FILE': 'app/app-Info.plist',
161 'destination': '<(PRODUCT_DIR)/<(app_shell_product_name).app/Contents/Frameworks',
163 '<(PRODUCT_DIR)/<(app_shell_product_name) Helper.app',
168 'postbuild_name': 'Copy <(app_shell_product_name) Framework.framework',
170 '../../build/mac/copy_framework_unversioned.sh',
171 '${BUILT_PRODUCTS_DIR}/<(app_shell_product_name) Framework.framework',
172 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
176 # Modify the Info.plist as needed.
177 'postbuild_name': 'Tweak Info.plist',
178 'action': ['../../build/mac/tweak_info_plist.py',
180 '--version=<(app_shell_version)'],
187 'target_name': 'app_shell_unittests',
188 'type': 'executable',
191 '<(DEPTH)/base/base.gyp:base',
192 '<(DEPTH)/base/base.gyp:test_support_base',
193 '<(DEPTH)/content/content.gyp:content_app_both',
194 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
195 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
196 '<(DEPTH)/extensions/extensions.gyp:extensions_test_support',
197 '<(DEPTH)/testing/gtest.gyp:gtest',
200 '<@(app_shell_unittests_sources)',
203 ['disable_nacl==0', {
205 '<@(app_shell_unittests_sources_nacl)',
210 '<@(app_shell_unittests_sources_aura)',
213 '<(DEPTH)/ui/aura/aura.gyp:aura_test_support',
218 '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
221 '<@(app_shell_unittests_sources_chromeos)',
224 ['OS=="win" and win_use_allocator_shim==1', {
226 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
232 'target_name': 'app_shell_version_header',
234 'direct_dependent_settings': {
236 '<(SHARED_INTERMEDIATE_DIR)',
241 'action_name': 'version_header',
242 'message': 'Generating version header file: <@(_outputs)',
244 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
248 '<(lastchange_path)',
249 'common/version.h.in',
252 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/common/version.h',
256 '<(version_py_path)',
257 '-f', '<(lastchange_path)',
258 '-f', '<(version_path)',
259 'common/version.h.in',
263 '../../build/util/version.gypi',
274 'target_name': 'app_shell_framework',
275 'type': 'shared_library',
276 'product_name': '<(app_shell_product_name) Framework',
278 'mac_bundle_resources': [
279 '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
280 'app/framework-Info.plist',
282 'mac_bundle_resources!': [
283 'app/framework-Info.plist',
286 # The framework is placed within the .app's Framework
287 # directory. DYLIB_INSTALL_NAME_BASE and
288 # LD_DYLIB_INSTALL_NAME affect -install_name.
289 'DYLIB_INSTALL_NAME_BASE':
290 '@executable_path/../Frameworks',
291 # See /build/mac/copy_framework_unversioned.sh for
292 # information on LD_DYLIB_INSTALL_NAME.
293 'LD_DYLIB_INSTALL_NAME':
294 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
296 'INFOPLIST_FILE': 'app/framework-Info.plist',
305 '<@(app_shell_sources_mac)',
309 # Modify the Info.plist as needed. The script explains why
310 # this is needed. This is also done in the chrome target.
311 # The framework needs the Breakpad keys if this feature is
312 # enabled. It does not need the Keystone keys; these always
313 # come from the outer application bundle. The framework
314 # doesn't currently use the SCM keys for anything,
315 # but this seems like a really good place to store them.
316 'postbuild_name': 'Tweak Info.plist',
317 'action': ['../../build/mac/tweak_info_plist.py',
321 '--version=<(app_shell_version)',
322 '--branding=<(app_shell_product_name)'],
326 ['icu_use_data_file_flag==1', {
327 'mac_bundle_resources': [
328 '<(PRODUCT_DIR)/icudtl.dat',
331 ['v8_use_external_startup_data==1', {
332 'mac_bundle_resources': [
333 '<(PRODUCT_DIR)/natives_blob.bin',
334 '<(PRODUCT_DIR)/snapshot_blob.bin',
338 }, # target app_shell_framework
340 'target_name': 'app_shell_helper',
341 'type': 'executable',
342 'variables': { 'enable_wexit_time_destructors': 1, },
343 'product_name': '<(app_shell_product_name) Helper',
346 'app_shell_framework',
350 'app/helper-Info.plist',
352 # TODO(mark): Come up with a fancier way to do this. It should only
353 # be necessary to list helper-Info.plist once, not the three times it
355 'mac_bundle_resources!': [
356 'app/helper-Info.plist',
358 # TODO(mark): For now, don't put any resources into this app. Its
359 # resources directory will be a symbolic link to the browser app's
360 # resources directory.
361 'mac_bundle_resources/': [
365 'INFOPLIST_FILE': 'app/helper-Info.plist',
369 # The framework defines its load-time path
370 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
371 # (chrome). A different relative path needs to be used in
373 'postbuild_name': 'Fix Framework Link',
377 '@executable_path/../Frameworks/<(app_shell_product_name) Framework.framework/<(app_shell_product_name) Framework',
378 '@executable_path/../../../<(app_shell_product_name) Framework.framework/<(app_shell_product_name) Framework',
379 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
383 # Modify the Info.plist as needed. The script explains why this
384 # is needed. This is also done in the chrome and chrome_dll
385 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
386 # are used because Breakpad, Keystone, and SCM keys are
387 # never placed into the helper.
388 'postbuild_name': 'Tweak Info.plist',
389 'action': ['../../build/mac/tweak_info_plist.py',
393 '--version=<(app_shell_version)'],
396 }, # target app_shell_helper
399 ['test_isolation_mode != "noop"', {
402 'target_name': 'app_shell_unittests_run',
405 'app_shell_unittests',
408 '../../build/isolate.gypi',
411 'app_shell_unittests.isolate',