From b542294f54d21607e303131afff8524b70010fbe Mon Sep 17 00:00:00 2001 From: rankun Date: Fri, 23 Nov 2018 21:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dmac?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/QtScrcpy.pro | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/QtScrcpy/QtScrcpy.pro b/QtScrcpy/QtScrcpy.pro index 7efc4e8..bb15448 100644 --- a/QtScrcpy/QtScrcpy.pro +++ b/QtScrcpy/QtScrcpy.pro @@ -83,15 +83,23 @@ INCLUDEPATH += \ # *********************************************************** # 依赖模块 # *********************************************************** -LIBS += \ - -L$$PWD/../third_party/ffmpeg/lib -lavcodec \ - -L$$PWD/../third_party/ffmpeg/lib -lavformat \ - -L$$PWD/../third_party/ffmpeg/lib -lavutil \ - -L$$PWD/../third_party/ffmpeg/lib -lswscale - # Win平台下依赖模块 win32 { - LIBS += -lUser32 + LIBS += \ + -L$$PWD/../third_party/ffmpeg/lib -lavcodec \ + -L$$PWD/../third_party/ffmpeg/lib -lavformat \ + -L$$PWD/../third_party/ffmpeg/lib -lavutil \ + -L$$PWD/../third_party/ffmpeg/lib -lswscale \ + -lUser32 +} + +# mac平台下依赖模块 +macos { + LIBS += \ + -L$$PWD/../third_party/ffmpeg/lib -lavcodec.58 \ + -L$$PWD/../third_party/ffmpeg/lib -lavformat.58 \ + -L$$PWD/../third_party/ffmpeg/lib -lavutil.56 \ + -L$$PWD/../third_party/ffmpeg/lib -lswscale.5 } RESOURCES += \