Lines Matching +full:set +full:- +full:env
19 '-fno-strict-aliasing',
20 '-fsanitize-undefined-trap-on-error',
21 '-Wno-unused-parameter',
22 '-Wno-missing-field-initializers',
23 '-Wpointer-arith',
24 '-Wmissing-declarations',
25 '-Wformat=2',
26 '-Wstrict-prototypes',
27 '-Wmissing-prototypes',
28 '-Wnested-externs',
29 '-Wbad-function-cast',
30 '-Wshadow',
31 '-Wlogical-op',
32 '-Wdate-time',
33 '-Wwrite-strings',
34 '-Wno-documentation-deprecated-sync',
40 XKBCONFIGROOT = get_option('xkb-config-root')
42 xkeyboard_config_dep = dependency('xkeyboard-config', required: false)
50 XKBCONFIGEXTRAPATH = get_option('xkb-config-extra-path')
56 XLOCALEDIR = get_option('x-locale-root')
64 configh_data.set('EXIT_INVALID_USAGE', '2')
68 # beyond the base POSIX function set.
74 configh_data.set(system_extensions, 1)
79 configh_data.set_quoted('DEFAULT_XKB_RULES', get_option('default-rules'))
80 configh_data.set_quoted('DEFAULT_XKB_MODEL', get_option('default-model'))
81 configh_data.set_quoted('DEFAULT_XKB_LAYOUT', get_option('default-layout'))
82 if get_option('default-variant') != ''
83 configh_data.set_quoted('DEFAULT_XKB_VARIANT', get_option('default-variant'))
85 configh_data.set('DEFAULT_XKB_VARIANT', 'NULL')
87 if get_option('default-options') != ''
88 configh_data.set_quoted('DEFAULT_XKB_OPTIONS', get_option('default-options'))
90 configh_data.set('DEFAULT_XKB_OPTIONS', 'NULL')
93 configh_data.set('HAVE_UNISTD_H', 1)
96 configh_data.set('HAVE___BUILTIN_EXPECT', 1)
99 configh_data.set('HAVE_EACCESS', 1)
102 configh_data.set('HAVE_EUIDACCESS', 1)
105 configh_data.set('HAVE_MMAP', 1)
108 configh_data.set('HAVE_MKOSTEMP', 1)
111 configh_data.set('HAVE_POSIX_FALLOCATE', 1)
114 configh_data.set('HAVE_STRNDUP', 1)
117 configh_data.set('HAVE_ASPRINTF', 1)
119 configh_data.set('HAVE_VASPRINTF', 1)
122 configh_data.set('HAVE_SECURE_GETENV', 1)
124 configh_data.set('HAVE___SECURE_GETENV', 1)
132 …# see https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limi…
133 configh_data.set('PATH_MAX', 260)
135 configh_data.set('PATH_MAX', 4096)
141 # https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4…
142 configh_data.set('_CRT_SECURE_NO_WARNINGS', 1)
143 configh_data.set('_CRT_NONSTDC_NO_WARNINGS', 1)
144 configh_data.set('_CRT_NONSTDC_NO_DEPRECATE', 1)
146 configh_data.set('WIN32_LEAN_AND_MEAN', 1)
148 # Supports -Wl,--version-script?
151 args: '-Wl,--version-script=' + meson.source_root()/'xkbcommon.map',
152 name: '-Wl,--version-script',
164 arguments: ['--defines=@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
172 arguments: ['-H', '@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
189 'src/xkbcomp/ast-build.c',
190 'src/xkbcomp/ast-build.h',
198 'src/xkbcomp/keymap-dump.c',
201 'src/xkbcomp/parser-priv.h',
210 'src/xkbcomp/xkbcomp-priv.h',
215 'src/context-priv.c',
219 'src/keysym-utf.c',
223 'src/keymap-priv.c',
224 'src/scanner-utils.h',
235 libxkbcommon_link_args += '-Wl,--version-script=' + meson.source_root()/'xkbcommon.map'
250 'xkbcommon/xkbcommon-compat.h',
251 'xkbcommon/xkbcommon-compose.h',
252 'xkbcommon/xkbcommon-keysyms.h',
253 'xkbcommon/xkbcommon-names.h',
268 # libxkbcommon-x11.
269 if get_option('enable-x11')
271 xcb_xkb_dep = dependency('xcb-xkb', version: '>=1.10', required: false)
273 error('''X11 support requires xcb-xkb >= 1.10 which was not found.
274 You can disable X11 support with -Denable-x11=false.''')
281 'src/x11/x11-priv.h',
283 'src/context-priv.c',
285 'src/keymap-priv.c',
291 … libxkbcommon_x11_link_args += '-Wl,--version-script=' + meson.source_root()/'xkbcommon-x11.map'
294 'xkbcommon-x11',
295 'xkbcommon/xkbcommon-x11.h',
298 link_depends: 'xkbcommon-x11.map',
310 'xkbcommon/xkbcommon-x11.h',
318 name: 'xkbcommon-x11',
319 filebase: 'xkbcommon-x11',
321 description: 'XKB API common to servers and clients - X11 support',
323 requires_private: ['xcb>=1.10', 'xcb-xkb>=1.10'],
328 if get_option('enable-xkbregistry')
329 dep_libxml = dependency('libxml-2.0')
335 'src/util-list.h',
336 'src/util-list.c',
340 libxkbregistry_link_args += '-Wl,--version-script=' + meson.source_root()/'xkbregistry.map'
378 'tools-internal',
379 'tools/tools-common.h',
380 'tools/tools-common.c',
392 executable('xkbcli-compile-keymap',
393 'tools/compile-keymap.c',
397 install_man('tools/xkbcli-compile-keymap.1')
399 executable('compile-keymap',
400 'tools/compile-keymap.c',
403 c_args: ['-DENABLE_PRIVATE_APIS'],
407 executable('xkbcli-how-to-type',
408 'tools/how-to-type.c',
412 install_man('tools/xkbcli-how-to-type.1')
415 executable('xkbcli-interactive-evdev',
416 'tools/interactive-evdev.c',
421 install_man('tools/xkbcli-interactive-evdev.1')
423 if get_option('enable-x11')
432 executable('xkbcli-interactive-x11',
433 'tools/interactive-x11.c',
437 install_man('tools/xkbcli-interactive-x11.1')
440 if get_option('enable-wayland')
441 wayland_client_dep = dependency('wayland-client', version: '>=1.2.0', required: false)
442 wayland_protocols_dep = dependency('wayland-protocols', version: '>=1.12', required: false)
443 wayland_scanner_dep = dependency('wayland-scanner', required: false, native: true)
445 …error('''The Wayland xkbcli programs require wayland-client >= 1.2.0, wayland-protocols >= 1.7 whi…
446 You can disable the Wayland xkbcli programs with -Denable-wayland=false.''')
452 output: '@BASENAME@-protocol.c',
457 output: '@BASENAME@-client-protocol.h',
458 arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
461 xdg_shell_xml = wayland_protocols_datadir/'stable/xdg-shell/xdg-shell.xml'
466 executable('xkbcli-interactive-wayland',
467 'tools/interactive-wayland.c',
472 install_man('tools/xkbcli-interactive-wayland.1')
476 if get_option('enable-xkbregistry')
478 executable('xkbcli-list',
479 'tools/registry-list.c',
483 install_man('tools/xkbcli-list.1')
488 # xkeyboard-config "verifier"
490 xkct_config.set('MESON_BUILD_ROOT', meson.build_root())
491 xkct_config.set('XKB_CONFIG_ROOT', XKBCONFIGROOT)
492 configure_file(input: 'test/xkeyboard-config-test.py.in',
493 output: 'xkeyboard-config-test',
498 test_env.set('XKB_LOG_LEVEL', 'debug')
499 test_env.set('XKB_LOG_VERBOSITY', '10')
500 test_env.set('top_srcdir', meson.source_root())
501 test_env.set('top_builddir', meson.build_root())
502 test_env.set('HAVE_XKBCLI_INTERACTIVE_EVDEV', configh_data.get('HAVE_XKBCLI_INTERACTIVE_EVDEV', 0).…
503 test_env.set('HAVE_XKBCLI_INTERACTIVE_WAYLAND', configh_data.get('HAVE_XKBCLI_INTERACTIVE_WAYLAND',…
504 test_env.set('HAVE_XKBCLI_INTERACTIVE_X11', configh_data.get('HAVE_XKBCLI_INTERACTIVE_X11', 0).to_s…
505 test_env.set('HAVE_XKBCLI_LIST', configh_data.get('HAVE_XKBCLI_LIST', 0).to_string())
509 configure_file(output: 'test-config.h', configuration: test_configh_data)
514 'xkbcommon-test-internal',
517 'test/evdev-scancodes.h',
527 if get_option('enable-x11')
529 'xkbcommon-x11-internal',
549 executable('test-keysym', 'test/keysym.c', dependencies: test_dep),
550 env: test_env,
554 executable('test-keymap', 'test/keymap.c', dependencies: test_dep),
555 env: test_env,
559 executable('test-filecomp', 'test/filecomp.c', dependencies: test_dep),
560 env: test_env,
566 executable('test-context', 'test/context.c', dependencies: test_dep),
567 env: test_env,
571 'rules-file',
572 executable('test-rules-file', 'test/rules-file.c', dependencies: test_dep),
573 env: test_env,
576 'rules-file-includes',
577 executable('test-rules-file-includes', 'test/rules-file-includes.c', dependencies: test_dep),
578 env: test_env,
582 executable('test-stringcomp', 'test/stringcomp.c', dependencies: test_dep),
583 env: test_env,
587 executable('test-buffercomp', 'test/buffercomp.c', dependencies: test_dep),
588 env: test_env,
592 executable('test-log', 'test/log.c', dependencies: test_dep),
593 env: test_env,
597 executable('test-atom', 'test/atom.c', dependencies: test_dep),
598 env: test_env,
602 executable('test-utf8', 'test/utf8.c', dependencies: test_dep),
603 env: test_env,
607 executable('test-state', 'test/state.c', dependencies: test_dep),
608 env: test_env,
612 executable('test-keyseq', 'test/keyseq.c', dependencies: test_dep),
613 env: test_env,
617 executable('test-rulescomp', 'test/rulescomp.c', dependencies: test_dep),
618 env: test_env,
622 executable('test-compose', 'test/compose.c', dependencies: test_dep),
623 env: test_env,
627 executable('test-utils', 'test/utils.c', dependencies: test_dep),
628 env: test_env,
631 'symbols-leak-test',
632 find_program('test/symbols-leak-test.py'),
633 env: test_env,
634 suite: ['python-tests'],
636 if get_option('enable-x11')
639 executable('test-x11', 'test/x11.c', dependencies: x11_test_dep),
640 env: test_env,
644 executable('test-x11comp', 'test/x11comp.c', dependencies: x11_test_dep)
646 if get_option('enable-xkbregistry')
649 executable('test-registry', 'test/registry.c',
652 env: test_env,
656 test('tool-option-parsing',
657 find_program('test/tool-option-parsing.py'),
658 env: test_env,
659 suite: ['python-tests'])
666 '--leak-check=full',
667 '--track-origins=yes',
668 '--gen-suppressions=all',
669 '--error-exitcode=99'],
677 executable('fuzz-keymap', 'fuzz/keymap/target.c', dependencies: test_dep)
678 executable('fuzz-compose', 'fuzz/compose/target.c', dependencies: test_dep)
683 bench_env.set('top_srcdir', meson.source_root())
685 'key-proc',
686 executable('bench-key-proc', 'bench/key-proc.c', dependencies: test_dep),
687 env: bench_env,
691 executable('bench-rules', 'bench/rules.c', dependencies: test_dep),
692 env: bench_env,
696 executable('bench-rulescomp', 'bench/rulescomp.c', dependencies: test_dep),
697 env: bench_env,
701 executable('bench-compose', 'bench/compose.c', dependencies: test_dep),
702 env: bench_env,
704 if get_option('enable-x11')
707 executable('bench-x11', 'bench/x11.c', dependencies: x11_test_dep),
708 env: bench_env,
714 if get_option('enable-docs')
718 You can disable the documentation with -Denable-docs=false.''')
720 doxygen_wrapper = find_program('scripts/doxygen-wrapper')
724 'doc/doxygen-extra.css',
725 'doc/quick-guide.md',
727 'doc/user-configuration.md',
728 'doc/rules-format.md',
730 'xkbcommon/xkbcommon-names.h',
731 'xkbcommon/xkbcommon-x11.h',
732 'xkbcommon/xkbcommon-compose.h',
736 doxygen_data.set('PACKAGE_NAME', meson.project_name())
737 doxygen_data.set('PACKAGE_VERSION', meson.project_version())
738 doxygen_data.set('INPUT', ' '.join(doxygen_input))
739 doxygen_data.set('OUTPUT_DIRECTORY', meson.build_root())