mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
736bbbed71
Note that DUK_OPT_XXX feature selection has been removed. This means we can't use `DUK_OPT_HAVE_CUSTOM_H`, so we need another way to tell duktape about our custom header. This means assembling our own duktape distribution with a duktape "tools/configure.py" invocation. Instructions for updating duktape have been added to NetSurf's `Docs/` directory. See: https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_opt_xxx-feature-option-support-removed
848 B
848 B
Updating Duktape
-
Fetch the latest release archive.
-
Extract it somewhere.
-
That extracts to a
duktape-[VERSION]
directory. -
We need to tell duktape about our
duk_custom.h
header:-
Change into the
duktape-[VERSION]
directory. -
Run the following command:
python2 tools/configure.py
--output-directory /tmp/output
--source-directory src-input
--config-metadata config
--fixup-line '#include "duk_custom.h"' -
This generates a suitable set of duktape sources in
/tmp/output
-
-
Replace the
duktape.c
,duktape.h
andduk_config.h
files in the netsurf source tree (incontent/handlers/javascript/duktape
) with those generated in/tmp/output
.