• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.rstH A D01-Sep-20211.2 KiB4027

duk_config.h-modular-dllH A D01-Sep-2021110.8 KiB3,4163,159

duk_config.h-modular-staticH A D01-Sep-2021110.8 KiB3,4163,159

genconfig.pyH A D01-Sep-202149.7 KiB1,5381,084

README.rst

1=================
2Duktape genconfig
3=================
4
5Overview
6========
7
8``genconfig`` is a helper script for coming up with a ``duk_config.h`` for
9compiling Duktape for your platform.
10
11To support this:
12
13* It creates a Duktape 1.2.x compatible ``duk_config.h`` with automatic
14  platform detection and ``DUK_OPT_xxx`` feature options.
15
16* It helps to create a ``duk_config.h`` for your platform/compiler
17  combination.  You can give a base configuration and then force certain
18  values manually based on a YAML configuration file.
19
20* It autogenerates documentation for config options (and Duktape 1.2.x
21  feature options) based on option metadata files written in YAML.
22
23Usage
24=====
25
26To create an autodetect duk_config.h header (compatible with Duktape 1.2.x)::
27
28    $ python config/genconfig.py --metadata config --output /tmp/duk_config.h \
29          autodetect-header
30
31To create a barebones duk_config.h header for a specific platform (easier to
32edit manually)::
33
34    $ python config/genconfig.py --metadata config --output /tmp/duk_config.h \
35          --platform linux --compiler gcc --architecture x64 \
36          barebones-header
37
38There are further commands to e.g. autogenerate config option documentation;
39see ``genconfig.py`` for details.
40