You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Sami Vaarala 895134868b DUK_USE_BUFFEROBJECT_SUPPORT metadata update 8 years ago
..
architectures Config metadata and snippet improvements 9 years ago
compilers Add inline macros for MSVC 9 years ago
config-options DUK_USE_BUFFEROBJECT_SUPPORT metadata update 8 years ago
examples Config option changes for regexp bracket parsing 8 years ago
feature-options Config changes for C++ and setjmp() reworks 9 years ago
header-snippets Remove file I/O support from config 9 years ago
helper-snippets Avoid fmin/fmax on Atari Mint 9 years ago
other-defines Fix config platform function typo 9 years ago
platforms Config changes for C++ and setjmp() reworks 9 years ago
README.rst Genconfig improvements and fixes 9 years ago
architectures.yaml Config metadata and snippet improvements 9 years ago
compilers.yaml Config metadata and snippet improvements 9 years ago
extract_unique_options.py Make things work on systems defaulting to python3 9 years ago
genconfig.py Make things work on systems defaulting to python3 9 years ago
platforms.yaml Config metadata and snippet improvements 9 years ago
tags.yaml Cleanup DUK_USE_NONSTD_REGEXP_BRACES config meta 9 years ago

README.rst

=================
Duktape genconfig
=================

Overview
========

``genconfig`` is a helper script for coming up with a ``duk_config.h`` for
compiling Duktape for your platform.

To support this:

* It creates a Duktape 1.2.x compatible ``duk_config.h`` with automatic
platform detection and ``DUK_OPT_xxx`` feature options.

* It helps to create a ``duk_config.h`` for your platform/compiler
combination. You can give a base configuration and then force certain
values manually based on a YAML configuration file.

* It autogenerates documentation for config options (and Duktape 1.2.x
feature options) based on option metadata files written in YAML.

Usage
=====

To create an autodetect duk_config.h header (compatible with Duktape 1.2.x)::

$ python config/genconfig.py --metadata config --output /tmp/duk_config.h \
autodetect-header

To create a barebones duk_config.h header for a specific platform (easier to
edit manually)::

$ python config/genconfig.py --metadata config --output /tmp/duk_config.h \
--platform linux --compiler gcc --architecture x64 \
barebones-header

There are further commands to e.g. autogenerate config option documentation;
see ``genconfig.py`` for details.