OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 DEPS = [ | 5 DEPS = [ |
6 'depot_tools/git', | 6 'depot_tools/git', |
| 7 'depot_tools/infra_paths', |
7 'recipe_engine/path', | 8 'recipe_engine/path', |
8 'recipe_engine/platform', | 9 'recipe_engine/platform', |
9 'recipe_engine/properties', | 10 'recipe_engine/properties', |
10 'recipe_engine/python', | 11 'recipe_engine/python', |
11 'recipe_engine/step', | 12 'recipe_engine/step', |
12 ] | 13 ] |
13 | 14 |
14 # TODO (joshualitt) the configure script is messed up so we need a relative | 15 # TODO (joshualitt) the configure script is messed up so we need a relative |
15 # path. Essentially, it must be using argv[0] when invoking some of the | 16 # path. Essentially, it must be using argv[0] when invoking some of the |
16 # scripts in the libvpx directory | 17 # scripts in the libvpx directory |
17 CONFIGURE_PATH_REL = './libvpx/configure' | 18 CONFIGURE_PATH_REL = './libvpx/configure' |
18 | 19 |
19 def RunSteps(api): | 20 def RunSteps(api): |
20 # Paths and other constants | 21 # Paths and other constants |
21 build_root = api.path['slave_build'] | 22 build_root = api.infra_paths['slave_build'] |
22 | 23 |
23 # libvpx paths | 24 # libvpx paths |
24 libvpx_git_url = api.properties['libvpx_git_url'] | 25 libvpx_git_url = api.properties['libvpx_git_url'] |
25 libvpx_root = build_root.join('libvpx') | 26 libvpx_root = build_root.join('libvpx') |
26 | 27 |
27 api.python.inline( | 28 api.python.inline( |
28 'clean_build', r""" | 29 'clean_build', r""" |
29 import os, sys, shutil | 30 import os, sys, shutil |
30 root = sys.argv[1] | 31 root = sys.argv[1] |
31 nuke_dirs = sys.argv[2:] | 32 nuke_dirs = sys.argv[2:] |
(...skipping 13 matching lines...) Expand all Loading... |
45 | 46 |
46 api.step('run tests', ['make', 'test', '-j8']) | 47 api.step('run tests', ['make', 'test', '-j8']) |
47 | 48 |
48 def GenTests(api): | 49 def GenTests(api): |
49 # Right now we just support linux, but one day we will have mac and windows | 50 # Right now we just support linux, but one day we will have mac and windows |
50 # as well | 51 # as well |
51 yield ( | 52 yield ( |
52 api.test('basic_linux_64') + | 53 api.test('basic_linux_64') + |
53 api.properties( | 54 api.properties( |
54 libvpx_git_url='https://chromium.googlesource.com/webm/libvpx')) | 55 libvpx_git_url='https://chromium.googlesource.com/webm/libvpx')) |
OLD | NEW |