* Rename prepare_sources.py to configure.py; the operation is similar to
autoconf ./configure so the association is useful.
* Rename make_dist.py to dist.py.
* Generate only one source set (combined or separate) for one run of
configure.py.
* Change dist.py to run configure.py three times to generate the default
source sets.
* Use an autodeleted temporary directory for preparing sources, which
removes some of the manual temporary file handling.
parser.add_option('--duk-dist-meta',dest='duk_dist_meta',default=None,help='duk_dist_meta.json to read git commit etc info from')
# Options for combining sources.
parser.add_option('--separate-sources',dest='separate_sources',action='store_true',default=False,help='Output separate sources instead of combined source (default is combined)')
parser.add_option('--line-directives',dest='line_directives',action='store_true',default=False,help='Output #line directives in combined source (default is false)')
# Options forwarded to genbuiltins.py.
parser.add_option('--rom-support',dest='rom_support',action='store_true',help='Add support for ROM strings/objects (increases duktape.c size considerably)')
parser.add_option('--rom-auto-lightfunc',dest='rom_auto_lightfunc',action='store_true',default=False,help='Convert ROM built-in function properties into lightfuncs automatically whenever possible')
parser.add_option('--user-builtin-metadata',dest='user_builtin_metadata',action='append',default=[],help='User strings and objects to add, YAML format (can be repeated for multiple overrides)')
# Options forwarded to genconfig.py.
genconfig.add_genconfig_optparse_options(parser)
parser.add_option('--user-builtin-metadata',dest='user_builtin_metadata',metavar='FILENAME',action='append',default=[],help='User strings and objects to add, YAML format (can be repeated for multiple overrides)')
parser.add_option('--omit-deprecated-config-options',dest='omit_deprecated_config_options',action='store_true',default=False,help='omit deprecated config options from generated headers')
parser.add_option('--omit-unused-config-options',dest='omit_unused_config_options',action='store_true',default=False,help='omit unused config options from generated headers')
parser.add_option('--add-active-defines-macro',dest='add_active_defines_macro',action='store_true',default=False,help='add DUK_ACTIVE_DEFINES macro, for development only')
parser.add_option('--define',type='string',dest='force_options_yaml',action='callback',callback=add_force_option_define,default=force_options_yaml,help='force #define option using a C compiler like syntax, e.g. "--define DUK_USE_DEEP_C_STACK" or "--define DUK_USE_TRACEBACK_DEPTH=10"')
parser.add_option('-D',type='string',dest='force_options_yaml',action='callback',callback=add_force_option_define,default=force_options_yaml,help='synonym for --define, e.g. "-DDUK_USE_DEEP_C_STACK" or "-DDUK_USE_TRACEBACK_DEPTH=10"')
parser.add_option('--undefine',type='string',dest='force_options_yaml',action='callback',callback=add_force_option_undefine,default=force_options_yaml,help='force #undef option using a C compiler like syntax, e.g. "--undefine DUK_USE_DEEP_C_STACK"')
parser.add_option('-U',type='string',dest='force_options_yaml',action='callback',callback=add_force_option_undefine,default=force_options_yaml,help='synonym for --undefine, e.g. "-UDUK_USE_DEEP_C_STACK"')
parser.add_option('--option-yaml',type='string',dest='force_options_yaml',action='callback',callback=add_force_option_yaml,default=force_options_yaml,help='force option(s) using inline YAML (e.g. --option-yaml "DUK_USE_DEEP_C_STACK: true")')
parser.add_option('--fixup-file',type='string',dest='fixup_header_lines',action='callback',callback=add_fixup_header_file,default=fixup_header_lines,help='C header snippet file(s) to be appended to generated header, useful for manual option fixups')
parser.add_option('--fixup-line',type='string',dest='fixup_header_lines',action='callback',callback=add_fixup_header_line,default=fixup_header_lines,help='C header fixup line to be appended to generated header (e.g. --fixup-line "#define DUK_USE_FASTINT")')
parser.add_option('--define',type='string',metavar='OPTION',dest='force_options_yaml',action='callback',callback=add_force_option_define,default=force_options_yaml,help='force #define option using a C compiler like syntax, e.g. "--define DUK_USE_DEEP_C_STACK" or "--define DUK_USE_TRACEBACK_DEPTH=10"')
parser.add_option('-D',type='string',metavar='OPTION',dest='force_options_yaml',action='callback',callback=add_force_option_define,default=force_options_yaml,help='synonym for --define, e.g. "-DDUK_USE_DEEP_C_STACK" or "-DDUK_USE_TRACEBACK_DEPTH=10"')
parser.add_option('--undefine',type='string',metavar='OPTION',dest='force_options_yaml',action='callback',callback=add_force_option_undefine,default=force_options_yaml,help='force #undef option using a C compiler like syntax, e.g. "--undefine DUK_USE_DEEP_C_STACK"')
parser.add_option('-U',type='string',metavar='OPTION',dest='force_options_yaml',action='callback',callback=add_force_option_undefine,default=force_options_yaml,help='synonym for --undefine, e.g. "-UDUK_USE_DEEP_C_STACK"')
parser.add_option('--option-yaml',type='string',metavar='YAML',dest='force_options_yaml',action='callback',callback=add_force_option_yaml,default=force_options_yaml,help='force option(s) using inline YAML (e.g. --option-yaml "DUK_USE_DEEP_C_STACK: true")')
parser.add_option('--fixup-file',type='string',metavar='FILENAME',dest='fixup_header_lines',action='callback',callback=add_fixup_header_file,default=fixup_header_lines,help='C header snippet file(s) to be appended to generated header, useful for manual option fixups')
parser.add_option('--fixup-line',type='string',metavar='LINE',dest='fixup_header_lines',action='callback',callback=add_fixup_header_line,default=fixup_header_lines,help='C header fixup line to be appended to generated header (e.g. --fixup-line "#define DUK_USE_FASTINT")')
parser.add_option('--sanity-warning',dest='sanity_strict',action='store_false',default=True,help='emit a warning instead of #error for option sanity check issues')
parser.add_option('--use-cpp-warning',dest='use_cpp_warning',action='store_true',default=False,help='emit a (non-portable) #warning when appropriate')
parser.add_option('--rom-support',dest='rom_support',action='store_true',help='Deprecated, use prepare_sources.py instead')
parser.add_option('--rom-auto-lightfunc',dest='rom_auto_lightfunc',action='store_true',default=False,help='Deprecated, use prepare_sources.py instead')
parser.add_option('--user-builtin-metadata',dest='user_builtin_metadata',action='append',default=[],help='Deprecated, use prepare_sources.py instead')