mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:58:00 +08:00
[qscintilla] build against Qt6 (#30307)
* [vcpkg-qmake] set QMAKE_MACOSX_DEPLOYMENT_TARGET based on Qt version * qscintilla: build against Qt6
This commit is contained in:
parent
1bbe957fae
commit
84df5613f7
@ -17,21 +17,24 @@ vcpkg_find_acquire_program(PYTHON3)
|
||||
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
|
||||
vcpkg_qmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}/src"
|
||||
QMAKE_OPTIONS
|
||||
"CONFIG-=hide_symbols"
|
||||
"DEFINES+=SCI_NAMESPACE"
|
||||
)
|
||||
vcpkg_qmake_install()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_install_qmake(
|
||||
RELEASE_TARGETS release
|
||||
DEBUG_TARGETS debug
|
||||
)
|
||||
else()
|
||||
vcpkg_install_qmake()
|
||||
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
|
||||
if(DLLS)
|
||||
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
||||
file(REMOVE ${DLLS})
|
||||
endif()
|
||||
|
||||
file(GLOB DEBUG_DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
|
||||
if(DEBUG_DLLS)
|
||||
file(COPY ${DEBUG_DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
file(REMOVE ${DEBUG_DLLS})
|
||||
endif()
|
||||
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/Qsci/*)
|
||||
|
@ -1,21 +1,19 @@
|
||||
{
|
||||
"name": "qscintilla",
|
||||
"version": "2.13.4",
|
||||
"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",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "qt5-base",
|
||||
"name": "qtbase",
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "qt5-macextras",
|
||||
"platform": "osx"
|
||||
},
|
||||
{
|
||||
"name": "qt5-winextras",
|
||||
"platform": "windows"
|
||||
"name": "vcpkg-qmake",
|
||||
"host": true,
|
||||
"default-features": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vcpkg-qmake",
|
||||
"version-date": "2022-11-16",
|
||||
"version-date": "2023-03-22",
|
||||
"documentation": "https://vcpkg.io/en/docs/README.html",
|
||||
"license": "MIT",
|
||||
"supports": "native",
|
||||
|
@ -18,10 +18,6 @@ function(vcpkg_qmake_configure)
|
||||
vcpkg_list(APPEND arg_QMAKE_OPTIONS "CONFIG*=static-runtime")
|
||||
endif()
|
||||
|
||||
if(DEFINED VCPKG_OSX_DEPLOYMENT_TARGET)
|
||||
set(ENV{QMAKE_MACOSX_DEPLOYMENT_TARGET} "${VCPKG_OSX_DEPLOYMENT_TARGET}")
|
||||
endif()
|
||||
|
||||
set(ENV{PKG_CONFIG} "${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
||||
get_filename_component(PKGCONFIG_PATH "${PKGCONFIG}" DIRECTORY)
|
||||
vcpkg_add_to_path("${PKGCONFIG_PATH}")
|
||||
@ -58,6 +54,25 @@ function(vcpkg_qmake_configure)
|
||||
set(VCPKG_QMAKE_COMMAND "${CURRENT_HOST_INSTALLED_DIR}/tools/Qt6/bin/qmake${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_OSX)
|
||||
# Get Qt version
|
||||
execute_process(
|
||||
COMMAND ${VCPKG_QMAKE_COMMAND} -query QT_VERSION
|
||||
OUTPUT_VARIABLE QT_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
if(DEFINED VCPKG_OSX_DEPLOYMENT_TARGET)
|
||||
vcpkg_list(APPEND arg_QMAKE_OPTIONS "QMAKE_MACOSX_DEPLOYMENT_TARGET=${VCPKG_OSX_DEPLOYMENT_TARGET}")
|
||||
elseif(${QT_VERSION} VERSION_GREATER_EQUAL 6)
|
||||
# https://doc.qt.io/qt-6/macos.html
|
||||
vcpkg_list(APPEND arg_QMAKE_OPTIONS "QMAKE_MACOSX_DEPLOYMENT_TARGET=10.15")
|
||||
else() # Qt5
|
||||
# https://doc.qt.io/qt-5/macos.html
|
||||
vcpkg_list(APPEND arg_QMAKE_OPTIONS "QMAKE_MACOSX_DEPLOYMENT_TARGET=10.13")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(qmake_build_tools "")
|
||||
qmake_append_program(qmake_build_tools "QMAKE_CC" "${VCPKG_DETECTED_CMAKE_C_COMPILER}")
|
||||
qmake_append_program(qmake_build_tools "QMAKE_CXX" "${VCPKG_DETECTED_CMAKE_CXX_COMPILER}")
|
||||
|
@ -6362,7 +6362,7 @@
|
||||
},
|
||||
"qscintilla": {
|
||||
"baseline": "2.13.4",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"qt": {
|
||||
"baseline": "6.4.3",
|
||||
@ -8189,7 +8189,7 @@
|
||||
"port-version": 1
|
||||
},
|
||||
"vcpkg-qmake": {
|
||||
"baseline": "2022-11-16",
|
||||
"baseline": "2023-03-22",
|
||||
"port-version": 0
|
||||
},
|
||||
"vcpkg-tool-bazel": {
|
||||
|
@ -1,7 +1,12 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7698a4b73e3ed54fd0cf66cf9e754317763750cb",
|
||||
"git-tree": "4920a3d743be78d0d5be05132786873977677665",
|
||||
"version": "2.13.4",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "b5942c0b0a6d9131bc4ad9a1dde662f809a6d965",
|
||||
"version": "2.13.4",
|
||||
"port-version": 0
|
||||
},
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "82e22019ae07b7150c3fb2a8672d4192eed2782c",
|
||||
"version-date": "2023-03-22",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "993a25e3e7a43175fb3d7d4981bc3e0de1f65c32",
|
||||
"version-date": "2022-11-16",
|
||||
|
Loading…
x
Reference in New Issue
Block a user