meson.build 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Convenience library for the duplicated logging functionality
  2. common_sources = [
  3. 'logging.c',
  4. 'governors-query.c',
  5. ]
  6. daemon_common = static_library(
  7. 'daemon-common',
  8. sources: common_sources,
  9. install: false,
  10. )
  11. link_daemon_common = declare_dependency(
  12. link_with: daemon_common,
  13. )
  14. # Main daemon
  15. daemon_sources = [
  16. 'main.c',
  17. 'gamemode.c',
  18. 'gamemode-proc.c',
  19. 'daemonize.c',
  20. 'dbus_messaging.c',
  21. 'governors.c',
  22. 'daemon_config.c',
  23. ]
  24. gamemoded_includes = libgamemode_includes
  25. gamemoded_includes += config_h_dir
  26. executable(
  27. 'gamemoded',
  28. sources: daemon_sources,
  29. dependencies: [
  30. link_daemon_common,
  31. dep_threads,
  32. dep_systemd,
  33. inih_dependency,
  34. libdl,
  35. ],
  36. include_directories: gamemoded_includes,
  37. install: true,
  38. )
  39. # Small target util to get and set cpu governors
  40. cpugovctl_sources = [
  41. 'cpugovctl.c',
  42. ]
  43. cpugovctl = executable(
  44. 'cpugovctl',
  45. sources: cpugovctl_sources,
  46. dependencies: [
  47. link_daemon_common,
  48. ],
  49. install: true,
  50. install_dir: path_libexecdir,
  51. )