[glog] Set GLOG_STATIC_DEFINE in export.h (#35173)

* fix glog

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
This commit is contained in:
MonicaLiu 2023-11-21 13:50:31 -08:00 committed by GitHub
parent abe01a20d3
commit 776bf4317e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

View File

@ -35,4 +35,10 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/${PORT}/export.h" "#ifdef GLOG_STATIC_DEFINE" "#if 1")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/${PORT}/export.h" "#ifdef GLOG_STATIC_DEFINE" "#if 0")
endif()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,7 +1,7 @@
{
"name": "glog",
"version": "0.6.0",
"port-version": 2,
"port-version": 3,
"description": "C++ implementation of the Google logging module",
"homepage": "https://github.com/google/glog",
"license": "BSD-3-Clause",

View File

@ -2998,7 +2998,7 @@
},
"glog": {
"baseline": "0.6.0",
"port-version": 2
"port-version": 3
},
"gloo": {
"baseline": "20201203",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3e4dcaa54d409ed758073ef4964cf41d57996e90",
"version": "0.6.0",
"port-version": 3
},
{
"git-tree": "cce45164ee522a505686c1794e7c228e44f52d76",
"version": "0.6.0",