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

Side by Side Diff: pylib/gyp/generator/ninja.py

Issue 10459029: Assign value to LIB_DIR for ninja Linux build. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 import copy 5 import copy
6 import gyp 6 import gyp
7 import gyp.common 7 import gyp.common
8 import gyp.msvs_emulation 8 import gyp.msvs_emulation
9 import gyp.MSVSVersion 9 import gyp.MSVSVersion
10 import gyp.system_test 10 import gyp.system_test
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 else: 1193 else:
1194 default_variables['MSVS_OS_BITS'] = 32 1194 default_variables['MSVS_OS_BITS'] = 32
1195 else: 1195 else:
1196 operating_system = flavor 1196 operating_system = flavor
1197 if flavor == 'android': 1197 if flavor == 'android':
1198 operating_system = 'linux' # Keep this legacy behavior for now. 1198 operating_system = 'linux' # Keep this legacy behavior for now.
1199 default_variables.setdefault('OS', operating_system) 1199 default_variables.setdefault('OS', operating_system)
1200 default_variables.setdefault('SHARED_LIB_SUFFIX', '.so') 1200 default_variables.setdefault('SHARED_LIB_SUFFIX', '.so')
1201 default_variables.setdefault('SHARED_LIB_DIR', 1201 default_variables.setdefault('SHARED_LIB_DIR',
1202 os.path.join('$!PRODUCT_DIR', 'lib')) 1202 os.path.join('$!PRODUCT_DIR', 'lib'))
1203 default_variables.setdefault('LIB_DIR', '') 1203 default_variables.setdefault('LIB_DIR',
1204 os.path.join('$!PRODUCT_DIR', 'obj'))
1204 1205
1205 1206
1206 def OpenOutput(path): 1207 def OpenOutput(path):
1207 """Open |path| for writing, creating directories if necessary.""" 1208 """Open |path| for writing, creating directories if necessary."""
1208 try: 1209 try:
1209 os.makedirs(os.path.dirname(path)) 1210 os.makedirs(os.path.dirname(path))
1210 except OSError: 1211 except OSError:
1211 pass 1212 pass
1212 return open(path, 'w') 1213 return open(path, 'w')
1213 1214
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 1529
1529 user_config = params.get('generator_flags', {}).get('config', None) 1530 user_config = params.get('generator_flags', {}).get('config', None)
1530 if user_config: 1531 if user_config:
1531 GenerateOutputForConfig(target_list, target_dicts, data, params, 1532 GenerateOutputForConfig(target_list, target_dicts, data, params,
1532 user_config) 1533 user_config)
1533 else: 1534 else:
1534 config_names = target_dicts[target_list[0]]['configurations'].keys() 1535 config_names = target_dicts[target_list[0]]['configurations'].keys()
1535 for config_name in config_names: 1536 for config_name in config_names:
1536 GenerateOutputForConfig(target_list, target_dicts, data, params, 1537 GenerateOutputForConfig(target_list, target_dicts, data, params,
1537 config_name) 1538 config_name)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698