meson.build 513 B

12345678910111213141516171819202122232425262728293031323334
  1. libsodium = dependency('libsodium', version: '>= 1.0.11')
  2. macaroons_sources = [
  3. 'base64.c',
  4. 'base64.h',
  5. 'config.h',
  6. 'constants.h',
  7. 'custom-config.h',
  8. 'macaroons.c',
  9. 'macaroons.h',
  10. 'macaroons-inner.h',
  11. 'packet.c',
  12. 'packet.h',
  13. 'port.c',
  14. 'port.h',
  15. 'slice.c',
  16. 'slice.h',
  17. 'sysendian.h',
  18. 'v1.c',
  19. 'v1.h',
  20. 'v2.c',
  21. 'v2.h',
  22. 'varint.c',
  23. 'varint.h',
  24. ]
  25. cmacaroons_lib = static_library(
  26. 'libcmacaroons',
  27. macaroons_sources,
  28. dependencies : [ libsodium ],
  29. c_args : '-DHAVE_CONFIG_H',
  30. install : false
  31. )