lib.pri 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. INCLUDEPATH += $$PWD
  2. FFMPEG_BRANCH_NAME="V4.3.1"
  3. SDL2_BRANCH_NAME="V2.0.2"
  4. win32{
  5. message("current platform: Windows ")
  6. FFMPEG_BRANCH_NAME="V4.3.1-windows"
  7. SDL2_BRANCH_NAME="V2.0.2-windows"
  8. }
  9. unix{
  10. message("current platform: Linux ")
  11. FFMPEG_BRANCH_NAME="V4.3.1-linux"
  12. SDL2_BRANCH_NAME="V2.0.12-linux"
  13. }
  14. #自动下载ffmpeg库文件
  15. FILE_TO_CHECK=$$PWD/ffmpeg
  16. !exists($$FILE_TO_CHECK) {
  17. message("File $$FILE_TO_CHECK does not exist. Cloning from Git repository...")
  18. system(git clone https://gitee.com/devlib/ffmpeg-dev.git ffmpeg -b $$FFMPEG_BRANCH_NAME)
  19. } else {
  20. message("File $$FILE_TO_CHECK exists.")
  21. }
  22. #自动下载SDL库文件
  23. FILE_TO_CHECK=$$PWD/SDL2
  24. !exists($$FILE_TO_CHECK) {
  25. message("File $$FILE_TO_CHECK does not exist. Cloning from Git repository...")
  26. system(git clone https://gitee.com/devlib/SDL2-dev.git SDL2 -b $$SDL2_BRANCH_NAME)
  27. } else {
  28. message("File $$FILE_TO_CHECK exists.")
  29. }
  30. include($$PWD/ffmpeg/ffmpeg.pri)
  31. include($$PWD/SDL2/SDL2.pri)