2018-11-22 21:02:30 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-09-01 03:58:01 +08:00
|
|
|
REPO abumq/easyloggingpp
|
|
|
|
REF "v${VERSION}"
|
2023-10-03 11:28:46 +08:00
|
|
|
SHA512 3df813f7f9796c81c974ba794624db2602253e14b938370deb4c851fe8725f5c7ebf71d7ae0277fcb770b043ccf8f04bbf8e770d14565f4cb704328973473387
|
2018-11-22 21:02:30 +08:00
|
|
|
HEAD_REF master
|
2023-05-14 03:32:59 +08:00
|
|
|
PATCHES
|
|
|
|
0001_add_cmake_options.patch
|
2023-09-01 03:58:01 +08:00
|
|
|
0002_fix_build_uwp.patch
|
2024-02-22 01:35:50 +08:00
|
|
|
0003_fix_pkgconfig.patch
|
2023-05-14 03:32:59 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
std-locking use_std_threads
|
|
|
|
thread-safe thread_safe
|
|
|
|
no-defaultfile no_default_logfile
|
2018-11-22 21:02:30 +08:00
|
|
|
)
|
2023-09-01 03:58:01 +08:00
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
set(TARGET_IS_UWP ON)
|
|
|
|
endif()
|
2021-09-29 23:35:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-22 21:02:30 +08:00
|
|
|
OPTIONS
|
2023-05-14 03:32:59 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-11-22 21:02:30 +08:00
|
|
|
-Dbuild_static_lib=ON
|
2023-09-01 03:58:01 +08:00
|
|
|
-Dis_uwp=${TARGET_IS_UWP}
|
2024-02-22 01:35:50 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DELPP_PKGCONFIG_INSTALL_DIR="${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig"
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DELPP_PKGCONFIG_INSTALL_DIR="${CURRENT_PACKAGES_DIR}/lib/pkgconfig"
|
2018-11-22 21:02:30 +08:00
|
|
|
)
|
2021-09-29 23:35:56 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-22 21:02:30 +08:00
|
|
|
|
2021-09-29 23:35:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2024-02-22 01:35:50 +08:00
|
|
|
configure_file("${CURRENT_PORT_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
2023-09-01 03:58:01 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2018-11-22 21:02:30 +08:00
|
|
|
|
2021-10-30 01:10:16 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|