mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Conan (#7)
* Add conan support * Windows Qbs port using conan * Correct QT_INSTALL_DIRECTORY define * Correct QT_INSTALL_DIRECTORY define, again
This commit is contained in:
@ -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") }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user