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.

80 lines
1.6 KiB

  1. --- /dev/null
  2. +++ b/conf.h.meson
  3. @@ -0,0 +1 @@
  4. +#mesondefine HAVE_ALGORITHM
  5. --- /dev/null
  6. +++ b/meson.build
  7. @@ -0,0 +1,73 @@
  8. +project('bonnie++', 'cpp',
  9. + version : '2.00a',
  10. + default_options : [ 'cpp_std=c++11' ])
  11. +
  12. +cxx = meson.get_compiler('cpp')
  13. +cdata = configuration_data()
  14. +
  15. +cdata.set('HAVE_ALGORITHM', cxx.has_header('algorithm'))
  16. +
  17. +configure_file(input : 'conf.h.meson',
  18. + output : 'conf.h',
  19. + configuration : cdata)
  20. +
  21. +bonniepp_incdir = include_directories('.')
  22. +thread_dep = dependency('threads')
  23. +
  24. +add_global_arguments('-DHAVE_CONFIG_H', language : 'cpp')
  25. +
  26. +executable('bonnie++',
  27. + 'bonnie++.cpp',
  28. + 'bon_io.cpp',
  29. + 'bon_file.cpp',
  30. + 'bon_time.cpp',
  31. + 'semaphore.cpp',
  32. + 'sync.cpp',
  33. + 'thread.cpp',
  34. + 'bon_suid.cpp',
  35. + 'duration.cpp',
  36. + 'util.cpp',
  37. + 'rand.cpp',
  38. + install: true,
  39. + include_directories : bonniepp_incdir,
  40. + dependencies : thread_dep,
  41. +)
  42. +
  43. +executable('bon_csv2html',
  44. + 'bon_csv2html.cpp',
  45. + install: true,
  46. + include_directories : bonniepp_incdir,
  47. +)
  48. +
  49. +executable('zcav',
  50. + 'zcav.cpp',
  51. + 'thread.cpp',
  52. + 'zcav_io.cpp',
  53. + 'bon_suid.cpp',
  54. + 'duration.cpp',
  55. + install: true,
  56. + include_directories : bonniepp_incdir,
  57. + dependencies : [ thread_dep ]
  58. +)
  59. +
  60. +executable('getc_putc',
  61. + 'getc_putc.cpp',
  62. + 'bon_suid.cpp',
  63. + 'duration.cpp',
  64. + 'util.cpp',
  65. + install: true,
  66. + include_directories : bonniepp_incdir,
  67. +)
  68. +
  69. +executable('getc_putc_helper',
  70. + 'getc_putc_helper.cpp',
  71. + 'duration.cpp',
  72. + install: true,
  73. + include_directories : bonniepp_incdir,
  74. +)
  75. +
  76. +executable('generate_randfile',
  77. + 'generate_randfile.cpp',
  78. + install: true,
  79. + include_directories : bonniepp_incdir,
  80. +)