1
0

meson.build 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Convenience library for the duplicated logging functionality
  2. common_sources = [
  3. 'logging.c',
  4. 'governors-query.c',
  5. 'external-helper.c',
  6. 'gpu-control.c',
  7. ]
  8. daemon_common = static_library(
  9. 'daemon-common',
  10. sources: common_sources,
  11. install: false,
  12. )
  13. link_daemon_common = declare_dependency(
  14. link_with: daemon_common,
  15. )
  16. # Main daemon
  17. daemon_sources = [
  18. 'main.c',
  19. 'gamemode.c',
  20. 'gamemode-env.c',
  21. 'gamemode-ioprio.c',
  22. 'gamemode-proc.c',
  23. 'gamemode-sched.c',
  24. 'gamemode-wine.c',
  25. 'gamemode-tests.c',
  26. 'gamemode-gpu.c',
  27. 'daemonize.c',
  28. 'dbus_messaging.c',
  29. 'daemon_config.c',
  30. 'helpers.c',
  31. ]
  32. gamemoded_includes = libgamemode_includes
  33. gamemoded_includes += config_h_dir
  34. executable(
  35. 'gamemoded',
  36. sources: daemon_sources,
  37. dependencies: [
  38. link_daemon_common,
  39. dep_threads,
  40. dep_systemd,
  41. inih_dependency,
  42. libdl,
  43. ],
  44. include_directories: gamemoded_includes,
  45. install: true,
  46. )
  47. # Small target util to get and set cpu governors
  48. cpugovctl_sources = [
  49. 'cpugovctl.c',
  50. ]
  51. cpugovctl = executable(
  52. 'cpugovctl',
  53. sources: cpugovctl_sources,
  54. dependencies: [
  55. link_daemon_common,
  56. ],
  57. install: true,
  58. install_dir: path_libexecdir,
  59. )
  60. # Small target util to get and set gpu clocks values
  61. gpuclockctl_sources = [
  62. 'gpuclockctl.c',
  63. ]
  64. gpuclockctl = executable(
  65. 'gpuclockctl',
  66. sources: gpuclockctl_sources,
  67. dependencies: [
  68. link_daemon_common,
  69. ],
  70. install: true,
  71. install_dir: path_libexecdir,
  72. )