mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
parent
15d6541d4d
commit
2060bc939d
6 changed files with 41 additions and 8 deletions
|
@ -28,8 +28,7 @@ install:
|
|||
- curl -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
- export PATH=$HOME/.cargo/bin:$PATH
|
||||
- rustc --version
|
||||
- (cd js; yarn)
|
||||
- (cd third_party; gclient sync -j2 --no-history)
|
||||
- ./tools/build_third_party.py
|
||||
# ccache needs the custom LLVM to be in PATH and other variables.
|
||||
- export PATH=`pwd`/third_party/llvm-build/Release+Asserts/bin:$PATH
|
||||
- export CCACHE_CPP2=yes
|
||||
|
|
|
@ -73,14 +73,11 @@ You need [rust](https://www.rust-lang.org/en-US/install.html) installed.
|
|||
|
||||
You need [ccache](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/ccache) installed.
|
||||
|
||||
Fetch packages and v8:
|
||||
```bash
|
||||
(cd third_party; gclient sync --no-history)
|
||||
```
|
||||
Fetch the third party dependencies.
|
||||
|
||||
Install the javascript deps.
|
||||
./tools/build_third_party.py
|
||||
|
||||
(cd js; yarn install)
|
||||
Generate ninja files.
|
||||
|
||||
gn gen out/Debug --args='cc_wrapper="ccache" is_debug=true '
|
||||
|
||||
|
|
1
js/node_modules
Symbolic link
1
js/node_modules
Symbolic link
|
@ -0,0 +1 @@
|
|||
../third_party/node_modules
|
1
third_party/package.json
vendored
Symbolic link
1
third_party/package.json
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../js/package.json
|
0
js/yarn.lock → third_party/yarn.lock
vendored
0
js/yarn.lock → third_party/yarn.lock
vendored
35
tools/build_third_party.py
Executable file
35
tools/build_third_party.py
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env python
|
||||
# This script updates the third party dependencies of deno.
|
||||
# - Get Depot Tools and make sure it's in your path.
|
||||
# http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up
|
||||
# - You need yarn installed as well.
|
||||
# https://yarnpkg.com/lang/en/docs/install/
|
||||
# Use //gclient_config.py to modify the git deps.
|
||||
# Use //js/package.json to modify the npm deps.
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import argparse
|
||||
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
third_party_path = os.path.join(root_path, "third_party")
|
||||
script_name = "build_third_party.py"
|
||||
|
||||
parser = argparse.ArgumentParser(description="""
|
||||
This script updates the third party dependencies of deno.
|
||||
""")
|
||||
parser.parse_args()
|
||||
|
||||
def main():
|
||||
os.chdir(third_party_path)
|
||||
run(["gclient", "sync", "--no-history"])
|
||||
run(["yarn"])
|
||||
print "Done (" + script_name + ")"
|
||||
|
||||
def run(args):
|
||||
print " ".join(args)
|
||||
env = os.environ.copy()
|
||||
subprocess.check_call(args, env=env)
|
||||
|
||||
if '__main__' == __name__:
|
||||
main()
|
Loading…
Reference in a new issue