2012-09-26 23:30:46 +04:00
|
|
|
# This file will be edited (the {{{ }}} things), and then ~/.emscripten created with the result, if ~/.emscripten doesn't exist.
|
2012-09-26 22:55:23 +04:00
|
|
|
|
2012-05-28 20:58:08 +04:00
|
|
|
# Note: If you put paths relative to the home directory, do not forget os.path.expanduser
|
2011-05-10 04:23:26 +04:00
|
|
|
|
2012-09-21 21:32:49 +04:00
|
|
|
import os
|
|
|
|
|
2012-08-31 21:40:44 +04:00
|
|
|
# this helps projects using emscripten find it
|
2013-03-12 05:35:49 +04:00
|
|
|
EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '{{{ EMSCRIPTEN_ROOT }}}') # directory
|
|
|
|
LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '{{{ LLVM_ROOT }}}') # directory
|
|
|
|
PYTHON = os.path.expanduser(os.getenv('PYTHON') or '{{{ PYTHON }}}') # executable
|
2011-03-19 20:00:57 +03:00
|
|
|
|
2011-12-05 02:54:25 +04:00
|
|
|
# See below for notes on which JS engine(s) you need
|
2013-03-12 05:35:49 +04:00
|
|
|
NODE_JS = os.path.expanduser(os.getenv('NODE') or '{{{ NODE }}}') # executable
|
2013-03-14 21:30:58 +04:00
|
|
|
SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or 'js')] # executable
|
2013-03-12 05:35:49 +04:00
|
|
|
V8_ENGINE = os.path.expanduser(os.getenv('V8') or 'd8') # executable
|
2010-09-10 08:22:12 +04:00
|
|
|
|
2013-03-12 05:35:49 +04:00
|
|
|
JAVA = 'java' # executable
|
2012-05-28 20:58:08 +04:00
|
|
|
|
2013-08-07 01:19:31 +04:00
|
|
|
TEMP_DIR = '{{{ TEMP }}}'
|
2011-12-05 02:54:25 +04:00
|
|
|
|
2012-07-11 21:34:40 +04:00
|
|
|
#CLOSURE_COMPILER = '..' # define this to not use the bundled version
|
2011-12-04 08:09:11 +04:00
|
|
|
|
|
|
|
########################################################################################################
|
2011-01-15 09:44:52 +03:00
|
|
|
|
2011-12-04 08:09:11 +04:00
|
|
|
|
2011-12-05 02:54:25 +04:00
|
|
|
# Pick the JS engine to use for running the compiler. This engine must exist, or
|
|
|
|
# nothing can be compiled.
|
|
|
|
#
|
|
|
|
# Recommendation: If you already have node installed, use that. Otherwise, build v8 or
|
|
|
|
# spidermonkey from source. Any of these three is fine, as long as it's
|
|
|
|
# a recent version (especially for v8 and spidermonkey).
|
|
|
|
|
|
|
|
COMPILER_ENGINE = NODE_JS
|
|
|
|
#COMPILER_ENGINE = V8_ENGINE
|
|
|
|
#COMPILER_ENGINE = SPIDERMONKEY_ENGINE
|
|
|
|
|
2010-10-25 06:12:49 +04:00
|
|
|
|
2011-12-05 02:54:25 +04:00
|
|
|
# All JS engines to use when running the automatic tests. Not all the engines in this list
|
|
|
|
# must exist (if they don't, they will be skipped in the test runner).
|
|
|
|
#
|
|
|
|
# Recommendation: If you already have node installed, use that. If you can, also build
|
|
|
|
# spidermonkey from source as well to get more test coverage (node can't
|
|
|
|
# run all the tests due to node issue 1669). v8 is currently not recommended
|
|
|
|
# here because of v8 issue 1822.
|
2010-11-06 06:48:19 +03:00
|
|
|
|
2012-11-04 22:31:25 +04:00
|
|
|
JS_ENGINES = [NODE_JS] # add this if you have spidermonkey installed too, SPIDERMONKEY_ENGINE]
|
2010-10-13 07:38:12 +04:00
|
|
|
|