OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
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 | |
10 # Framework bundle. | |
11 # | |
12 # GN version: //chrome/app_shim | |
13 'target_name': 'app_shim', | |
14 'type': 'static_library', | |
15 'dependencies': [ | |
16 # Since app_shim and browser depend on each other, we omit the | |
17 # dependency on browser here. | |
18 '../chrome/chrome_resources.gyp:chrome_strings', | |
19 'app_mode_app_support', | |
20 ], | |
21 'sources': [ | |
22 'chrome_main_app_mode_mac.mm', | |
23 ], | |
24 'include_dirs': [ | |
25 '<(INTERMEDIATE_DIR)', | |
26 '../..', | |
27 ], | |
28 }, # target app_shim | |
29 { | |
30 # This produces the template for app mode loader bundles. It's a template | |
31 # in the sense that parts of it need to be "filled in" by Chrome before it | |
32 # can be executed. | |
33 'target_name': 'app_mode_app', | |
34 'type': 'executable', | |
35 'mac_bundle' : 1, | |
36 'variables': { | |
37 'enable_wexit_time_destructors': 1, | |
38 'mac_real_dsym': 1, | |
39 }, | |
40 'product_name': 'app_mode_loader', | |
41 'dependencies': [ | |
42 'app_mode_app_support', | |
43 'infoplist_strings_tool', | |
44 ], | |
45 'sources': [ | |
46 'app_mode_loader_mac.mm', | |
47 'app_mode-Info.plist', | |
48 ], | |
49 'include_dirs': [ | |
50 '../..', | |
51 ], | |
52 'link_settings': { | |
53 'libraries': [ | |
54 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
55 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
56 ], | |
57 }, | |
58 'mac_bundle_resources!': [ | |
59 'app_shim/app_mode-Info.plist', | |
60 ], | |
61 'mac_bundle_resources/': [ | |
62 ['exclude', '.*'], | |
63 ], | |
64 'xcode_settings': { | |
65 'INFOPLIST_FILE': 'app_shim/app_mode-Info.plist', | |
66 'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_ID@', | |
67 }, | |
68 'postbuilds' : [ | |
69 { | |
70 # Modify the Info.plist as needed. The script explains why this | |
71 # is needed. This is also done in the chrome and chrome_dll | |
72 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 | |
73 # are used because Breakpad, Keystone, and SCM keys are | |
74 # never placed into the app mode loader. | |
75 'postbuild_name': 'Tweak Info.plist', | |
76 'action': ['<(tweak_info_plist_path)', | |
77 '--plist=${TARGET_BUILD_DIR}/${INFOPLIST_PATH}', | |
78 '--breakpad=0', | |
79 '--keystone=0', | |
80 '--scm=0'], | |
81 }, | |
82 ], | |
83 }, # target app_mode_app | |
84 ], # targets | |
85 } | |
OLD | NEW |