mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 01:09:00 +08:00
8e926cc06c
* [qt5] Update to 5.15.2 (mqtt currently missing git tag) * deactivate update of ports * update version * reduce port version * fix typo * fix patch for linux missing pthread * fix qt5-tools * fix qt5-webengine * add xcb-util to linux provisioning script * fix version numbers * fix other typo * remove new hashes file * fix latest version info * switch to vcpkg_from_git adjust vcpkg_from_git to handle tags. add OUT_REF for vcpkg_from_git to enable scriptable update of ports * regenerate docs * [vcpkg_from_git] new options TAG and OUT_REF - TAG github tag to checkout - OUT_REF github commit id related to tag or ref (useable for automatic updates of ports if used with a version tag) * Apply suggestions from code review Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * additional changes due to CR * regenerate docs * Remove 'Port-Version:0' from qt5-location Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * add all those versions * fix versions Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
50 lines
2.2 KiB
CMake
50 lines
2.2 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
#set(VCPKG_BUILD_TYPE release) #You probably want to set this to reduce build type and space requirements
|
|
message(STATUS "${PORT} requires a lot of free disk space (>300GB), ram (>32 GB) and time (>4h per configuration) to be successfully build.\n\
|
|
-- As such ${PORT} is not properly tested.\n\
|
|
-- If ${PORT} fails post build validation please open up an issue. \n\
|
|
-- If it fails due to post validation the successfully installed files can be found in ${CURRENT_PACKAGES_DIR} \n\
|
|
-- and just need to be copied into ${CURRENT_INSTALLED_DIR}")
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
message(STATUS "If ${PORT} directly fails ${PORT} might require additional prerequisites on Linux and OSX. Please check the configure logs.\n")
|
|
endif()
|
|
include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
|
|
|
|
vcpkg_find_acquire_program(FLEX)
|
|
vcpkg_find_acquire_program(BISON)
|
|
vcpkg_find_acquire_program(GPERF)
|
|
vcpkg_find_acquire_program(PYTHON2)
|
|
vcpkg_find_acquire_program(NINJA)
|
|
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY )
|
|
get_filename_component(BISON_DIR "${BISON}" DIRECTORY )
|
|
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY )
|
|
get_filename_component(GPERF_DIR "${GPERF}" DIRECTORY )
|
|
get_filename_component(NINJA_DIR "${NINJA}" DIRECTORY )
|
|
|
|
if(WIN32) # WIN32 HOST probably has win_flex and win_bison!
|
|
if(NOT EXISTS "${FLEX_DIR}/flex${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
|
file(CREATE_LINK "${FLEX}" "${FLEX_DIR}/flex${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
|
endif()
|
|
if(NOT EXISTS "${BISON_DIR}/BISON${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
|
file(CREATE_LINK "${BISON}" "${BISON_DIR}/bison${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
|
endif()
|
|
endif()
|
|
|
|
vcpkg_add_to_path(PREPEND "${FLEX_DIR}")
|
|
vcpkg_add_to_path(PREPEND "${BISON_DIR}")
|
|
vcpkg_add_to_path(PREPEND "${PYTHON2_DIR}")
|
|
vcpkg_add_to_path(PREPEND "${GPERF_DIR}")
|
|
vcpkg_add_to_path(PREPEND "${NINJA_DIR}")
|
|
|
|
set(PATCHES common.pri.patch
|
|
gl.patch
|
|
build_1.patch
|
|
build_2.patch
|
|
build_3.patch)
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
list(APPEND CORE_OPTIONS "BUILD_OPTIONS" "-webengine-system-libwebp" "-webengine-system-ffmpeg" "-webengine-system-icu")
|
|
endif()
|
|
|
|
qt_submodule_installation(${CORE_OPTIONS} PATCHES ${PATCHES})
|