xmake.lua 807 B

1234567891011121314151617181920212223242526272829303132
  1. -- Audio Capturer 子模块配置
  2. -- 此文件被 capturer 模块通过 includes("audio") 引入
  3. -- Audio Capturer 库
  4. target("audio_capturer")
  5. add_rules("qt.static")
  6. if is_plat("windows") then
  7. add_defines("UNICODE", "_UNICODE")
  8. end
  9. -- 源文件
  10. add_files("*.cpp")
  11. add_files("*.h")
  12. -- 头文件
  13. add_headerfiles("*.h")
  14. -- 包含目录
  15. add_includedirs("../..", {public = true})
  16. add_includedirs(".", {public = true})
  17. -- Qt 配置
  18. -- FFmpeg 配置
  19. add_ffmpeg_config()
  20. -- Windows 特定链接库
  21. if is_plat("windows") then
  22. add_syslinks("winmm", "ole32", "oleaut32")
  23. add_syslinks("user32", "advapi32")
  24. end
  25. add_frameworks("QtCore", "QtGui", "QtWidgets", "QtNetwork", "QtMultimedia")
  26. target_end()