Skip to content

Commit

Permalink
Modify make debug
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Oct 17, 2018
1 parent 1f9d843 commit 058eb5a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ThirdLibrary
18 changes: 9 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ environment:
matrix:

##### vs2017 #####
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILD_TARGERT: windows_msvc
RABBIT_TOOLCHAIN_VERSION: 15
QT_ROOT: C:/Qt/5.10/msvc2017_64
RABBIT_CONFIG: Debug
RABBIT_ARCH: x64
DOWNLOAD_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.0.5/RABBIT_windows_msvc15_x64_qt5.10.1_Debug_v0.0.5.zip

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILD_TARGERT: windows_msvc
RABBIT_TOOLCHAIN_VERSION: 15
Expand All @@ -25,14 +33,6 @@ environment:
RABBIT_ARCH: x64
DOWNLOAD_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.0.5/RABBIT_windows_msvc15_x64_qt5.9.5_Release_v0.0.5.zip

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILD_TARGERT: windows_msvc
RABBIT_TOOLCHAIN_VERSION: 15
QT_ROOT: C:/Qt/5.10/msvc2017_64
RABBIT_CONFIG: Debug
RABBIT_ARCH: x64
DOWNLOAD_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.0.5/RABBIT_windows_msvc15_x64_qt5.10.1_Debug_v0.0.5.zip

##### vs2015 #####
- BUILD_TARGERT: windows_msvc
RABBIT_TOOLCHAIN_VERSION: 14
Expand Down Expand Up @@ -88,7 +88,7 @@ environment:
QT_ROOT: C:/Qt/5.6/msvc2015
RABBIT_CONFIG: Release
RABBIT_ARCH: x86
DOWNLOAD_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.0.5/RABBIT_windows_msvc14_x64_qt5.6.3_Release_v0.0.5.zip
DOWNLOAD_URL: https://github.com/KangLin/RabbitThirdLibrary/releases/download/v0.0.5/RABBIT_windows_msvc14_x86_qt5.6.3_Release_v0.0.5.zip

##### vs013 #####
- BUILD_TARGERT: windows_msvc
Expand Down
18 changes: 11 additions & 7 deletions pri/ThirdLibrary.pri
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ equals(RABBITIM_USE_QXMPP, 1) {
}else : msvc {
LIBS += -lqxmpp_d0
}
} else {
}
CONFIG(release, debug|release) {
myPackagesExist(qxmpp) {
MYPKGCONFIG *= qxmpp
} else : msvc {
Expand Down Expand Up @@ -90,16 +91,19 @@ equals(QXMPP_USE_VPX, 1) {
}
}

myPackagesExist(libqrencode) {
msvc {
DEFINES *= RABBITIM_USE_LIBQRENCODE
MYPKGCONFIG *= libqrencode
} else : msvc {
DEFINES *= RABBITIM_USE_LIBQRENCODE
CONFIG(debug, debug|release){
CONFIG(debug, debug|release) {
LIBS *= -lqrencoded
} else {
}
CONFIG(release, debug|release) {
LIBS += -lqrencode
}
} else {
myPackagesExist(libqrencode) {
DEFINES *= RABBITIM_USE_LIBQRENCODE
MYPKGCONFIG *= libqrencode
}
}

myPackagesExist(QZXing) {
Expand Down
2 changes: 1 addition & 1 deletion pri/ThirdLibraryConfig.pri
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ defineTest(myPackagesExist) {
for(package, ARGS) {
!system($$pkg_config --exists $$package) {
!msvc : message("Warring: package $$package is not exist. ")
mingw | equals(QMAKE_HOST.os, Windows) : message("Be sure use pkg-config in mingw32?")
mingw | equals(QMAKE_HOST.os, Windows) : message("Warring: package $$package is not exist. Be sure use pkg-config in mingw32?")
return(false)
}
}
Expand Down

0 comments on commit 058eb5a

Please sign in to comment.