Advertisement
Guest User

~/.emscripten

a guest
Oct 24th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.02 KB | None | 0 0
  1. # Note: If you put paths relative to the home directory, do not forget os.path.expanduser
  2.  
  3. import os
  4.  
  5. # this helps projects using emscripten find it
  6. EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '/usr/share/emscripten') # directory
  7. LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/bin') # directory
  8.  
  9. # If not specified, defaults to sys.executable.
  10. #PYTHON = 'python'
  11.  
  12. # See below for notes on which JS engine(s) you need
  13. NODE_JS = os.path.expanduser(os.getenv('NODE') or '/usr/bin/nodejs') # executable
  14. SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or 'js')] # executable
  15. V8_ENGINE = os.path.expanduser(os.getenv('V8') or 'd8') # executable
  16.  
  17. JAVA = 'java' # executable
  18.  
  19. TEMP_DIR = '/tmp'
  20.  
  21. CRUNCH = os.path.expanduser(os.getenv('CRUNCH') or 'crunch') # executable
  22.  
  23. #CLOSURE_COMPILER = '..' # define this to not use the bundled version
  24.  
  25. ########################################################################################################
  26.  
  27.  
  28. # Pick the JS engine to use for running the compiler. This engine must exist, or
  29. # nothing can be compiled.
  30. #
  31. # Recommendation: If you already have node installed, use that. Otherwise, build v8 or
  32. #                 spidermonkey from source. Any of these three is fine, as long as it's
  33. #                 a recent version (especially for v8 and spidermonkey).
  34.  
  35. COMPILER_ENGINE = NODE_JS
  36. #COMPILER_ENGINE = V8_ENGINE
  37. #COMPILER_ENGINE = SPIDERMONKEY_ENGINE
  38.  
  39.  
  40. # All JS engines to use when running the automatic tests. Not all the engines in this list
  41. # must exist (if they don't, they will be skipped in the test runner).
  42. #
  43. # Recommendation: If you already have node installed, use that. If you can, also build
  44. #                 spidermonkey from source as well to get more test coverage (node can't
  45. #                 run all the tests due to node issue 1669). v8 is currently not recommended
  46. #                 here because of v8 issue 1822.
  47.  
  48. JS_ENGINES = [NODE_JS] # add this if you have spidermonkey installed too, SPIDERMONKEY_ENGINE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement