2022-11-09 06:49:28 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
2019-08-10 03:36:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO githubuser0xFFFF/Qt-Advanced-Docking-System
|
2022-10-27 02:00:59 +08:00
|
|
|
REF d5fefaa35fb53e299b7f39b0d8f541954c710d94
|
2022-11-09 06:49:28 +08:00
|
|
|
SHA512 fcafee34d4d5365b3677c648e0d9a1ea8afd5463ca682ae19b10661490aca44d4f010ba768ed9c639b8ada10106be7aff336c2b7b42f10dc12db6b51988b4e22
|
2019-08-10 03:36:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2022-01-05 06:45:21 +08:00
|
|
|
config_changes.patch
|
2022-10-27 02:00:59 +08:00
|
|
|
qt.patch
|
2019-08-10 03:36:36 +08:00
|
|
|
)
|
|
|
|
|
2022-10-27 02:00:59 +08:00
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
|
|
list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR}")
|
|
|
|
list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
2021-12-07 12:18:38 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-04-16 02:18:51 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-09 06:49:28 +08:00
|
|
|
OPTIONS
|
2022-10-27 02:00:59 +08:00
|
|
|
${_qarg_OPTIONS}
|
2020-09-15 08:02:31 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
2022-10-27 02:00:59 +08:00
|
|
|
-DADS_VERSION=${VERSION}
|
|
|
|
-DQT_VERSION_MAJOR=6
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5=TRUE
|
|
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
CMAKE_DISABLE_FIND_PACKAGE_Qt5
|
2019-08-10 03:36:36 +08:00
|
|
|
)
|
2021-12-07 12:18:38 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-10-27 02:00:59 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "qtadvanceddocking" CONFIG_PATH "lib/cmake/qtadvanceddocking")
|
2019-08-10 03:36:36 +08:00
|
|
|
|
2022-04-16 02:18:51 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/license")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/license")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/gnu-lgpl-v2.1.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|