[yaml-cpp] Fix visibility attribute for ubuntu (#17728)

* Replace YAML_CPP_DLL with 1 iff the library is build as shared library & target is windows

* Update port version

* Run x-add-version
This commit is contained in:
Jafar Abdi 2021-06-10 21:26:29 +03:00 committed by GitHub
parent 6982e51269
commit 805a02fe99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,5 @@
Source: yaml-cpp
Version: 0.6.3
Port-Version: 1
Homepage: https://github.com/jbeder/yaml-cpp
Description: yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.

View File

@ -36,7 +36,7 @@ endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(READ ${CURRENT_PACKAGES_DIR}/include/yaml-cpp/dll.h DLL_H)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS)
string(REPLACE "#ifdef YAML_CPP_DLL" "#if 1" DLL_H "${DLL_H}")
else()
string(REPLACE "#ifdef YAML_CPP_DLL" "#if 0" DLL_H "${DLL_H}")

View File

@ -6750,7 +6750,7 @@
},
"yaml-cpp": {
"baseline": "0.6.3",
"port-version": 0
"port-version": 1
},
"yara": {
"baseline": "4.1.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "045045b2d5b8cb6166b6d0d548effc0764623341",
"version-string": "0.6.3",
"port-version": 1
},
{
"git-tree": "fabfdd85c28d751aa769d2e743bf0e9ccd8dd178",
"version-string": "0.6.3",