meson.build 1.1 KB

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