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

Side by Side Diff: webrtc/tools/testing/setup_apprtc.py

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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 | « webrtc/tools/testing/prebuilt_apprtc.zip.sha1 ('k') | webrtc/tools/testing/utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 #
4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree.
9
10 """This script sets up AppRTC and its dependencies.
11
12 Requires that depot_tools is installed and in the PATH.
13
14 It will put the result under <output_dir>/collider.
15 """
16
17 import os
18 import sys
19
20 import utils
21
22
23 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
24
25
26 def main(argv):
27 if len(argv) == 1:
28 return 'Usage %s <output_dir>' % argv[0]
29
30 output_dir = os.path.abspath(argv[1])
31
32 download_apprtc_path = os.path.join(SCRIPT_DIR, 'download_apprtc.py')
33 utils.RunSubprocessWithRetry([download_apprtc_path, output_dir])
34
35 build_apprtc_path = os.path.join(SCRIPT_DIR, 'build_apprtc.py')
36 apprtc_src_dir = os.path.join(output_dir, 'apprtc', 'src')
37 go_dir = os.path.join(output_dir, 'go')
38 collider_dir = os.path.join(output_dir, 'collider')
39 utils.RunSubprocessWithRetry([build_apprtc_path, apprtc_src_dir,
40 go_dir, collider_dir])
41
42
43 if __name__ == '__main__':
44 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « webrtc/tools/testing/prebuilt_apprtc.zip.sha1 ('k') | webrtc/tools/testing/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698