OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 the V8 project authors. All rights reserved. | 2 # Copyright 2016 the V8 project 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 import os | 6 import os |
7 | 7 |
8 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 8 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
9 VALGRIND_DIR = os.path.join(BASE_DIR, 'third_party', 'valgrind') | 9 VALGRIND_DIR = os.path.join(BASE_DIR, 'third_party', 'valgrind') |
10 LINUX32_DIR = os.path.join(VALGRIND_DIR, 'linux_x86') | 10 LINUX32_DIR = os.path.join(VALGRIND_DIR, 'linux_x86') |
11 LINUX64_DIR = os.path.join(VALGRIND_DIR, 'linux_x64') | 11 LINUX64_DIR = os.path.join(VALGRIND_DIR, 'linux_x64') |
12 | 12 |
13 | 13 |
14 def DoMain(_): | 14 def DoMain(_): |
15 """Hook to be called from gyp without starting a separate python | 15 """Hook to be called from gyp without starting a separate python |
16 interpreter.""" | 16 interpreter.""" |
17 return int(os.path.exists(LINUX32_DIR) and os.path.exists(LINUX64_DIR)) | 17 return int(os.path.exists(LINUX32_DIR) and os.path.exists(LINUX64_DIR)) |
18 | 18 |
19 | 19 |
20 if __name__ == '__main__': | 20 if __name__ == '__main__': |
21 print DoMain([]) | 21 print DoMain([]) |
OLD | NEW |