OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Moves Apprtc to the out/ directory, where the browser test can find it. | 6 """Moves Apprtc to the out/ directory, where the browser test can find it. |
7 | 7 |
8 This copy will resolve symlinks on all platforms, which is useful for Apprtc | 8 This copy will resolve symlinks on all platforms, which is useful for Apprtc |
9 since it uses symlinks for its common javascript files (and Windows does not | 9 since it uses symlinks for its common javascript files (and Windows does not |
10 understand those symlinks). | 10 understand those symlinks). |
11 """ | 11 """ |
12 | 12 |
13 import shutil | 13 import shutil |
14 | 14 |
15 | 15 |
16 if __name__ == '__main__': | 16 if __name__ == '__main__': |
| 17 web_samples_dir = 'src/third_party/webrtc-samples/samples/web' |
17 shutil.rmtree('src/out/apprtc', ignore_errors=True) | 18 shutil.rmtree('src/out/apprtc', ignore_errors=True) |
18 shutil.copytree('src/third_party/webrtc_apprtc/apprtc', | 19 shutil.copytree(web_samples_dir + '/content/apprtc', |
19 'src/out/apprtc', ignore=shutil.ignore_patterns('.svn')) | 20 'src/out/apprtc', ignore=shutil.ignore_patterns('.svn')) |
20 shutil.copyfile('src/third_party/webrtc_apprtc/base/adapter.js', | 21 shutil.copyfile(web_samples_dir + '/js/adapter.js', |
21 'src/out/apprtc/js/adapter.js') | 22 'src/out/apprtc/js/adapter.js') |
OLD | NEW |