Merge branch 'master' of github.com:barry-ran/QtScrcpy

This commit is contained in:
rankun 2019-07-12 18:31:45 +08:00
commit 2f35529b47

View file

@ -22,7 +22,10 @@ DEFINES += QT_DEPRECATED_WARNINGS
# In order to do so, uncomment the following line. # In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt. # You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
msvc{
QMAKE_CFLAGS += -source-charset:utf-8
QMAKE_CXXFLAGS += -source-charset:utf-8
}
# 源码 # 源码
SOURCES += \ SOURCES += \
main.cpp \ main.cpp \
@ -58,24 +61,40 @@ INCLUDEPATH += \
# Win平台下配置 # Win平台下配置
# *********************************************************** # ***********************************************************
win32 { win32 {
# 输出目录 contains(QMAKE_TARGET.arch, x86_64) {
CONFIG(debug, debug|release) { message("x64")
DESTDIR = $$PWD/../output/win/debug # 输出目录
CONFIG(debug, debug|release) {
DESTDIR = $$PWD/../output/win-x64/debug
} else {
DESTDIR = $$PWD/../output/win-x64/release
}
# 依赖模块
LIBS += \
-L$$PWD/../third_party/ffmpeg/win64/lib -lavformat \
-L$$PWD/../third_party/ffmpeg/win64/lib -lavcodec \
-L$$PWD/../third_party/ffmpeg/win64/lib -lavutil \
-L$$PWD/../third_party/ffmpeg/win64/lib -lswscale
} else { } else {
DESTDIR = $$PWD/../output/win/release message("x86")
# 输出目录
CONFIG(debug, debug|release) {
DESTDIR = $$PWD/../output/win/debug
} else {
DESTDIR = $$PWD/../output/win/release
}
# 依赖模块
LIBS += \
-L$$PWD/../third_party/ffmpeg/lib -lavformat \
-L$$PWD/../third_party/ffmpeg/lib -lavcodec \
-L$$PWD/../third_party/ffmpeg/lib -lavutil \
-L$$PWD/../third_party/ffmpeg/lib -lswscale
} }
# 依赖模块
LIBS += \
-L$$PWD/../third_party/ffmpeg/lib -lavformat \
-L$$PWD/../third_party/ffmpeg/lib -lavcodec \
-L$$PWD/../third_party/ffmpeg/lib -lavutil \
-L$$PWD/../third_party/ffmpeg/lib -lswscale
# windows rc file # windows rc file
RC_FILE = $$PWD/res/QtScrcpy.rc RC_FILE = $$PWD/res/QtScrcpy.rc
} }
# *********************************************************** # ***********************************************************
# Mac平台下配置 # Mac平台下配置
# *********************************************************** # ***********************************************************