mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 08:19:55 +03:00
845 B
845 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
.