2019-08-10 03:36:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO githubuser0xFFFF/Qt-Advanced-Docking-System
|
2023-05-14 00:39:45 +08:00
|
|
|
REF "${VERSION}"
|
2024-07-16 01:30:58 +08:00
|
|
|
SHA512 ee78b1c7f6164b06ce9c193aa5dfa19281a1c894cd8a8cbcae6d137abc13417f32e0f2a05f9d91557e14ced91b3b541991065d0ee190ea5ad2623c3848674eaf
|
2019-08-10 03:36:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
2019-08-10 03:36:36 +08:00
|
|
|
)
|
2021-12-07 12:18:38 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-05-14 00:39:45 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "qt6advanceddocking" CONFIG_PATH "lib/cmake/qt6advanceddocking")
|
2019-08-10 03:36:36 +08:00
|
|
|
|
2023-05-14 00:39:45 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/qt6advanceddocking/qt6advanceddockingConfig.cmake"
|
|
|
|
"include(CMakeFindDependencyMacro)"
|
|
|
|
[[include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Qt6 COMPONENTS Core Gui Widgets)]])
|
2022-04-16 02:18:51 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
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}")
|
2023-05-14 00:39:45 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|