vcpkg/ports/yara/portfile.cmake

25 lines
707 B
CMake
Raw Normal View History

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
REF e1360f6cbe3d8daf350018661bc6772bd5b726f2 #v4.1.0
SHA512 55f55ed41af1049e500f77f6d02fb6992dabd84efb906ff0b3ba746b3c5d890cb622845622692f230dad51a510c068c0a0195932c8931d3e56c71fc17d8769d5
2018-01-30 02:53:31 +08:00
HEAD_REF dev
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
-DDISABLE_INSTALL_TOOLS=ON
2018-01-30 02:53:31 +08:00
)
vcpkg_install_cmake()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)