meson.build 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. libdl,
  32. ],
  33. include_directories: [
  34. config_h_dir,
  35. libgamemode_includes,
  36. ],
  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. )