vcpkg/ports/libepoxy/portfile.cmake

26 lines
935 B
CMake
Raw Normal View History

if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
message(STATUS "Warning: Static building not supported yet. Building dynamic.")
set(VCPKG_LIBRARY_LINKAGE dynamic)
endif()
2017-02-10 01:13:52 +08:00
include(vcpkg_common_functions)
2017-05-11 05:15:02 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO anholt/libepoxy
2017-06-06 22:36:34 +08:00
REF 1.4.3
SHA512 41c7a4eea66c89346b0ec71407b2d22bf645ed0ef81ebad560370903f138ed48abb6bc6bcc88c75a3a05497acc6720397db828d61301599c05040263a9f4f7f0
2017-05-11 05:15:02 +08:00
HEAD_REF master)
2017-02-10 01:13:52 +08:00
2017-06-06 22:36:34 +08:00
vcpkg_configure_meson(SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-Denable-glx=no
-Denable-egl=no)
2017-02-10 01:13:52 +08:00
vcpkg_install_meson()
vcpkg_copy_pdbs()
2017-06-06 22:36:34 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/pkgconfig)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig)
2017-02-10 01:13:52 +08:00
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libepoxy)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libepoxy/COPYING ${CURRENT_PACKAGES_DIR}/share/libepoxy/copyright)