meson.build 945 B

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