mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpkg baseline][qtapplicationmanager] Configure hardcodes bin paths. (#23638)
* disable parallel configure * run buildtypes manually * correct close statement * version stuff
This commit is contained in:
parent
e383f75a8f
commit
6ba1666604
@ -22,24 +22,40 @@ endif()
|
|||||||
|
|
||||||
set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins)
|
set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins)
|
||||||
set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml)
|
set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml)
|
||||||
qt_cmake_configure(${_opt}
|
set(build_type_backup ${VCPKG_BUILD_TYPE})
|
||||||
OPTIONS
|
set(path_backup "$ENV{PATH}")
|
||||||
-DINPUT_libarchive=system
|
if(NOT VCPKG_BUILD_TYPE)
|
||||||
-DINPUT_libyaml=system
|
set(types release debug)
|
||||||
-DFEATURE_am_system_libyaml=ON
|
else()
|
||||||
-DFEATURE_am_system_libarchive=ON
|
set(types ${VCPKG_BUILD_TYPE})
|
||||||
OPTIONS_DEBUG
|
|
||||||
OPTIONS_RELEASE)
|
|
||||||
|
|
||||||
### Need to fix one post-build.bat; Couldn't find the place where it gets generated!
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS)
|
|
||||||
set(scriptfile "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/src/tools/dumpqmltypes/CMakeFiles/appman-dumpqmltypes.dir/post-build.bat")
|
|
||||||
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}" CURRENT_INSTALLED_DIR_NATIVE)
|
|
||||||
if(EXISTS "${scriptfile}")
|
|
||||||
vcpkg_replace_string("${scriptfile}" "${CURRENT_INSTALLED_DIR_NATIVE}\\bin" "${CURRENT_INSTALLED_DIR_NATIVE}\\debug\\bin")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
foreach(VCPKG_BUILD_TYPE IN LISTS types)
|
||||||
|
if(VCPKG_BUILD_TYPE STREQUAL debug)
|
||||||
|
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/debug/bin")
|
||||||
|
else()
|
||||||
|
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/bin")
|
||||||
|
endif()
|
||||||
|
qt_cmake_configure(${_opt}
|
||||||
|
DISABLE_PARALLEL_CONFIGURE
|
||||||
|
OPTIONS
|
||||||
|
-DINPUT_libarchive=system
|
||||||
|
-DINPUT_libyaml=system
|
||||||
|
-DFEATURE_am_system_libyaml=ON
|
||||||
|
-DFEATURE_am_system_libarchive=ON
|
||||||
|
OPTIONS_DEBUG
|
||||||
|
OPTIONS_RELEASE)
|
||||||
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
|
set(scriptfile "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/src/tools/dumpqmltypes/CMakeFiles/appman-dumpqmltypes.dir/post-build.bat")
|
||||||
|
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}" CURRENT_INSTALLED_DIR_NATIVE)
|
||||||
|
if(EXISTS "${scriptfile}")
|
||||||
|
vcpkg_replace_string("${scriptfile}" "${CURRENT_INSTALLED_DIR_NATIVE}\\bin" "${CURRENT_INSTALLED_DIR_NATIVE}\\debug\\bin")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
vcpkg_cmake_install()
|
||||||
|
set(ENV{PATH} "${path_backup}")
|
||||||
|
endforeach()
|
||||||
|
set(VCPKG_BUILD_TYPE ${build_type_backup})
|
||||||
|
### Need to fix one post-build.bat; Couldn't find the place where it gets generated!
|
||||||
|
|
||||||
qt_fixup_and_cleanup(TOOL_NAMES ${TOOL_NAMES})
|
qt_fixup_and_cleanup(TOOL_NAMES ${TOOL_NAMES})
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "qtapplicationmanager",
|
"name": "qtapplicationmanager",
|
||||||
"version": "6.2.3",
|
"version": "6.2.3",
|
||||||
|
"port-version": 1,
|
||||||
"description": "Qt component for application lifecycle management",
|
"description": "Qt component for application lifecycle management",
|
||||||
"homepage": "https://www.qt.io/",
|
"homepage": "https://www.qt.io/",
|
||||||
"license": null,
|
"license": null,
|
||||||
|
@ -5810,7 +5810,7 @@
|
|||||||
},
|
},
|
||||||
"qtapplicationmanager": {
|
"qtapplicationmanager": {
|
||||||
"baseline": "6.2.3",
|
"baseline": "6.2.3",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"qtbase": {
|
"qtbase": {
|
||||||
"baseline": "6.2.3",
|
"baseline": "6.2.3",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "3c971f01c7b3ee85236a451ad93fd00fe4cc17e6",
|
||||||
|
"version": "6.2.3",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "9597e662be8fbe3317e0fd88058071db708da977",
|
"git-tree": "9597e662be8fbe3317e0fd88058071db708da977",
|
||||||
"version": "6.2.3",
|
"version": "6.2.3",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user