diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-05-19 06:40:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 15:40:50 -0700 |
| commit | 764ed56a9fdfedcdac0a06fd3306d49e6660bdb6 (patch) | |
| tree | 31319ec6485a8e9e96fa219554a38f562c997221 | |
| parent | 2499107f4099721777973cf0fece85e7879e3b54 (diff) | |
| download | vcpkg-764ed56a9fdfedcdac0a06fd3306d49e6660bdb6.tar.gz vcpkg-764ed56a9fdfedcdac0a06fd3306d49e6660bdb6.zip | |
[qscintilla] Modify macro QSCINTILLA_DLL to 1 in qscintilla header (#17721)
* [qscintilla] Modify macro QSCINTILLA_DLL to 1 in qscintilla header when building dynamic on Windows
* Move code pos
* update version record
| -rw-r--r-- | ports/qscintilla/CONTROL | 5 | ||||
| -rw-r--r-- | ports/qscintilla/portfile.cmake | 7 | ||||
| -rw-r--r-- | ports/qscintilla/vcpkg.json | 22 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/q-/qscintilla.json | 5 |
5 files changed, 35 insertions, 6 deletions
diff --git a/ports/qscintilla/CONTROL b/ports/qscintilla/CONTROL deleted file mode 100644 index 2a4990eb0..000000000 --- a/ports/qscintilla/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: qscintilla -Version: 2.12.0 -Homepage: https://www.riverbankcomputing.com/software/qscintilla -Description: QScintilla is a port to Qt of the Scintilla editing component. Features syntax highlighting, code-completion and much more (Barebone build without python bindings (missing dependeny PyQt) and without QtDesigner plugin) -Build-Depends: qt5-base[core], qt5-macextras (osx), qt5-winextras (windows)
\ No newline at end of file diff --git a/ports/qscintilla/portfile.cmake b/ports/qscintilla/portfile.cmake index 11fd204de..e239dcc37 100644 --- a/ports/qscintilla/portfile.cmake +++ b/ports/qscintilla/portfile.cmake @@ -37,6 +37,13 @@ endif() file(GLOB HEADER_FILES ${SOURCE_PATH}/src/Qsci/*) file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/Qsci) +if (VCPKG_TARGET_IS_WINDOWS AND (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)) + vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/Qsci/qsciglobal.h + "#if defined(QSCINTILLA_DLL)" + "#if 1" + ) +endif() + vcpkg_copy_pdbs() # Handle copyright diff --git a/ports/qscintilla/vcpkg.json b/ports/qscintilla/vcpkg.json new file mode 100644 index 000000000..8e822764c --- /dev/null +++ b/ports/qscintilla/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "qscintilla", + "version": "2.12.0", + "port-version": 1, + "description": "QScintilla is a port to Qt of the Scintilla editing component. Features syntax highlighting, code-completion and much more (Barebone build without python bindings (missing dependeny PyQt) and without QtDesigner plugin)", + "homepage": "https://www.riverbankcomputing.com/software/qscintilla", + "supports": "!(windows & (arm | arm64))", + "dependencies": [ + { + "name": "qt5-base", + "default-features": false + }, + { + "name": "qt5-macextras", + "platform": "osx" + }, + { + "name": "qt5-winextras", + "platform": "windows" + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 3a17e0d4d..bc1fa46a7 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5018,7 +5018,7 @@ }, "qscintilla": { "baseline": "2.12.0", - "port-version": 0 + "port-version": 1 }, "qt-advanced-docking-system": { "baseline": "3.6.3", diff --git a/versions/q-/qscintilla.json b/versions/q-/qscintilla.json index 680be0585..936299c8b 100644 --- a/versions/q-/qscintilla.json +++ b/versions/q-/qscintilla.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "63f2d1f0287a6d61b5c85b428920b0fbe102adec", + "version": "2.12.0", + "port-version": 1 + }, + { "git-tree": "753c09c98e94157f9998e6528d5bb7dce4337ced", "version-string": "2.12.0", "port-version": 0 |
