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

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

Issue 629543002: Add Ninja support for MSVS $(TargetExt), $(TargetFileName) and $(TargetPath) macros. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Reuse dictionary from MSVSUtil. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/MSVSUtil.py ('k') | pylib/gyp/msvs_emulation.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) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 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 collections 5 import collections
6 import copy 6 import copy
7 import hashlib 7 import hashlib
8 import json 8 import json
9 import multiprocessing 9 import multiprocessing
10 import os.path 10 import os.path
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 # by the Mac Ninja generator. 1519 # by the Mac Ninja generator.
1520 import gyp.generator.xcode as xcode_generator 1520 import gyp.generator.xcode as xcode_generator
1521 generator_additional_non_configuration_keys = getattr(xcode_generator, 1521 generator_additional_non_configuration_keys = getattr(xcode_generator,
1522 'generator_additional_non_configuration_keys', []) 1522 'generator_additional_non_configuration_keys', [])
1523 generator_additional_path_sections = getattr(xcode_generator, 1523 generator_additional_path_sections = getattr(xcode_generator,
1524 'generator_additional_path_sections', []) 1524 'generator_additional_path_sections', [])
1525 global generator_extra_sources_for_rules 1525 global generator_extra_sources_for_rules
1526 generator_extra_sources_for_rules = getattr(xcode_generator, 1526 generator_extra_sources_for_rules = getattr(xcode_generator,
1527 'generator_extra_sources_for_rules', []) 1527 'generator_extra_sources_for_rules', [])
1528 elif flavor == 'win': 1528 elif flavor == 'win':
1529 exts = gyp.MSVSUtil.TARGET_TYPE_EXT
1529 default_variables.setdefault('OS', 'win') 1530 default_variables.setdefault('OS', 'win')
1530 default_variables['EXECUTABLE_SUFFIX'] = '.exe' 1531 default_variables['EXECUTABLE_SUFFIX'] = '.' + exts['executable']
1531 default_variables['STATIC_LIB_PREFIX'] = '' 1532 default_variables['STATIC_LIB_PREFIX'] = ''
1532 default_variables['STATIC_LIB_SUFFIX'] = '.lib' 1533 default_variables['STATIC_LIB_SUFFIX'] = '.' + exts['static_library']
1533 default_variables['SHARED_LIB_PREFIX'] = '' 1534 default_variables['SHARED_LIB_PREFIX'] = ''
1534 default_variables['SHARED_LIB_SUFFIX'] = '.dll' 1535 default_variables['SHARED_LIB_SUFFIX'] = '.' + exts['shared_library']
1535 1536
1536 # Copy additional generator configuration data from VS, which is shared 1537 # Copy additional generator configuration data from VS, which is shared
1537 # by the Windows Ninja generator. 1538 # by the Windows Ninja generator.
1538 import gyp.generator.msvs as msvs_generator 1539 import gyp.generator.msvs as msvs_generator
1539 generator_additional_non_configuration_keys = getattr(msvs_generator, 1540 generator_additional_non_configuration_keys = getattr(msvs_generator,
1540 'generator_additional_non_configuration_keys', []) 1541 'generator_additional_non_configuration_keys', [])
1541 generator_additional_path_sections = getattr(msvs_generator, 1542 generator_additional_path_sections = getattr(msvs_generator,
1542 'generator_additional_path_sections', []) 1543 'generator_additional_path_sections', [])
1543 1544
1544 gyp.msvs_emulation.CalculateCommonVariables(default_variables, params) 1545 gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 arglists.append( 2287 arglists.append(
2287 (target_list, target_dicts, data, params, config_name)) 2288 (target_list, target_dicts, data, params, config_name))
2288 pool.map(CallGenerateOutputForConfig, arglists) 2289 pool.map(CallGenerateOutputForConfig, arglists)
2289 except KeyboardInterrupt, e: 2290 except KeyboardInterrupt, e:
2290 pool.terminate() 2291 pool.terminate()
2291 raise e 2292 raise e
2292 else: 2293 else:
2293 for config_name in config_names: 2294 for config_name in config_names:
2294 GenerateOutputForConfig(target_list, target_dicts, data, params, 2295 GenerateOutputForConfig(target_list, target_dicts, data, params,
2295 config_name) 2296 config_name)
OLDNEW
« no previous file with comments | « pylib/gyp/MSVSUtil.py ('k') | pylib/gyp/msvs_emulation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698