Skip to content

Commit

Permalink
[ffnvcodec] fix single config builds (microsoft#42442)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Dec 16, 2024
1 parent e303a72 commit 4474162
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
12 changes: 8 additions & 4 deletions ports/ffnvcodec/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ if(VCPKG_TARGET_IS_WINDOWS)
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}
LOGNAME build-${TARGET_TRIPLET}
)

file(INSTALL "${SOURCE_PATH}/ffnvcodec.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")

if(NOT VCPKG_BUILD_TYPE)
file(INSTALL "${SOURCE_PATH}/ffnvcodec.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
endif()

# Linux, etc.
else()
Expand All @@ -47,11 +49,13 @@ else()
# FFmpeg uses pkgconfig to find ffnvcodec.pc, so install it where
# FFMpeg's call to pkgconfig expects to find it.
file(INSTALL "${SOURCE_PATH}/ffnvcodec.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
file(INSTALL "${SOURCE_PATH}/ffnvcodec.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
if(NOT VCPKG_BUILD_TYPE)
file(INSTALL "${SOURCE_PATH}/ffnvcodec.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
endif()
endif()

vcpkg_fixup_pkgconfig()

# Install the files to their default vcpkg locations
file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${CURRENT_PORT_DIR}/copyright")
1 change: 1 addition & 0 deletions ports/ffnvcodec/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ffnvcodec",
"version": "12.2.72.0",
"port-version": 1,
"description": "FFmpeg version of Nvidia Codec SDK headers.",
"homepage": "https://github.com/FFmpeg/nv-codec-headers",
"supports": "linux | (!osx & !uwp & !(arm64 & windows))"
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2762,7 +2762,7 @@
},
"ffnvcodec": {
"baseline": "12.2.72.0",
"port-version": 0
"port-version": 1
},
"fftw3": {
"baseline": "3.3.10",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/ffnvcodec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "90afa3238f852b5b9bc8fee3e259b3a0f0fee91d",
"version": "12.2.72.0",
"port-version": 1
},
{
"git-tree": "5cbb2a7f0ed07795c560971fddd1c6021c37fbfb",
"version": "12.2.72.0",
Expand Down

0 comments on commit 4474162

Please sign in to comment.