Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1588)

Side by Side Diff: chrome/chrome.gyp

Issue 585123004: Mac: Give app_shim code a nicer home (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: various cleanups Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables': { 5 'variables': {
6 'chromium_code': 1, 6 'chromium_code': 1,
7 7
8 # Define the common dependencies that contain all the actual 8 # Define the common dependencies that contain all the actual
9 # Chromium functionality. This list gets pulled in below by 9 # Chromium functionality. This list gets pulled in below by
10 # the link of the actual chrome (or chromium) executable on 10 # the link of the actual chrome (or chromium) executable on
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ] 128 ]
129 } 129 }
130 ], 130 ],
131 }] 131 }]
132 ], 132 ],
133 }, 133 },
134 ], 134 ],
135 }], # OS!="ios" 135 }], # OS!="ios"
136 ['OS=="mac"', { 136 ['OS=="mac"', {
137 'includes': [ 137 'includes': [
138 '../apps/app_shim/app_shim.gypi', 138 'app_shim/app_shim.gypi',
139 'browser/apps/app_shim/browser_app_shim.gypi',
139 ], 140 ],
140 'targets': [ 141 'targets': [
141 { 142 {
142 'target_name': 'helper_app', 143 'target_name': 'helper_app',
143 'type': 'executable', 144 'type': 'executable',
144 'variables': { 'enable_wexit_time_destructors': 1, }, 145 'variables': { 'enable_wexit_time_destructors': 1, },
145 'product_name': '<(mac_product_name) Helper', 146 'product_name': '<(mac_product_name) Helper',
146 'mac_bundle': 1, 147 'mac_bundle': 1,
147 'dependencies': [ 148 'dependencies': [
148 'chrome_dll', 149 'chrome_dll',
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 'common/mac/app_mode_chrome_locator.h', 275 'common/mac/app_mode_chrome_locator.h',
275 'common/mac/app_mode_chrome_locator.mm', 276 'common/mac/app_mode_chrome_locator.mm',
276 'common/mac/app_mode_common.h', 277 'common/mac/app_mode_common.h',
277 'common/mac/app_mode_common.mm', 278 'common/mac/app_mode_common.mm',
278 ], 279 ],
279 'include_dirs': [ 280 'include_dirs': [
280 '..', 281 '..',
281 ], 282 ],
282 }, # target app_mode_app_support 283 }, # target app_mode_app_support
283 { 284 {
284 # This produces the template for app mode loader bundles. It's a
285 # template in the sense that parts of it need to be "filled in" by
286 # Chrome before it can be executed.
287 'target_name': 'app_mode_app',
288 'type': 'executable',
289 'mac_bundle' : 1,
290 'variables': {
291 'enable_wexit_time_destructors': 1,
292 'mac_real_dsym': 1,
293 },
294 'product_name': 'app_mode_loader',
295 'dependencies': [
296 'app_mode_app_support',
297 'infoplist_strings_tool',
298 ],
299 'sources': [
300 'app/app_mode_loader_mac.mm',
301 'app/app_mode-Info.plist',
302 ],
303 'include_dirs': [
304 '..',
305 ],
306 'link_settings': {
307 'libraries': [
308 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
309 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
310 ],
311 },
312 'mac_bundle_resources!': [
313 'app/app_mode-Info.plist',
314 ],
315 'mac_bundle_resources/': [
316 ['exclude', '.*'],
317 ],
318 'xcode_settings': {
319 'INFOPLIST_FILE': 'app/app_mode-Info.plist',
320 'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_I D@',
321 },
322 'postbuilds' : [
323 {
324 # Modify the Info.plist as needed. The script explains why this
325 # is needed. This is also done in the chrome and chrome_dll
326 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
327 # are used because Breakpad, Keystone, and SCM keys are
328 # never placed into the app mode loader.
329 'postbuild_name': 'Tweak Info.plist',
330 'action': ['<(tweak_info_plist_path)',
331 '--breakpad=0',
332 '--keystone=0',
333 '--scm=0'],
334 },
335 ],
336 }, # target app_mode_app
337 {
338 # Convenience target to build a disk image. 285 # Convenience target to build a disk image.
339 'target_name': 'build_app_dmg', 286 'target_name': 'build_app_dmg',
340 # Don't place this in the 'all' list; most won't want it. 287 # Don't place this in the 'all' list; most won't want it.
341 # In GYP, booleans are 0/1, not True/False. 288 # In GYP, booleans are 0/1, not True/False.
342 'suppress_wildcard': 1, 289 'suppress_wildcard': 1,
343 'type': 'none', 290 'type': 'none',
344 'dependencies': [ 291 'dependencies': [
345 'chrome', 292 'chrome',
346 ], 293 ],
347 'variables': { 294 'variables': {
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 'service/service_utility_process_host.cc', 724 'service/service_utility_process_host.cc',
778 'service/service_utility_process_host.h', 725 'service/service_utility_process_host.h',
779 ], 726 ],
780 }], 727 }],
781 ], 728 ],
782 }, 729 },
783 ], 730 ],
784 }], 731 }],
785 ], # 'conditions' 732 ], # 'conditions'
786 } 733 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698