mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:47:59 +08:00
[qt5] Move qt5 headers into qt5 subdir (#17158)
* [qt5] move headers * version stuff
This commit is contained in:
parent
2d7a8443ac
commit
c739e82bec
@ -103,11 +103,12 @@ function(configure_qt)
|
|||||||
-datadir ${CURRENT_INSTALLED_DIR}${_path_suffix}/share/qt5${_path_suffix_${_buildname}}
|
-datadir ${CURRENT_INSTALLED_DIR}${_path_suffix}/share/qt5${_path_suffix_${_buildname}}
|
||||||
-plugindir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/plugins
|
-plugindir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/plugins
|
||||||
-qmldir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/qml
|
-qmldir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/qml
|
||||||
-headerdir ${CURRENT_INSTALLED_DIR}/include
|
-headerdir ${CURRENT_INSTALLED_DIR}/include/qt5
|
||||||
-libexecdir ${CURRENT_INSTALLED_DIR}/tools/qt5${_path_suffix_${_buildname}}
|
-libexecdir ${CURRENT_INSTALLED_DIR}/tools/qt5${_path_suffix_${_buildname}}
|
||||||
-bindir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/bin
|
-bindir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/bin
|
||||||
-libdir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib
|
-libdir ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib
|
||||||
-I ${CURRENT_INSTALLED_DIR}/include
|
-I ${CURRENT_INSTALLED_DIR}/include
|
||||||
|
-I ${CURRENT_INSTALLED_DIR}/include/qt5
|
||||||
-L ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib
|
-L ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib
|
||||||
-L ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib/manual-link
|
-L ${CURRENT_INSTALLED_DIR}${_path_suffix_${_buildname}}/lib/manual-link
|
||||||
-platform ${_csc_TARGET_PLATFORM}
|
-platform ${_csc_TARGET_PLATFORM}
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
function(qt_fix_prl PACKAGE_DIR PRL_FILES)
|
function(qt_fix_prl PACKAGE_DIR PRL_FILES)
|
||||||
file(TO_CMAKE_PATH "${PACKAGE_DIR}/lib" CMAKE_LIB_PATH)
|
file(TO_CMAKE_PATH "${PACKAGE_DIR}/lib" CMAKE_LIB_PATH)
|
||||||
file(TO_CMAKE_PATH "${PACKAGE_DIR}/include" CMAKE_INCLUDE_PATH)
|
file(TO_CMAKE_PATH "${PACKAGE_DIR}/include/qt5" CMAKE_INCLUDE_PATH)
|
||||||
|
file(TO_CMAKE_PATH "${PACKAGE_DIR}/include" CMAKE_INCLUDE_PATH2)
|
||||||
file(TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}" CMAKE_INSTALLED_PREFIX)
|
file(TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}" CMAKE_INSTALLED_PREFIX)
|
||||||
foreach(PRL_FILE IN LISTS PRL_FILES)
|
foreach(PRL_FILE IN LISTS PRL_FILES)
|
||||||
file(READ "${PRL_FILE}" _contents)
|
file(READ "${PRL_FILE}" _contents)
|
||||||
string(REPLACE "${CMAKE_LIB_PATH}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}")
|
string(REPLACE "${CMAKE_LIB_PATH}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}")
|
||||||
string(REPLACE "${CMAKE_INCLUDE_PATH}" "\$\$[QT_INSTALL_HEADERS]" _contents "${_contents}")
|
string(REPLACE "${CMAKE_INCLUDE_PATH}" "\$\$[QT_INSTALL_HEADERS]" _contents "${_contents}")
|
||||||
|
string(REPLACE "${CMAKE_INCLUDE_PATH2}" "\$\$[QT_INSTALL_HEADERS]/../" _contents "${_contents}")
|
||||||
string(REPLACE "${CMAKE_INSTALLED_PREFIX}" "\$\$[QT_INSTALL_PREFIX]" _contents "${_contents}")
|
string(REPLACE "${CMAKE_INSTALLED_PREFIX}" "\$\$[QT_INSTALL_PREFIX]" _contents "${_contents}")
|
||||||
#Note: This only works without an extra if case since QT_INSTALL_PREFIX is the same for debug and release
|
#Note: This only works without an extra if case since QT_INSTALL_PREFIX is the same for debug and release
|
||||||
file(WRITE "${PRL_FILE}" "${_contents}")
|
file(WRITE "${PRL_FILE}" "${_contents}")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "qt5-base",
|
"name": "qt5-base",
|
||||||
"version-string": "5.15.2",
|
"version-string": "5.15.2",
|
||||||
"port-version": 4,
|
"port-version": 5,
|
||||||
"description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
|
"description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
|
||||||
"homepage": "https://www.qt.io/",
|
"homepage": "https://www.qt.io/",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
@ -4974,7 +4974,7 @@
|
|||||||
},
|
},
|
||||||
"qt5-base": {
|
"qt5-base": {
|
||||||
"baseline": "5.15.2",
|
"baseline": "5.15.2",
|
||||||
"port-version": 4
|
"port-version": 5
|
||||||
},
|
},
|
||||||
"qt5-canvas3d": {
|
"qt5-canvas3d": {
|
||||||
"baseline": "0",
|
"baseline": "0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "971d4936dfb79384d61cdafc9775b7caa2329135",
|
||||||
|
"version-string": "5.15.2",
|
||||||
|
"port-version": 5
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "6bd06b14752f1123c7d43df59ae19c584c24ea54",
|
"git-tree": "6bd06b14752f1123c7d43df59ae19c584c24ea54",
|
||||||
"version-string": "5.15.2",
|
"version-string": "5.15.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user