meson.build 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. 'daemonize.c',
  19. 'dbus_messaging.c',
  20. 'governors.c',
  21. 'daemon_config.c',
  22. ]
  23. executable(
  24. 'gamemoded',
  25. sources: daemon_sources,
  26. dependencies: [
  27. link_daemon_common,
  28. dep_threads,
  29. dep_systemd,
  30. inih_dependency,
  31. ],
  32. include_directories: [
  33. config_h_dir,
  34. ],
  35. install: true,
  36. )
  37. # Small target util to get and set cpu governors
  38. cpugovctl_sources = [
  39. 'cpugovctl.c',
  40. ]
  41. cpugovctl = executable(
  42. 'cpugovctl',
  43. sources: cpugovctl_sources,
  44. dependencies: [
  45. link_daemon_common,
  46. ],
  47. install: true,
  48. install_dir: path_libexecdir,
  49. )