Lines Matching +full:- +full:- +full:root
5 # - duk_config.h with specific or autodetected platform, compiler, and
7 # - option documentation for Duktape 1.x feature options (DUK_OPT_xxx)
8 # - option documentation for Duktape 1.x/2.x config options (DUK_USE_xxx)
121 # in validate_platform_file()). Fill-ins provide missing optionals.
127 # in validate_architecture_file()). Fill-ins provide missing optionals.
133 # in validate_compiler_file()). Fill-ins provide missing optionals.
150 tmpdir = tempfile.mkdtemp(suffix='-genconfig')
153 if os.path.isdir(dirname) and '-genconfig' in dirname:
180 re_line_requires = re.compile(r'(DUK_[A-Z0-9_]+)') # uppercase only, don't match DUK_USE_xxx for e…
194 self.lines.append(line.encode('utf-8'))
210 # Careful with order, snippet may self-reference its own
223 len(m.group(1)) > 0 and m.group(1)[-1] != '_':
230 if len(m) > 0 and m[-1] == '_':
250 if line[-1] == '\n':
251 line = line[:-1]
255 sub_fn = os.path.normpath(os.path.join(filename, '..', '..', 'header-snippets', m.group(1)))
277 # information can be tracked. When non-C outputs are created, these will be
293 if len(lines) > 0 and lines[-1] == '\n':
294 lines = lines[:-1] # strip last newline to avoid empty line
370 # graph[A] = [ B, ... ] <-> B, ... provide something A requires.
426 # Figure out fill-ins by looking for snippets not in original
505 root, ext = os.path.splitext(fn)
506 if not root.startswith('DUK_USE_') or ext != '.yaml':
536 root, ext = os.path.splitext(fn)
537 if not root.startswith('DUK_OPT_') or ext != '.yaml':
621 # DUK_SETJMP, DUK_LONGJMP, DUK_JMPBUF_TYPE are optional, fill-in
632 # a fill-in will handle them. This is necessary because for
637 # e.g. define DUK_USE_ALIGN_BY -1
638 # define DUK_USE_BYTE_ORDER -1
691 if x > 0x7fffffff or x < -0x80000000:
693 elif x > 0x7fff or x < -0x8000:
700 x = x.encode('utf-8')
766 ret.rst_heading(dname, '-')
924 ret.line(' * customization. You of course cannot un-#include or un-typedef')
1027 # platform-specific definitions. Necessary dependencies (DUK_F_xxx) are
1032 # e.g. compiler-specific define count because there are a lot compiler
1035 ret = FileBuilder(base_dir=os.path.join(meta_dir, 'header-snippets'), \
1065 ret.line(' * - %s' % platf.get('name', platf.get('check')))
1072 ret.line(' * - %s' % arch.get('name', arch.get('check')))
1079 ret.line(' * - %s' % comp.get('name', comp.get('check')))
1094 # - Duktape 1.3 backwards compatible DUK_OPT_DLL_BUILD
1095 # - Genconfig --dll option
1147 ret.line('/* --- %s --- */' % platf.get('name', '???'))
1192 ret.line('/* --- %s --- */' % arch.get('name', '???'))
1231 ret.line('/* --- %s --- */' % comp.get('name', '???'))
1242 ret.snippet_absolute(os.path.join(meta_dir, 'helper-snippets', 'DUK_F_UCLIBC.h.in'))
1274 # or compiler before trying a fill-in.
1276 ret.chdr_block_heading('Fill-ins for platform, architecture, and compiler')
1339 # If manually-edited snippets don't #define or #undef a certain
1341 # fill-in for new config options not covered by manual snippets
1436 if line[-1] == '\n':
1437 line = line[:-1]
1441 'duk-config-header',
1442 'feature-documentation',
1443 'config-documentation'
1451 …parser.add_option('--metadata', dest='metadata', default=None, help='metadata directory or metadat…
1452 …parser.add_option('--output', dest='output', default=None, help='output filename for C header or R…
1453 …parser.add_option('--platform', dest='platform', default=None, help='platform (for "barebones-head…
1454 …parser.add_option('--compiler', dest='compiler', default=None, help='compiler (for "barebones-head…
1455 …parser.add_option('--architecture', dest='architecture', default=None, help='architecture (for "ba…
1456 …parser.add_option('--c99-types-only', dest='c99_types_only', action='store_true', default=False, h…
1457 …parser.add_option('--dll', dest='dll', action='store_true', default=False, help='dll build of Dukt…
1458 …parser.add_option('--support-feature-options', dest='support_feature_options', action='store_true'…
1459 …parser.add_option('--emit-legacy-feature-check', dest='emit_legacy_feature_check', action='store_t…
1460 …parser.add_option('--emit-config-sanity-check', dest='emit_config_sanity_check', action='store_tru…
1461 …parser.add_option('--omit-removed-config-options', dest='omit_removed_config_options', action='sto…
1462 …parser.add_option('--omit-deprecated-config-options', dest='omit_deprecated_config_options', actio…
1463 …parser.add_option('--omit-unused-config-options', dest='omit_unused_config_options', action='store…
1464 …parser.add_option('--add-active-defines-macro', dest='add_active_defines_macro', action='store_tru…
1465 …--define', type='string', dest='force_options_yaml', action='callback', callback=add_force_option_…
1466 …-D', type='string', dest='force_options_yaml', action='callback', callback=add_force_option_define…
1467 …--undefine', type='string', dest='force_options_yaml', action='callback', callback=add_force_optio…
1468 …-U', type='string', dest='force_options_yaml', action='callback', callback=add_force_option_undefi…
1469 …--option-yaml', type='string', dest='force_options_yaml', action='callback', callback=add_force_op…
1470 …parser.add_option('--option-file', type='string', dest='force_options_yaml', action='callback', ca…
1471 …parser.add_option('--fixup-file', type='string', dest='fixup_header_lines', action='callback', cal…
1472 …--fixup-line', type='string', dest='fixup_header_lines', action='callback', callback=add_fixup_hea…
1473 …parser.add_option('--sanity-warning', dest='sanity_strict', action='store_false', default=True, he…
1474 …parser.add_option('--use-cpp-warning', dest='use_cpp_warning', action='store_true', default=False,…
1475 …parser.add_option('--git-commit', dest='git_commit', default=None, help='git commit hash to be inc…
1476 …parser.add_option('--git-describe', dest='git_describe', default=None, help='git describe string t…
1477 …parser.add_option('--git-branch', dest='git_branch', default=None, help='git branch string to be i…
1484 elif os.path.isdir(os.path.join('.', 'config-options')):
1498 scan_helper_snippets(os.path.join(meta_dir, 'helper-snippets'))
1499 scan_use_defs(os.path.join(meta_dir, 'config-options'))
1500 scan_opt_defs(os.path.join(meta_dir, 'feature-options'))
1512 if cmd == 'autodetect-header':
1513 cmd = 'duk-config-header'
1514 if cmd == 'barebones-header':
1515 cmd = 'duk-config-header'
1517 if cmd == 'duk-config-header':
1525 elif cmd == 'feature-documentation':
1529 elif cmd == 'config-documentation':