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