2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-01-30 02:53:31 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO VirusTotal/yara
|
2023-04-03 12:01:43 +08:00
|
|
|
REF "v${VERSION}"
|
2024-05-28 05:27:38 +08:00
|
|
|
SHA512 8bf1df7089f9bc5a448dbae0999e04f4ecdec06b4478e2cb5f42a2a3201b99fce68379e3f8f7c67a9db201205366250d7befe5c38451cced807ed692d436422c
|
2021-07-23 05:23:35 +08:00
|
|
|
HEAD_REF master
|
2023-04-03 12:01:43 +08:00
|
|
|
PATCHES
|
|
|
|
# Module elf request new library tlshc(https://github.com/avast/tlshc), the related upstream PR: https://github.com/VirusTotal/yara/pull/1624.
|
|
|
|
Disable-module-elf.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
cuckoo CUCKOO_MODULE
|
|
|
|
dotnet DOTNET_MODULE
|
2018-01-30 02:53:31 +08:00
|
|
|
)
|
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-01-30 02:53:31 +08:00
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-04-03 12:01:43 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-10-24 02:53:14 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
-DDISABLE_INSTALL_TOOLS=ON
|
2018-01-30 02:53:31 +08:00
|
|
|
)
|
|
|
|
|
2022-04-02 05:31:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-04-03 12:01:43 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-libyara)
|
2018-01-30 02:53:31 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-04-03 12:01:43 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|