Skip to content

Commit

Permalink
[avcpp] Add support for Windows shared libraries
Browse files Browse the repository at this point in the history
Add cmake option to export all symbols to allow for dll linkage
  • Loading branch information
KKhanhH committed Jan 3, 2025
1 parent 1a66c32 commit b004381
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ports/avcpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if(VCPKG_TARGET_IS_WINDOWS)
# avcpp doesn't export any symbols
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO h4tr3d/avcpp
Expand All @@ -24,6 +19,7 @@ vcpkg_cmake_configure(
OPTIONS
"-DAV_ENABLE_STATIC=${AVCPP_ENABLE_STATIC}"
"-DAV_ENABLE_SHARED=${AVCPP_ENABLE_SHARED}"
"-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON"
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
-DAV_BUILD_EXAMPLES=OFF
)
Expand Down
1 change: 1 addition & 0 deletions ports/avcpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "avcpp",
"version": "2.4.0",
"port-version": 1,
"description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.",
"homepage": "https://github.com/h4tr3d/avcpp",
"license": "LGPL-2.1-only OR BSD-3-Clause",
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/avcpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "47233af1b00ba3963bc3a9fce19cad14e6c62a61",
"version": "2.4.0",
"port-version": 1
},
{
"git-tree": "b06ff7d5a249eaa6f633d4fb9ce05b8f6fd8f85b",
"version": "2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
},
"avcpp": {
"baseline": "2.4.0",
"port-version": 0
"port-version": 1
},
"avisynthplus": {
"baseline": "3.7.3",
Expand Down

0 comments on commit b004381

Please sign in to comment.