vcpkg/ports/glog/portfile.cmake

37 lines
1.1 KiB
CMake
Raw Normal View History

2016-10-15 06:59:11 +08:00
# Common Ambient Variables:
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
# PORT is the current port name (zlib, etc)
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
#
include(vcpkg_common_functions)
2017-07-05 17:49:14 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/glog
2019-04-12 18:57:07 +08:00
REF v0.4.0
2019-04-12 20:43:44 +08:00
SHA512 b585f1819ade2075f6b61dc5aaca5c3f9d25601dba2bd08b6c49b96ac5f79db23c6b7f2042df003f7130497dd7241fcaa8b107d1f97385cb66ce52d3c554b176
2017-07-05 17:49:14 +08:00
HEAD_REF master
2019-04-12 18:57:07 +08:00
PATCHES
glog_disable_debug_postfix.patch
2017-04-19 13:48:01 +08:00
)
2016-10-15 06:59:11 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2016-10-15 06:59:11 +08:00
)
vcpkg_install_cmake()
2017-04-19 13:48:01 +08:00
2017-07-05 17:49:14 +08:00
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/glog")
2016-10-15 06:59:11 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2017-04-19 13:48:01 +08:00
2017-07-05 17:49:14 +08:00
vcpkg_copy_pdbs()
2017-04-19 13:48:01 +08:00
2016-10-15 06:59:11 +08:00
# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/glog)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glog/COPYING ${CURRENT_PACKAGES_DIR}/share/glog/copyright)