VideoPlayer.pro 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2016-09-01T16:10:47
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = VideoPlayer
  9. TEMPLATE = app
  10. SOURCES += src/main.cpp \
  11. src/videoplayer/videoplayer_thread.cpp \
  12. src/videoplayer/videoplayer.cpp \
  13. src/videoplayer/videoplayer_showvideowidget.cpp \
  14. src/videoplayer/widget/VideoSlider.cpp
  15. HEADERS += \
  16. src/videoplayer/videoplayer_thread.h \
  17. src/videoplayer/videoplayer.h \
  18. src/videoplayer/videoplayer_showvideowidget.h \
  19. src/videoplayer/widget/VideoSlider.h
  20. FORMS += \
  21. src/videoplayer/videoplayer.ui \
  22. src/videoplayer/videoplayer_showvideowidget.ui
  23. INCLUDEPATH += $$PWD/ffmpeg/include \
  24. $$PWD/SDL2/include \
  25. $$PWD/src
  26. #LIBS += $$PWD/ffmpeg/lib/avcodec.lib \
  27. # $$PWD/ffmpeg/lib/avdevice.lib \
  28. # $$PWD/ffmpeg/lib/avfilter.lib \
  29. # $$PWD/ffmpeg/lib/avformat.lib \
  30. # $$PWD/ffmpeg/lib/avutil.lib \
  31. # $$PWD/ffmpeg/lib/postproc.lib \
  32. # $$PWD/ffmpeg/lib/swresample.lib \
  33. # $$PWD/ffmpeg/lib/swscale.lib \
  34. # $$PWD/SDL2/lib/x86/SDL2.lib
  35. LIBS += -L$$PWD/ffmpeg/lib -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc -lswresample -lswscale
  36. LIBS += -L$$PWD/SDL2/lib/x86 -lSDL2
  37. RESOURCES += \
  38. resources.qrc
  39. win32:RC_FILE=$$PWD/main.rc