Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions ports/x264/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ vcpkg_make_configure(
--disable-gpac
--disable-lsmash
--disable-bashcompletion
--bindir=[debug/]bin
OPTIONS_RELEASE
${OPTIONS_RELEASE}
--enable-strip
Expand All @@ -96,10 +97,6 @@ vcpkg_make_configure(

vcpkg_make_install()

if("tool" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES x264 AUTO_CLEAN)
endif()

Comment on lines -99 to -102
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix error:

CMake Error at scripts/cmake/vcpkg_copy_tools.cmake:36 (message):
  Couldn't find tool "x264":

      "F:/Feature-test/vcpkg/packages/x264_x64-windows/bin/x264.exe" does not exist

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
Expand All @@ -123,6 +120,13 @@ elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
)
endif()

if(VCPKG_TARGET_IS_WINDOWS)
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
file(COPY "${CURRENT_PACKAGES_DIR}/tools/x264/bin/libx264-164.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
file(COPY "${CURRENT_PACKAGES_DIR}/bin" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
endif()
endif()

vcpkg_fixup_pkgconfig()

vcpkg_copy_pdbs()
Expand Down
2 changes: 1 addition & 1 deletion ports/x264/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "x264",
"version": "0.164.3108",
"port-version": 1,
"port-version": 2,
"description": "x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC compression format",
"homepage": "https://www.videolan.org/developers/x264.html",
"license": "GPL-2.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9918,7 +9918,7 @@
},
"x264": {
"baseline": "0.164.3108",
"port-version": 1
"port-version": 2
},
"x265": {
"baseline": "4.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/x-/x264.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9bee6ff2ae0128061fb62fc4be756c80b86643c0",
"version": "0.164.3108",
"port-version": 2
},
{
"git-tree": "0b3254a0abf3a2a2748b7353594b401893f74da9",
"version": "0.164.3108",
Expand Down