xmake.lua 866 B

12345678910111213141516171819202122232425262728293031323334353637
  1. -- Video Capturer 子模块配置
  2. -- 此文件被 capturer 模块通过 includes("video") 引入
  3. -- Video Capturer 库
  4. target("video_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("wgc/*.cpp")
  12. -- 头文件
  13. add_headerfiles("*.h")
  14. add_headerfiles("wgc/*.h")
  15. -- 包含目录
  16. add_includedirs("../../", { public = true })
  17. add_includedirs(".", { public = true })
  18. add_includedirs("wgc", { public = true })
  19. add_includedirs("../../basic", { public = true })
  20. -- FFmpeg 配置
  21. add_ffmpeg_config()
  22. -- Windows 特定链接库
  23. if is_plat("windows") then
  24. add_syslinks("d3d11", "dxgi", "user32", "gdi32")
  25. add_syslinks("ole32", "oleaut32", "windowsapp")
  26. add_syslinks("dwmapi", "shcore")
  27. end
  28. add_frameworks("QtCore", "QtGui", "QtWidgets", "QtNetwork")
  29. target_end()