* Add conan support

* Windows Qbs port using conan

* Correct QT_INSTALL_DIRECTORY define

* Correct QT_INSTALL_DIRECTORY define, again
This commit is contained in:
raphaelcotty
2021-12-13 12:04:18 +01:00
committed by GitHub
parent f355fe545b
commit 75d40806ed
12 changed files with 92 additions and 27 deletions

View File

@ -1,3 +1,5 @@
import qbs.Utilities
Pdf4QtLibrary {
name: "Pdf4QtViewer"
files: [
@ -7,12 +9,22 @@ Pdf4QtLibrary {
"pdf4qtviewer.qrc",
]
cpp.includePaths: ["."]
cpp.defines: ['QT_INSTALL_DIRECTORY=""']
Properties {
condition: qbs.hostOS.contains("windows")
cpp.defines: ["PDF4QTVIEWER_LIBRARY", "QT_INSTALL_DIRECTORY=" + Utilities.cStringQuote(Qt.core.binPath)]
}
Properties {
condition: qbs.hostOS.contains("linux")
cpp.defines: ["QT_INSTALL_DIRECTORY=" + Utilities.cStringQuote(Qt.core.binPath)]
}
cpp.defines: base.concat(["QT_INSTALL_DIRECTORY=" + Utilities.cStringQuote(Qt.core.binPath)])
Depends { name: "Qt"; submodules: ["printsupport", "texttospeech", "network", "xml"] }
Depends { name: "Qt.winextras"; condition: qbs.hostOS.contains("windows") }
Depends { name: "Pdf4QtLib" }
Export {
Depends { name: "cpp" }
cpp.includePaths: ["."]
Depends { name: "Pdf4QtLib" }
Depends { name: "Qt.winextras"; condition: qbs.hostOS.contains("windows") }
}
}