meson.build 895 B

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