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

Side by Side Diff: pylib/gyp/xcode_emulation.py

Issue 1254413004: Adding framework path mapping for 'copies' action in gyp files. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Removing make/ninja tests Created 5 years, 2 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 | « no previous file | pylib/gyp/xcodeproj_file.py » ('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 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. 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 """ 5 """
6 This module contains classes that help to emulate xcodebuild behavior on top of 6 This module contains classes that help to emulate xcodebuild behavior on top of
7 other build systems, such as make and ninja. 7 other build systems, such as make and ninja.
8 """ 8 """
9 9
10 import copy 10 import copy
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 result. 1445 result.
1446 """ 1446 """
1447 if not xcode_settings: return {} 1447 if not xcode_settings: return {}
1448 1448
1449 # This function is considered a friend of XcodeSettings, so let it reach into 1449 # This function is considered a friend of XcodeSettings, so let it reach into
1450 # its implementation details. 1450 # its implementation details.
1451 spec = xcode_settings.spec 1451 spec = xcode_settings.spec
1452 1452
1453 # These are filled in on a as-needed basis. 1453 # These are filled in on a as-needed basis.
1454 env = { 1454 env = {
1455 'BUILT_FRAMEWORKS_DIR' : built_products_dir,
1455 'BUILT_PRODUCTS_DIR' : built_products_dir, 1456 'BUILT_PRODUCTS_DIR' : built_products_dir,
1456 'CONFIGURATION' : configuration, 1457 'CONFIGURATION' : configuration,
1457 'PRODUCT_NAME' : xcode_settings.GetProductName(), 1458 'PRODUCT_NAME' : xcode_settings.GetProductName(),
1458 # See /Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifica tions/MacOSX\ Product\ Types.xcspec for FULL_PRODUCT_NAME 1459 # See /Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifica tions/MacOSX\ Product\ Types.xcspec for FULL_PRODUCT_NAME
1459 'SRCROOT' : srcroot, 1460 'SRCROOT' : srcroot,
1460 'SOURCE_ROOT': '${SRCROOT}', 1461 'SOURCE_ROOT': '${SRCROOT}',
1461 # This is not true for static libraries, but currently the env is only 1462 # This is not true for static libraries, but currently the env is only
1462 # written for bundles: 1463 # written for bundles:
1463 'TARGET_BUILD_DIR' : built_products_dir, 1464 'TARGET_BUILD_DIR' : built_products_dir,
1464 'TEMP_DIR' : '${TMPDIR}', 1465 'TEMP_DIR' : '${TMPDIR}',
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 if toolset == 'target': 1618 if toolset == 'target':
1618 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' 1619 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
1619 return targets 1620 return targets
1620 1621
1621 def CloneConfigurationForDeviceAndEmulator(target_dicts): 1622 def CloneConfigurationForDeviceAndEmulator(target_dicts):
1622 """If |target_dicts| contains any iOS targets, automatically create -iphoneos 1623 """If |target_dicts| contains any iOS targets, automatically create -iphoneos
1623 targets for iOS device builds.""" 1624 targets for iOS device builds."""
1624 if _HasIOSTarget(target_dicts): 1625 if _HasIOSTarget(target_dicts):
1625 return _AddIOSDeviceConfigurations(target_dicts) 1626 return _AddIOSDeviceConfigurations(target_dicts)
1626 return target_dicts 1627 return target_dicts
OLDNEW
« no previous file with comments | « no previous file | pylib/gyp/xcodeproj_file.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698