![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/emscripten/tools/scons/site_scons/site_tools/emscripten/ |
Upload File : |
#!/usr/bin/env python2 import os def generate(env, emscripten_path=None, **kw): """ SCons tool entry point """ if emscripten_path is None: # Try to find emscripten # Use same method as Emscripten's shared.py EM_CONFIG = os.environ.get('EM_CONFIG') if not EM_CONFIG: EM_CONFIG = '~/.emscripten' CONFIG_FILE = os.path.expanduser(EM_CONFIG) try: exec(open(CONFIG_FILE, 'r').read()) except Exception, e: print >> sys.stderr, 'Error in evaluating %s (at %s): %s' % (EM_CONFIG, CONFIG_FILE, str(e)) sys.exit(1) emscripten_path = EMSCRIPTEN_ROOT env['EMSCRIPTEN_ROOT'] = emscripten_path try: emscPath = emscripten_path.abspath except: emscPath = emscripten_path env.Replace(CC = os.path.join(emscPath, "emcc" )) env.Replace(CXX = os.path.join(emscPath, "em++" )) env.Replace(LINK = os.path.join(emscPath, "emcc" )) # SHLINK and LDMODULE should use LINK so no # need to change them here env.Replace(AR = os.path.join(emscPath, "emar" )) env.Replace(RANLIB = os.path.join(emscPath, "emranlib")) env.Replace(OBJSUFFIX = [".js", ".bc", ".o"][2]) env.Replace(LIBSUFFIX = [".js", ".bc", ".o"][2]) env.Replace(PROGSUFFIX = [".html", ".js" ][1]) def exists(env): """ NOOP method required by SCons """ return 1