OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 2 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 script_dir = os.path.dirname(os.path.realpath(__file__)) | 9 script_dir = os.path.dirname(os.path.realpath(__file__)) |
10 fletch_src = os.path.abspath(os.path.join(script_dir, os.pardir)) | 10 dartino_src = os.path.abspath(os.path.join(script_dir, os.pardir)) |
11 | 11 |
12 assert os.path.exists(os.path.join(fletch_src, 'third_party', 'gyp', 'pylib')) | 12 assert os.path.exists(os.path.join(dartino_src, 'third_party', 'gyp', 'pylib')) |
13 sys.path.append(os.path.join(fletch_src, 'third_party', 'gyp', 'pylib')) | 13 sys.path.append(os.path.join(dartino_src, 'third_party', 'gyp', 'pylib')) |
14 import gyp | 14 import gyp |
15 | 15 |
16 sys.path.append(os.path.join(fletch_src, 'tools', 'vs_dependency')) | 16 sys.path.append(os.path.join(dartino_src, 'tools', 'vs_dependency')) |
17 import vs_toolchain | 17 import vs_toolchain |
18 | 18 |
19 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() | 19 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() |
20 | 20 |
21 gyp_rc = gyp.script_main() | 21 gyp_rc = gyp.script_main() |
22 | 22 |
23 # TODO(herhut): Make the below work for fletch once compilation works. | 23 # TODO(herhut): Make the below work for dartino once compilation works. |
24 if vs2013_runtime_dll_dirs: | 24 if vs2013_runtime_dll_dirs: |
25 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs | 25 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs |
26 vs_toolchain.CopyVsRuntimeDlls( | 26 vs_toolchain.CopyVsRuntimeDlls( |
27 os.path.join(fletch_src, "out"), | 27 os.path.join(dartino_src, "out"), |
28 (x86_runtime, x64_runtime)) | 28 (x86_runtime, x64_runtime)) |
29 | 29 |
30 sys.exit(gyp_rc) | 30 sys.exit(gyp_rc) |
31 | 31 |
OLD | NEW |