Skip to content
Open
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
4 changes: 3 additions & 1 deletion .github/workflows/libzstd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ jobs:
- name: Patch libzstd
run: cd libzstd && git apply --ignore-whitespace ..\winlib-builder\patches\libzstd.patch
- name: Configure libzstd
run: cd libzstd\build\cmake && cmake -G "Visual Studio 17 2022" -A ${{steps.virtuals.outputs.msarch}} -T ${{steps.virtuals.outputs.msts}} -DCMAKE_SYSTEM_VERSION=${{steps.virtuals.outputs.winsdk}} .
run: cd libzstd\build\cmake && cmake -G "Visual Studio 17 2022" -A ${{steps.virtuals.outputs.msarch}} -T ${{steps.virtuals.outputs.msts}} -DCMAKE_SYSTEM_VERSION=${{steps.virtuals.outputs.winsdk}} -DZSTD_BUILD_PROGRAMS=OFF -DCMAKE_RC_FLAGS=-I${{github.workspace}}\libzstd\lib .
- name: Build libzstd
run: cd libzstd\build\cmake && cmake --build . --config RelWithDebInfo
- name: Install libzstd
run: |
cd libzstd\build\cmake
cmake --install . --config RelWithDebInfo --prefix ..\..\..\install
xcopy lib\RelWithDebInfo\libzstd.pdb ..\..\..\install\bin\*
xcopy lib\RelWithDebInfo\libzstd_a.pdb ..\..\..\install\lib\*
cd ..\..
copy COPYING ..\install
copy LICENSE ..\install
Expand Down
11 changes: 2 additions & 9 deletions patches/libzstd.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
build/cmake/lib/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt
index 088c8760..a63b5c81 100644
--- a/build/cmake/lib/CMakeLists.txt
+++ b/build/cmake/lib/CMakeLists.txt
@@ -121,7 +121,7 @@ if (ZSTD_BUILD_SHARED)
set_target_properties(
@@ -122,5 +122,5 @@ if (ZSTD_BUILD_SHARED)
libzstd_shared
PROPERTIES
- OUTPUT_NAME zstd
+ OUTPUT_NAME libzstd
VERSION ${zstd_VERSION_MAJOR}.${zstd_VERSION_MINOR}.${zstd_VERSION_PATCH}
SOVERSION ${zstd_VERSION_MAJOR})
endif ()
@@ -131,7 +131,7 @@ if (ZSTD_BUILD_STATIC)
libzstd_static
@@ -132,5 +132,5 @@ if (ZSTD_BUILD_STATIC)
PROPERTIES
POSITION_INDEPENDENT_CODE On
- OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME})
+ OUTPUT_NAME libzstd_a)
endif ()

if (UNIX OR MINGW)