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

Side by Side Diff: recipe_modules/depot_tools/api.py

Issue 1778243008: depot_tools: use ninja.exe instead of just ninja on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 9 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 | « recipe_modules/depot_tools/__init__.py ('k') | 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. 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 from recipe_engine import recipe_api 5 from recipe_engine import recipe_api
6 6
7 class DepotToolsApi(recipe_api.RecipeApi): 7 class DepotToolsApi(recipe_api.RecipeApi):
8 @property 8 @property
9 def download_from_google_storage_path(self): 9 def download_from_google_storage_path(self):
10 return self.package_repo_resource('download_from_google_storage.py') 10 return self.package_repo_resource('download_from_google_storage.py')
11 11
12 @property 12 @property
13 def ninja_path(self): 13 def ninja_path(self):
14 return self.package_repo_resource('ninja') 14 ninja_exe = 'ninja.exe' if self.m.platform.is_win else 'ninja'
15 return self.package_repo_resource(ninja_exe)
OLDNEW
« no previous file with comments | « recipe_modules/depot_tools/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698