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.
8 # This is the part of the shim process compiled into Chrome. It runs only
9 # in the shim process, after the shim finds and loads the Chrome
11 'target_name': 'app_shim',
12 'type': 'static_library',
14 # Since app_shim and browser depend on each other, we omit the
15 # dependency on browser here.
16 '../chrome/chrome_resources.gyp:chrome_strings',
17 'app_mode_app_support',
20 'chrome_main_app_mode_mac.mm',
23 '<(INTERMEDIATE_DIR)',
28 # This produces the template for app mode loader bundles. It's a template
29 # in the sense that parts of it need to be "filled in" by Chrome before it
31 'target_name': 'app_mode_app',
35 'enable_wexit_time_destructors': 1,
38 'product_name': 'app_mode_loader',
40 'app_mode_app_support',
41 'infoplist_strings_tool',
44 'app_mode_loader_mac.mm',
45 'app_mode-Info.plist',
52 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
53 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
56 'mac_bundle_resources!': [
57 'app_shim/app_mode-Info.plist',
59 'mac_bundle_resources/': [
63 'INFOPLIST_FILE': 'app_shim/app_mode-Info.plist',
64 'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_ID@',
68 # Modify the Info.plist as needed. The script explains why this
69 # is needed. This is also done in the chrome and chrome_dll
70 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
71 # are used because Breakpad, Keystone, and SCM keys are
72 # never placed into the app mode loader.
73 'postbuild_name': 'Tweak Info.plist',
74 'action': ['<(tweak_info_plist_path)',
80 }, # target app_mode_app