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

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

Issue 341613003: ninja: Pass .so files outside of --start-group/--end-group. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 6 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) 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 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 rspfile='$link_file_list', 1946 rspfile='$link_file_list',
1947 rspfile_content= 1947 rspfile_content=
1948 '-Wl,--whole-archive $in $solibs -Wl,--no-whole-archive $libs', 1948 '-Wl,--whole-archive $in $solibs -Wl,--no-whole-archive $libs',
1949 pool='link_pool') 1949 pool='link_pool')
1950 master_ninja.rule( 1950 master_ninja.rule(
1951 'solink_module', 1951 'solink_module',
1952 description='SOLINK(module) $lib', 1952 description='SOLINK(module) $lib',
1953 restat=True, 1953 restat=True,
1954 command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'}, 1954 command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'},
1955 rspfile='$link_file_list', 1955 rspfile='$link_file_list',
1956 rspfile_content='-Wl,--start-group $in $solibs -Wl,--end-group $libs', 1956 rspfile_content='-Wl,--start-group $in -Wl,--end-group $solibs $libs',
1957 pool='link_pool') 1957 pool='link_pool')
1958 master_ninja.rule( 1958 master_ninja.rule(
1959 'link', 1959 'link',
1960 description='LINK $out', 1960 description='LINK $out',
1961 command=('$ld $ldflags -o $out ' 1961 command=('$ld $ldflags -o $out '
1962 '-Wl,--start-group $in $solibs -Wl,--end-group $libs'), 1962 '-Wl,--start-group $in -Wl,--end-group $solibs $libs'),
1963 pool='link_pool') 1963 pool='link_pool')
1964 elif flavor == 'win': 1964 elif flavor == 'win':
1965 master_ninja.rule( 1965 master_ninja.rule(
1966 'alink', 1966 'alink',
1967 description='LIB $out', 1967 description='LIB $out',
1968 command=('%s gyp-win-tool link-wrapper $arch False ' 1968 command=('%s gyp-win-tool link-wrapper $arch False '
1969 '$ar /nologo /ignore:4221 /OUT:$out @$out.rsp' % 1969 '$ar /nologo /ignore:4221 /OUT:$out @$out.rsp' %
1970 sys.executable), 1970 sys.executable),
1971 rspfile='$out.rsp', 1971 rspfile='$out.rsp',
1972 rspfile_content='$in_newline $libflags') 1972 rspfile_content='$in_newline $libflags')
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 arglists.append( 2220 arglists.append(
2221 (target_list, target_dicts, data, params, config_name)) 2221 (target_list, target_dicts, data, params, config_name))
2222 pool.map(CallGenerateOutputForConfig, arglists) 2222 pool.map(CallGenerateOutputForConfig, arglists)
2223 except KeyboardInterrupt, e: 2223 except KeyboardInterrupt, e:
2224 pool.terminate() 2224 pool.terminate()
2225 raise e 2225 raise e
2226 else: 2226 else:
2227 for config_name in config_names: 2227 for config_name in config_names:
2228 GenerateOutputForConfig(target_list, target_dicts, data, params, 2228 GenerateOutputForConfig(target_list, target_dicts, data, params,
2229 config_name) 2229 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