1
0

meson.build 1.2 KB

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