meson.build 924 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # TODO We really only support Linux builds now but all our dependencies
  2. # support multiple platforms. Do proper platform detection and configuration
  3. project('gits-r-us', 'cpp', 'c')
  4. add_global_arguments(['-g3'], language : 'c')
  5. add_global_arguments(['-g3'], language : 'cpp')
  6. lib_includes = include_directories('lib')
  7. thirdparty_includes = include_directories('thirdparty')
  8. boost_dep = dependency('boost', modules : [
  9. 'thread',
  10. 'asio'
  11. ])
  12. libmicrohttpd_dep = dependency('libmicrohttpd', version: '>= 0.9.52')
  13. thread_dep = dependency('threads')
  14. libpqxx_dep = dependency('libpqxx')
  15. subdir('thirdparty')
  16. subdir('lib')
  17. src = [
  18. 'src/gits-r-us.cpp',
  19. ]
  20. exe = executable(
  21. 'gits-r-us',
  22. src,
  23. dependencies: [
  24. boost_dep,
  25. libmicrohttpd_dep,
  26. thread_dep,
  27. libpqxx_dep,
  28. ],
  29. link_with: [
  30. macaroons_lib,
  31. nanomsg_lib
  32. ],
  33. include_directories: [
  34. lib_includes,
  35. thirdparty_includes
  36. ],
  37. )
  38. test('simple test', exe)