meson.build 809 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Convenience library for the duplicated logging functionality
  2. common_sources = [
  3. 'logging.c',
  4. ]
  5. daemon_common = static_library(
  6. 'daemon-common',
  7. sources: common_sources,
  8. install: false,
  9. )
  10. link_daemon_common = declare_dependency(
  11. link_with: daemon_common,
  12. )
  13. # Main daemon
  14. daemon_sources = [
  15. 'main.c',
  16. 'gamemode.c',
  17. 'daemonize.c',
  18. 'dbus_messaging.c',
  19. 'governors.c',
  20. ]
  21. executable(
  22. 'gamemoded',
  23. sources: daemon_sources,
  24. dependencies: [
  25. link_daemon_common,
  26. dep_systemd,
  27. ],
  28. install: true,
  29. )
  30. # Small target util to get and set cpu governors
  31. cpugovctl_sources = [
  32. 'cpugovctl.c',
  33. ]
  34. cpugovctl = executable(
  35. 'cpugovctl',
  36. sources: cpugovctl_sources,
  37. dependencies: [
  38. link_daemon_common,
  39. ],
  40. install: true,
  41. )