meson.build 825 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Convenience library for the duplicated logging functionality
  2. common_sources = [
  3. 'common-logging.c',
  4. 'common-governors.c',
  5. 'common-external.c',
  6. 'common-helpers.c',
  7. 'common-gpu.c',
  8. 'common-pidfds.c',
  9. 'common-power.c',
  10. ]
  11. daemon_common = static_library(
  12. 'daemon-common',
  13. sources: common_sources,
  14. install: false,
  15. include_directories: [config_h_dir]
  16. )
  17. link_daemon_common = declare_dependency(
  18. link_with: daemon_common,
  19. include_directories: [include_directories('.')]
  20. )
  21. lib_common = static_library(
  22. 'lib-common',
  23. sources: [
  24. 'common-helpers.c',
  25. 'common-pidfds.c'
  26. ],
  27. install: false,
  28. include_directories: [config_h_dir]
  29. )
  30. link_lib_common = declare_dependency(
  31. link_with: lib_common,
  32. include_directories: [include_directories('.')]
  33. )