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:pref_registry',
26 '<(DEPTH)/components/components.gyp:update_client',
27 '<(DEPTH)/components/components.gyp:user_prefs',
28 '<(DEPTH)/components/components.gyp:web_cache_renderer',
29 '<(DEPTH)/content/content.gyp:content',
30 '<(DEPTH)/content/content.gyp:content_browser',
31 '<(DEPTH)/content/content.gyp:content_gpu',
32 '<(DEPTH)/content/content.gyp:content_ppapi_plugin',
33 '<(DEPTH)/content/content_shell_and_tests.gyp:content_shell_lib',
34 '<(DEPTH)/device/core/core.gyp:device_core',
35 '<(DEPTH)/device/hid/hid.gyp:device_hid',
36 '<(DEPTH)/extensions/browser/api/api_registration.gyp:extensions_api_registration',
37 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
38 '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
39 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
40 '<(DEPTH)/extensions/extensions.gyp:extensions_renderer',
41 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
42 '<(DEPTH)/extensions/extensions.gyp:extensions_utility',
43 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
44 '<(DEPTH)/extensions/shell/browser/api/api_registration.gyp:shell_api_registration',
45 '<(DEPTH)/extensions/shell/common/api/api.gyp:shell_api',
46 '<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium',
47 '<(DEPTH)/skia/skia.gyp:skia',
48 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
49 '<(DEPTH)/third_party/mojo/mojo_edk.gyp:mojo_system_impl',
50 '<(DEPTH)/ui/base/ime/ui_base_ime.gyp:ui_base_ime',
51 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
52 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
54 'export_dependent_settings': [
55 '<(DEPTH)/content/content.gyp:content_browser',
59 '<(SHARED_INTERMEDIATE_DIR)',
60 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell',
63 '<@(app_shell_lib_sources)',
68 '<(DEPTH)/ui/wm/wm.gyp:wm',
71 '<@(app_shell_lib_sources_aura)',
76 '<(DEPTH)/chromeos/chromeos.gyp:chromeos',
77 '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos',
78 '<(DEPTH)/ui/display/display.gyp:display',
81 '<@(app_shell_lib_sources_chromeos)',
84 ['disable_nacl==0 and OS=="linux"', {
86 '<(DEPTH)/components/nacl.gyp:nacl_helper',
91 '<(DEPTH)/components/nacl.gyp:nacl',
92 '<(DEPTH)/components/nacl.gyp:nacl_browser',
93 '<(DEPTH)/components/nacl.gyp:nacl_common',
94 '<(DEPTH)/components/nacl.gyp:nacl_renderer',
95 '<(DEPTH)/components/nacl.gyp:nacl_switches',
98 '<@(app_shell_lib_sources_nacl)',
104 'target_name': 'app_shell',
105 'type': 'executable',
109 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
115 '<@(app_shell_sources)',
121 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
125 '<(DEPTH)/sandbox/sandbox.gyp:sandbox',
128 ['OS=="win" and win_use_allocator_shim==1', {
130 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
134 'product_name': '<(app_shell_product_name)',
139 'app_shell_framework',
142 'mac_bundle_resources': [
143 'app/app-Info.plist',
145 # TODO(mark): Come up with a fancier way to do this. It should only
146 # be necessary to list app-Info.plist once, not the three times it is
148 'mac_bundle_resources!': [
149 'app/app-Info.plist',
152 'INFOPLIST_FILE': 'app/app-Info.plist',
155 'destination': '<(PRODUCT_DIR)/<(app_shell_product_name).app/Contents/Frameworks',
157 '<(PRODUCT_DIR)/<(app_shell_product_name) Helper.app',
162 'postbuild_name': 'Copy <(app_shell_product_name) Framework.framework',
164 '../../build/mac/copy_framework_unversioned.sh',
165 '${BUILT_PRODUCTS_DIR}/<(app_shell_product_name) Framework.framework',
166 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
170 # Modify the Info.plist as needed.
171 'postbuild_name': 'Tweak Info.plist',
172 'action': ['../../build/mac/tweak_info_plist.py',
174 '--version=<(app_shell_version)'],
177 # This postbuild step is responsible for creating the following
180 # App Shell Helper EH.app and App Shell Helper NP.app are
181 # created from App Shell Helper.app.
183 # The EH helper is marked for an executable heap. The NP helper
184 # is marked for no PIE (ASLR).
185 'postbuild_name': 'Make More Helpers',
187 '../../build/mac/make_more_helpers.sh',
189 '<(app_shell_product_name)',
193 # Make sure there isn't any Objective-C in the shell's
195 'postbuild_name': 'Verify No Objective-C',
197 '../../build/mac/verify_no_objc.sh',
205 'target_name': 'app_shell_unittests',
206 'type': 'executable',
209 '<(DEPTH)/base/base.gyp:base',
210 '<(DEPTH)/base/base.gyp:test_support_base',
211 '<(DEPTH)/content/content.gyp:content_app_both',
212 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
213 '<(DEPTH)/extensions/extensions.gyp:extensions_shell_and_test_pak',
214 '<(DEPTH)/extensions/extensions.gyp:extensions_test_support',
215 '<(DEPTH)/testing/gtest.gyp:gtest',
218 '<@(app_shell_unittests_sources)',
221 ['disable_nacl==0', {
223 '<@(app_shell_unittests_sources_nacl)',
228 '<@(app_shell_unittests_sources_aura)',
231 '<(DEPTH)/ui/aura/aura.gyp:aura_test_support',
236 '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
239 '<@(app_shell_unittests_sources_chromeos)',
242 ['OS=="win" and win_use_allocator_shim==1', {
244 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
250 'target_name': 'app_shell_version_header',
252 'direct_dependent_settings': {
254 '<(SHARED_INTERMEDIATE_DIR)',
259 'action_name': 'version_header',
260 'message': 'Generating version header file: <@(_outputs)',
262 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
266 '<(lastchange_path)',
267 'common/version.h.in',
270 '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/common/version.h',
274 '<(version_py_path)',
275 '-f', '<(lastchange_path)',
276 '-f', '<(version_path)',
277 'common/version.h.in',
281 '../../build/util/version.gypi',
292 'target_name': 'app_shell_framework',
293 'type': 'shared_library',
294 'product_name': '<(app_shell_product_name) Framework',
296 'mac_bundle_resources': [
297 '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
298 'app/framework-Info.plist',
300 'mac_bundle_resources!': [
301 'app/framework-Info.plist',
304 # The framework is placed within the .app's Framework
305 # directory. DYLIB_INSTALL_NAME_BASE and
306 # LD_DYLIB_INSTALL_NAME affect -install_name.
307 'DYLIB_INSTALL_NAME_BASE':
308 '@executable_path/../Frameworks',
309 # See /build/mac/copy_framework_unversioned.sh for
310 # information on LD_DYLIB_INSTALL_NAME.
311 'LD_DYLIB_INSTALL_NAME':
312 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
314 'INFOPLIST_FILE': 'app/framework-Info.plist',
323 '<@(app_shell_sources_mac)',
327 # Modify the Info.plist as needed. The script explains why
328 # this is needed. This is also done in the chrome target.
329 # The framework needs the Breakpad keys if this feature is
330 # enabled. It does not need the Keystone keys; these always
331 # come from the outer application bundle. The framework
332 # doesn't currently use the SCM keys for anything,
333 # but this seems like a really good place to store them.
334 'postbuild_name': 'Tweak Info.plist',
335 'action': ['../../build/mac/tweak_info_plist.py',
339 '--version=<(app_shell_version)',
340 '--branding=<(app_shell_product_name)'],
344 ['icu_use_data_file_flag==1', {
345 'mac_bundle_resources': [
346 '<(PRODUCT_DIR)/icudtl.dat',
349 ['v8_use_external_startup_data==1', {
350 'mac_bundle_resources': [
351 '<(PRODUCT_DIR)/natives_blob.bin',
352 '<(PRODUCT_DIR)/snapshot_blob.bin',
356 }, # target app_shell_framework
358 'target_name': 'app_shell_helper',
359 'type': 'executable',
360 'variables': { 'enable_wexit_time_destructors': 1, },
361 'product_name': '<(app_shell_product_name) Helper',
364 'app_shell_framework',
368 'app/helper-Info.plist',
370 # TODO(mark): Come up with a fancier way to do this. It should only
371 # be necessary to list helper-Info.plist once, not the three times it
373 'mac_bundle_resources!': [
374 'app/helper-Info.plist',
376 # TODO(mark): For now, don't put any resources into this app. Its
377 # resources directory will be a symbolic link to the browser app's
378 # resources directory.
379 'mac_bundle_resources/': [
383 'INFOPLIST_FILE': 'app/helper-Info.plist',
387 # The framework defines its load-time path
388 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
389 # (chrome). A different relative path needs to be used in
391 'postbuild_name': 'Fix Framework Link',
395 '@executable_path/../Frameworks/<(app_shell_product_name) Framework.framework/<(app_shell_product_name) Framework',
396 '@executable_path/../../../<(app_shell_product_name) Framework.framework/<(app_shell_product_name) Framework',
397 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
401 # Modify the Info.plist as needed. The script explains why this
402 # is needed. This is also done in the chrome and chrome_dll
403 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
404 # are used because Breakpad, Keystone, and SCM keys are
405 # never placed into the helper.
406 'postbuild_name': 'Tweak Info.plist',
407 'action': ['../../build/mac/tweak_info_plist.py',
411 '--version=<(app_shell_version)'],
414 # Make sure there isn't any Objective-C in the helper app's
416 'postbuild_name': 'Verify No Objective-C',
418 '../../build/mac/verify_no_objc.sh',
422 }, # target app_shell_helper