early-access version 2853
This commit is contained in:
29
externals/vcpkg/ports/qscintilla/fix-static.patch
vendored
Executable file
29
externals/vcpkg/ports/qscintilla/fix-static.patch
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
diff --git a/src/qscintilla.pro b/src/qscintilla.pro
|
||||
index 8d0acd2..2246442 100644
|
||||
--- a/src/qscintilla.pro
|
||||
+++ b/src/qscintilla.pro
|
||||
@@ -37,13 +37,13 @@ CONFIG(debug, debug|release) {
|
||||
TARGET = qscintilla2_qt$${QT_MAJOR_VERSION}
|
||||
}
|
||||
|
||||
-macx:!CONFIG(staticlib) {
|
||||
+macx:!CONFIG(static) {
|
||||
QMAKE_POST_LINK += install_name_tool -id @rpath/$(TARGET1) $(TARGET)
|
||||
}
|
||||
|
||||
INCLUDEPATH += . ../scintilla/include ../scintilla/lexlib ../scintilla/src
|
||||
|
||||
-!CONFIG(staticlib) {
|
||||
+!CONFIG(static) {
|
||||
DEFINES += QSCINTILLA_MAKE_DLL
|
||||
}
|
||||
DEFINES += SCINTILLA_QT SCI_LEXER INCLUDE_DEPRECATED_FEATURES
|
||||
@@ -82,7 +82,7 @@ qsci.files = ../qsci
|
||||
INSTALLS += qsci
|
||||
|
||||
features.path = $$[QT_HOST_DATA]/mkspecs/features
|
||||
-CONFIG(staticlib) {
|
||||
+CONFIG(static) {
|
||||
features.files = $$PWD/features_staticlib/qscintilla2.prf
|
||||
} else {
|
||||
features.files = $$PWD/features/qscintilla2.prf
|
||||
50
externals/vcpkg/ports/qscintilla/portfile.cmake
vendored
Executable file
50
externals/vcpkg/ports/qscintilla/portfile.cmake
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.12.0/QScintilla_src-2.12.0.tar.gz"
|
||||
FILENAME "QScintilla-2.12.0.tar.gz"
|
||||
SHA512 9bdaba5c33c1b11ccad83eb1fda72142758afc50c955a62d5a8ff102b41d4b67d897bf96ce0540e16bc5a7fae2ce1acbf06931d5f0ae6768759c9ff072c03daa
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES
|
||||
fix-static.patch
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
|
||||
# Add python3 to path
|
||||
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
|
||||
vcpkg_add_to_path(${PYTHON3_PATH})
|
||||
|
||||
vcpkg_configure_qmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/src
|
||||
OPTIONS
|
||||
CONFIG+=build_all
|
||||
CONFIG-=hide_symbols
|
||||
DEFINES+=SCI_NAMESPACE
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_install_qmake(
|
||||
RELEASE_TARGETS release
|
||||
DEBUG_TARGETS debug
|
||||
)
|
||||
else()
|
||||
vcpkg_install_qmake()
|
||||
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
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
22
externals/vcpkg/ports/qscintilla/vcpkg.json
vendored
Executable file
22
externals/vcpkg/ports/qscintilla/vcpkg.json
vendored
Executable file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user