1
0

meson.build 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Main client library to message the daemon
  2. gamemode = shared_library(
  3. 'gamemode',
  4. sources: [
  5. 'client_impl.c',
  6. ],
  7. dependencies: [
  8. dep_systemd,
  9. ],
  10. install: true,
  11. )
  12. libgamemode_includes = [
  13. include_directories('.'),
  14. ]
  15. # Small library to automatically use gamemode
  16. gamemodeauto = shared_library(
  17. 'gamemodeauto',
  18. sources: [
  19. 'client_loader.c',
  20. ],
  21. dependencies: [
  22. libdl,
  23. ],
  24. install: true,
  25. )
  26. # Install the gamemode_client header
  27. gamemode_headers = [
  28. 'gamemode_client.h',
  29. ]
  30. install_headers(gamemode_headers)
  31. # Generate a pkg-config files
  32. pkg = import('pkgconfig')
  33. desc = 'GameMode temporarily applies game specific optimisations to the host OS.'
  34. pkg.generate(
  35. name: 'gamemode',
  36. description: desc,
  37. filebase: 'gamemode',
  38. version: meson.project_version(),
  39. libraries: [
  40. libdl
  41. ],
  42. )
  43. pkg.generate(
  44. name: 'gamemode',
  45. description: desc,
  46. filebase: 'gamemode-auto',
  47. libraries: gamemodeauto,
  48. version: meson.project_version(),
  49. libraries_private: [
  50. libdl
  51. ],
  52. )