diff options
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 148 |
1 files changed, 135 insertions, 13 deletions
diff --git a/src/settings.js b/src/settings.js index 19108f3b..cb64bfd9 100644 --- a/src/settings.js +++ b/src/settings.js @@ -108,6 +108,7 @@ var PRECISE_I64_MATH = 1; // If enabled, i64 addition etc. is emulated - which i var PRECISE_I32_MUL = 1; // If enabled, i32 multiplication is done with full precision, which means it is // correct even if the value exceeds the JS double-integer limit of ~52 bits (otherwise, // rounding will occur above that range). +var TO_FLOAT32 = 0; // Use Math.toFloat32 var CLOSURE_ANNOTATIONS = 0; // If set, the generated code will be annotated for the closure // compiler. This potentially lets closure optimize the code better. @@ -190,9 +191,8 @@ var GL_TESTING = 0; // When enabled, sets preserveDrawingBuffer in the context, var GL_MAX_TEMP_BUFFER_SIZE = 2097152; // How large GL emulation temp buffers are var GL_UNSAFE_OPTS = 1; // Enables some potentially-unsafe optimizations in GL emulation code var FULL_ES2 = 0; // Forces support for all GLES2 features, not just the WebGL-friendly subset. -var FORCE_GL_EMULATION = 0; // Forces inclusion of full GL emulation code. -var DISABLE_GL_EMULATION = 0; // Disable inclusion of full GL emulation code. Useful when you don't want emulation - // but do need INCLUDE_FULL_LIBRARY or MAIN_MODULE. +var LEGACY_GL_EMULATION = 0; // Includes code to emulate various desktop GL features. Incomplete but useful + // in some cases, see https://github.com/kripken/emscripten/wiki/OpenGL-support var STB_IMAGE = 0; // Enables building of stb-image, a tiny public-domain library for decoding images, allowing // decoding of images without using the browser's built-in decoders. The benefit is that this @@ -315,11 +315,12 @@ var SIDE_MODULE = 0; // Corresponds to MAIN_MODULE var BUILD_AS_SHARED_LIB = 0; // Whether to build the code as a shared library // 0 here means this is not a shared lib: It is a main file. - // All shared library options (1 and 2) are currently deprecated XXX // 1 means this is a normal shared lib, load it with dlopen() // 2 means this is a shared lib that will be linked at runtime, // which means it will insert its functions into // the global namespace. See STATIC_LIBS_TO_LOAD. + // + // Value 2 is currently deprecated. var RUNTIME_LINKED_LIBS = []; // If this is a main file (BUILD_AS_SHARED_LIB == 0), then // we will link these at runtime. They must have been built with // BUILD_AS_SHARED_LIB == 2. @@ -444,7 +445,7 @@ var C_DEFINES = { 'ABMON_9': '41', 'ACCESSPERMS': '0000400', 'AF_INET': '2', - 'AF_INET6': '6', + 'AF_INET6': '10', 'ALLPERMS': '0004000', 'ALT_DIGITS': '49', 'AM_STR': '5', @@ -620,8 +621,8 @@ var C_DEFINES = { 'HAVE__ULTOA': '1', 'HUGE_VAL': 'inf', 'INT_MAX': '2147483647', - 'IPPROTO_TCP': '1', - 'IPPROTO_UDP': '2', + 'IPPROTO_TCP': '6', + 'IPPROTO_UDP': '17', 'ITIMER_PROF': '2', 'ITIMER_REAL': '0', 'ITIMER_VIRTUAL': '1', @@ -676,7 +677,7 @@ var C_DEFINES = { 'NOSTR': '55', 'NO_ARG': '0', 'no_argument': '0', - 'NSIG': '32', + 'NSIG': '64', 'NULL': '0', 'OPTIONAL_ARG': '2', 'optional_argument': '2', @@ -830,8 +831,8 @@ var C_DEFINES = { 'SIGPROF': '27', 'SIGPWR': '19', 'SIGQUIT': '3', - 'SIGRTMAX': '31', - 'SIGRTMIN': '27', + 'SIGRTMAX': '64', + 'SIGRTMIN': '32', 'SIGSEGV': '11', 'SIGSTOP': '17', 'SIGSYS': '12', @@ -857,8 +858,8 @@ var C_DEFINES = { 'SI_QUEUE': '2', 'SI_TIMER': '3', 'SI_USER': '1', - 'SOCK_DGRAM': '20', - 'SOCK_STREAM': '200', + 'SOCK_DGRAM': '2', + 'SOCK_STREAM': '1', 'STDC_HEADERS': '1', 'STDERR_FILENO': '2', 'STDIN_FILENO': '0', @@ -1322,6 +1323,127 @@ var C_DEFINES = { 'MAP_TYPE': '0x0f', 'MAP_FIXED': '0x100', 'MAP_ANONYMOUS': '0x10', - 'O_NOFOLLOW': '0200000' + 'O_NOFOLLOW': '0200000', + 'EPERM': '1', + 'ENOENT': '2', + 'ESRCH': '3', + 'EINTR': '4', + 'EIO': '5', + 'ENXIO': '6', + 'E2BIG': '7', + 'ENOEXEC': '8', + 'EBADF': '9', + 'ECHILD': '10', + 'EAGAIN': '11', + 'EWOULDBLOCK': '11', + 'ENOMEM': '12', + 'EACCES': '13', + 'EFAULT': '14', + 'ENOTBLK': '15', + 'EBUSY': '16', + 'EEXIST': '17', + 'EXDEV': '18', + 'ENODEV': '19', + 'ENOTDIR': '20', + 'EISDIR': '21', + 'EINVAL': '22', + 'ENFILE': '23', + 'EMFILE': '24', + 'ENOTTY': '25', + 'ETXTBSY': '26', + 'EFBIG': '27', + 'ENOSPC': '28', + 'ESPIPE': '29', + 'EROFS': '30', + 'EMLINK': '31', + 'EPIPE': '32', + 'EDOM': '33', + 'ERANGE': '34', + 'ENOMSG': '35', + 'EIDRM': '36', + 'ECHRNG': '37', + 'EL2NSYNC': '38', + 'EL3HLT': '39', + 'EL3RST': '40', + 'ELNRNG': '41', + 'EUNATCH': '42', + 'ENOCSI': '43', + 'EL2HLT': '44', + 'EDEADLK': '45', + 'ENOLCK': '46', + 'EBADE': '50', + 'EBADR': '51', + 'EXFULL': '52', + 'ENOANO': '53', + 'EBADRQC': '54', + 'EBADSLT': '55', + 'EDEADLOCK': '56', + 'EBFONT': '57', + 'ENOSTR': '60', + 'ENODATA': '61', + 'ETIME': '62', + 'ENOSR': '63', + 'ENONET': '64', + 'ENOPKG': '65', + 'EREMOTE': '66', + 'ENOLINK': '67', + 'EADV': '68', + 'ESRMNT': '69', + 'ECOMM': '70', + 'EPROTO': '71', + 'EMULTIHOP': '74', + 'EDOTDOT': '76', + 'EBADMSG': '77', + 'ENOTUNIQ': '80', + 'EBADFD': '81', + 'EREMCHG': '82', + 'ELIBACC': '83', + 'ELIBBAD': '84', + 'ELIBSCN': '85', + 'ELIBMAX': '86', + 'ELIBEXEC': '87', + 'ENOSYS': '88', + 'ENOTEMPTY': '90', + 'ENAMETOOLONG': '91', + 'ELOOP': '92', + 'EOPNOTSUPP': '95', + 'EPFNOSUPPORT': '96', + 'ECONNRESET': '104', + 'ENOBUFS': '105', + 'EAFNOSUPPORT': '106', + 'EPROTOTYPE': '107', + 'ENOTSOCK': '108', + 'ENOPROTOOPT': '109', + 'ESHUTDOWN': '110', + 'ECONNREFUSED': '111', + 'EADDRINUSE': '112', + 'ECONNABORTED': '113', + 'ENETUNREACH': '114', + 'ENETDOWN': '115', + 'ETIMEDOUT': '116', + 'EHOSTDOWN': '117', + 'EHOSTUNREACH': '118', + 'EINPROGRESS': '119', + 'EALREADY': '120', + 'EDESTADDRREQ': '121', + 'EMSGSIZE': '122', + 'EPROTONOSUPPORT': '123', + 'ESOCKTNOSUPPORT': '124', + 'EADDRNOTAVAIL': '125', + 'ENETRESET': '126', + 'EISCONN': '127', + 'ENOTCONN': '128', + 'ETOOMANYREFS': '129', + 'EUSERS': '131', + 'EDQUOT': '132', + 'ESTALE': '133', + 'ENOTSUP': '134', + 'ENOMEDIUM': '135', + 'EILSEQ': '138', + 'EOVERFLOW': '139', + 'ECANCELED': '140', + 'ENOTRECOVERABLE': '141', + 'EOWNERDEAD': '142', + 'ESTRPIPE': '143' }; |