diff options
author | max99x <max99x@gmail.com> | 2011-07-13 21:44:19 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-13 21:44:19 +0300 |
commit | fcacb4c13c73f2febfa7dabe2ffc70c727ea7762 (patch) | |
tree | 77a6cd18e3152f9ffff3e616ea7105a789d7d24d /tools/shared.py | |
parent | 8ffd5c52cab224dd582d5a1c2973696f41742280 (diff) | |
parent | dc24fffc94606ccb566a3e6bb8dae5543f1ab790 (diff) |
Merge branch 'master' of github.com:max99x/emscripten
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 8cb602df..9ccc2105 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1,6 +1,10 @@ import shutil, time, os from subprocess import Popen, PIPE, STDOUT +abspath = os.path.abspath(os.path.dirname(__file__)) +def path_from_root(*pathelems): + return os.path.join(os.path.sep, *(abspath.split(os.sep)[:-1] + list(pathelems))) + CONFIG_FILE = os.path.expanduser('~/.emscripten') if not os.path.exists(CONFIG_FILE): shutil.copy(path_from_root('settings.py'), CONFIG_FILE) @@ -17,6 +21,8 @@ LLVM_DIS_OPTS = ['-show-annotations'] # For LLVM 2.8+. For 2.7, you may need to LLVM_INTERPRETER=os.path.expanduser(os.path.join(LLVM_ROOT, 'lli')) LLVM_COMPILER=os.path.expanduser(os.path.join(LLVM_ROOT, 'llc')) +BINDINGS_GENERATOR = path_from_root('tools', 'bindings_generator.py') + # Engine tweaks if '-s' not in SPIDERMONKEY_ENGINE: |