1
0

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