mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Update duktape to v2.7.0 (#18485)
A somewhat bloated change due to duktape changing code style
This commit is contained in:
parent
24cc4d8feb
commit
8bd9d9c551
4 changed files with 12953 additions and 11498 deletions
13
src/thirdparty/duktape/README.md
vendored
13
src/thirdparty/duktape/README.md
vendored
|
@ -4,17 +4,20 @@
|
|||
|
||||
[#14853](https://github.com/OpenRCT2/OpenRCT2/issues/14853) is the primary issue that was solved by embedding our own copy of duktape.
|
||||
|
||||
This directory contains a pre-configured copy of duktape v2.6.0 with the following switches enabled:
|
||||
This directory contains a pre-configured copy of duktape v2.7.0 with the following switches enabled:
|
||||
* `DUK_USE_CPP_EXCEPTIONS` for C++ exception handling.
|
||||
* `DUK_USE_DATE_NOW_WINDOWS` for Windows Vista compatibility.
|
||||
* `DUK_USE_INTERRUPT_COUNTER` for aborting long or non-terminating scripts.
|
||||
|
||||
duktape is configured with a command such as:
|
||||
```
|
||||
python2 duktape-2.6.0/tools/configure.py --output-directory src/thirdparty/duktape \
|
||||
-DUK_USE_CPP_EXCEPTIONS
|
||||
-DUK_USE_DATE_NOW_WINDOWS
|
||||
-DUK_USE_INTERRUPT_COUNTER
|
||||
python2 duktape-2.7.0/tools/configure.py --output-directory src/thirdparty/duktape \
|
||||
-DDUK_USE_CPP_EXCEPTIONS \
|
||||
-DDUK_USE_DATE_NOW_WINDOWS \
|
||||
-DDUK_USE_INTERRUPT_COUNTER \
|
||||
-DDUK_USE_EXEC_TIMEOUT_CHECK=duk_exec_timeout_check
|
||||
```
|
||||
|
||||
Then manually apply configuration fixup for `duk_exec_timeout_check` (e.g. compare repo version of `duk_config.h` with the one freshly generated) and rename resulting `duktape.c` file to `duktape.cpp`
|
||||
|
||||
See [Configuring Duktape for build](https://wiki.duktape.org/configuring) for more information.
|
||||
|
|
2554
src/thirdparty/duktape/duk_source_meta.json
vendored
2554
src/thirdparty/duktape/duk_source_meta.json
vendored
File diff suppressed because it is too large
Load diff
21872
src/thirdparty/duktape/duktape.cpp
vendored
21872
src/thirdparty/duktape/duktape.cpp
vendored
File diff suppressed because it is too large
Load diff
12
src/thirdparty/duktape/duktape.h
vendored
12
src/thirdparty/duktape/duktape.h
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Duktape public API for Duktape 2.6.0.
|
||||
* Duktape public API for Duktape 2.7.0.
|
||||
*
|
||||
* See the API reference for documentation on call semantics. The exposed,
|
||||
* supported API is between the "BEGIN PUBLIC API" and "END PUBLIC API"
|
||||
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
* (http://opensource.org/licenses/MIT)
|
||||
*
|
||||
* Copyright (c) 2013-2019 by Duktape authors (see AUTHORS.rst)
|
||||
* Copyright (c) 2013-present by Duktape authors (see AUTHORS.rst)
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -110,6 +110,12 @@
|
|||
* * Luis de Bethencourt (https://github.com/luisbg)
|
||||
* * Ian Whyman (https://github.com/v00d00)
|
||||
* * Rick Sayre (https://github.com/whorfin)
|
||||
* * Craig Leres (https://github.com/leres)
|
||||
* * Maurici Abad (https://github.com/mauriciabad)
|
||||
* * Nancy Li (https://github.com/NancyLi1013)
|
||||
* * William Parks (https://github.com/WilliamParks)
|
||||
* * Sam Hellawell (https://github.com/samhellawell)
|
||||
* * Vladislavs Sokurenko (https://github.com/sokurenko)
|
||||
*
|
||||
* Other contributions
|
||||
* ===================
|
||||
|
@ -176,7 +182,7 @@
|
|||
* development snapshots have 99 for patch level (e.g. 0.10.99 would be a
|
||||
* development version after 0.10.0 but before the next official release).
|
||||
*/
|
||||
#define DUK_VERSION 20600L
|
||||
#define DUK_VERSION 20700L
|
||||
|
||||
/* Git commit, describe, and branch for Duktape build. Useful for
|
||||
* non-official snapshot builds so that application code can easily log
|
||||
|
|
Loading…
Reference in a new issue