meson.build 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. bench_env = environment()
  2. bench_env.set('top_srcdir', meson.project_source_root())
  3. benchmark(
  4. 'key-proc',
  5. executable('key-proc', 'key-proc.c', dependencies: test_dep),
  6. env: bench_env,
  7. )
  8. benchmark(
  9. 'keysym-case-mappings',
  10. executable(
  11. 'keysym-case-mappings',
  12. 'keysym-case-mappings.c',
  13. dependencies: test_dep,
  14. c_args: ['-DENABLE_PRIVATE_APIS'],
  15. ),
  16. )
  17. benchmark(
  18. 'rulescomp',
  19. executable('rulescomp', 'rulescomp.c', dependencies: test_dep),
  20. env: bench_env,
  21. )
  22. if cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE')
  23. benchmark(
  24. 'rules',
  25. executable('rules', 'rules.c', dependencies: test_dep),
  26. env: bench_env,
  27. )
  28. benchmark(
  29. 'compile-keymap',
  30. executable(
  31. 'compile-keymap',
  32. 'compile-keymap.c',
  33. dependencies: test_dep,
  34. ),
  35. env: bench_env,
  36. )
  37. benchmark(
  38. 'dump-keymap',
  39. executable(
  40. 'dump-keymap',
  41. 'compile-keymap.c',
  42. dependencies: test_dep,
  43. c_args: ['-DKEYMAP_DUMP'],
  44. ),
  45. env: bench_env,
  46. )
  47. benchmark(
  48. 'custom-parsers',
  49. executable(
  50. 'custom-parsers',
  51. 'custom-parsers.c',
  52. dependencies: test_dep,
  53. ),
  54. env: bench_env,
  55. )
  56. endif
  57. benchmark(
  58. 'compose',
  59. executable('compose', 'compose.c', dependencies: test_dep),
  60. env: bench_env,
  61. )
  62. benchmark(
  63. 'compose-traversal',
  64. executable(
  65. 'compose-traversal',
  66. 'compose-traversal.c',
  67. dependencies: test_dep,
  68. ),
  69. env: bench_env,
  70. )
  71. benchmark(
  72. 'atom',
  73. executable('atom', 'atom.c', dependencies: test_dep),
  74. env: bench_env,
  75. )
  76. if get_option('enable-x11')
  77. benchmark(
  78. 'x11',
  79. executable('x11', 'x11.c', dependencies: x11_test_dep),
  80. env: bench_env,
  81. )
  82. endif