mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
Clean up and fix tools
* Make sync_third_party work in general * Un-break build.py and run_hooks.py on windows * Partially fix format.py on windows * Reduce code duplication between run_hooks and sync_third_party
This commit is contained in:
parent
0875411267
commit
4d08bb85a4
6 changed files with 219 additions and 80 deletions
|
@ -1,29 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
from util import run
|
||||
import third_party
|
||||
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
third_party_path = os.path.join(root_path, "third_party")
|
||||
depot_tools_path = os.path.join(third_party_path, "depot_tools")
|
||||
os.chdir(root_path)
|
||||
third_party.fix_symlinks()
|
||||
|
||||
|
||||
def download(filename):
|
||||
run([
|
||||
"python",
|
||||
os.path.join(depot_tools_path + '/download_from_google_storage.py'),
|
||||
'--platform=' + sys.platform, '--no_auth', '--bucket=chromium-gn',
|
||||
'--sha1_file',
|
||||
os.path.join(root_path, filename)
|
||||
])
|
||||
|
||||
|
||||
if sys.platform == 'win32':
|
||||
download("third_party/v8/buildtools/win/gn.exe.sha1")
|
||||
elif sys.platform == 'darwin':
|
||||
download("third_party/v8/buildtools/mac/gn.sha1")
|
||||
elif sys.platform.startswith('linux'):
|
||||
download("third_party/v8/buildtools/linux64/gn.sha1")
|
||||
|
||||
run(['python', 'third_party/v8/tools/clang/scripts/update.py', '--if-needed'])
|
||||
third_party.download_gn()
|
||||
third_party.download_clang()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue