Use depot_tools to provide ninja binary and cpplint.
This commit is contained in:
parent
3cd910abc6
commit
950c09f2e7
5 changed files with 15 additions and 3996 deletions
|
@ -7,13 +7,20 @@ import sys
|
|||
|
||||
|
||||
CONFIGURATIONS = ['Release', 'Debug']
|
||||
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
|
||||
def main():
|
||||
os.chdir(SOURCE_ROOT)
|
||||
|
||||
ninja = os.path.join('vendor', 'depot_tools', 'ninja')
|
||||
if sys.platform == 'win32':
|
||||
ninja += '.exe'
|
||||
|
||||
args = parse_args()
|
||||
for config in args.configuration:
|
||||
build_path = os.path.join('out', config)
|
||||
subprocess.call(['ninja', '-C', build_path])
|
||||
subprocess.call([ninja, '-C', build_path])
|
||||
|
||||
|
||||
def parse_args():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue