OLD | NEW |
1 #! -*- python -*- | 1 #! -*- python -*- |
2 # | 2 # |
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Build file for running scripts in the build_tools directory | 7 """Build file for running scripts in the build_tools directory |
8 | 8 |
9 Adapted from scons documentation: http://www.scons.org/wiki/UnitTests | 9 Adapted from scons documentation: http://www.scons.org/wiki/UnitTests |
10 and from ../project_templates/test.scons | 10 and from ../project_templates/test.scons |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 os.path.join('runtime', 'irt_core_x86_32.nexe'), | 272 os.path.join('runtime', 'irt_core_x86_32.nexe'), |
273 os.path.join('runtime', 'irt_core_x86_64.nexe'), | 273 os.path.join('runtime', 'irt_core_x86_64.nexe'), |
274 ] | 274 ] |
275 | 275 |
276 all_tools = [] | 276 all_tools = [] |
277 for dir in env['NACL_TOOLCHAIN_ROOTS'].values(): | 277 for dir in env['NACL_TOOLCHAIN_ROOTS'].values(): |
278 all_tools += [os.path.join(dir, tool) for tool in tools] | 278 all_tools += [os.path.join(dir, tool) for tool in tools] |
279 | 279 |
280 nacl_tools_cmd = env.Command(all_tools, | 280 nacl_tools_cmd = env.Command(all_tools, |
281 ['make_nacl_tools.py', | 281 ['make_nacl_tools.py', |
282 os.path.join(env['ROOT_DIR'], 'DEPS')], | 282 os.path.join(env['SRC_DIR'], 'DEPS')], |
283 build_nacl_tools) | 283 build_nacl_tools) |
284 env.Depends(nacl_tools_cmd, env.GetHeadersNode()) | 284 env.Depends(nacl_tools_cmd, env.GetHeadersNode()) |
285 env.Depends(env.GetToolchainNode(), nacl_tools_cmd) | 285 env.Depends(env.GetToolchainNode(), nacl_tools_cmd) |
286 env.AddCleanAction([], build_nacl_tools, ['toolchain', 'bot'], nacl_tools_cmd) | 286 env.AddCleanAction([], build_nacl_tools, ['toolchain', 'bot'], nacl_tools_cmd) |
OLD | NEW |