File tree Expand file tree Collapse file tree 5 files changed +13
-52
lines changed Expand file tree Collapse file tree 5 files changed +13
-52
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ jobs:
44
44
- name : Read zlib config
45
45
if : steps.zlib.outcome == 'success' || steps.zlib.outcome == 'failure'
46
46
continue-on-error : true
47
- run : Get-Content ./buildtrees/zlib/config-${{ matrix.triplet }}-out.log
47
+ run : Get-Content ./buildtrees/zlib-ng /config-${{ matrix.triplet }}-out.log
48
48
- name : Read zlib debug build log
49
49
if : steps.zlib.outcome == 'success' || steps.zlib.outcome == 'failure'
50
50
continue-on-error : true
51
- run : Get-Content ./buildtrees/zlib/install-${{ matrix.triplet }}-dbg-out.log
51
+ run : Get-Content ./buildtrees/zlib-ng /install-${{ matrix.triplet }}-dbg-out.log
52
52
- name : Read zlib release build log
53
53
if : steps.zlib.outcome == 'success' || steps.zlib.outcome == 'failure'
54
54
continue-on-error : true
55
- run : Get-Content ./buildtrees/zlib/install-${{ matrix.triplet }}-rel-out.log
55
+ run : Get-Content ./buildtrees/zlib-ng /install-${{ matrix.triplet }}-rel-out.log
56
56
57
57
- name : Build brotli
58
58
id : brotli
Original file line number Diff line number Diff line change 22
22
| Library | Version | Release Date |
23
23
| ---| :---:| :---:|
24
24
| [ icu] ( http://site.icu-project.org ) | 76.1 | 2024-10-24 |
25
- | [ zlib] ( https://github.com/zlib-ng/zlib-ng ) | 2.2.2 | 2024-09-17 |
26
25
| [ curl] ( https://curl.se ) | 8.11.0 | 2024-11-05 |
27
26
| [ libxml2] ( http://xmlsoft.org ) | 2.13.5 | 2024-11-12 |
28
27
| [ sqlite] ( http://sqlite.org ) | 3.47.0 | 2024-10-21 |
Original file line number Diff line number Diff line change 1
- set (VERSION 2.2.2 )
2
-
3
- set (FILENAME "zlib-ng-${VERSION} .zip" )
4
- set (URLS "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/${VERSION} .zip" )
5
-
6
- # Get archive
7
- vcpkg_download_distfile (ARCHIVE
8
- URLS ${URLS}
9
- FILENAME ${FILENAME}
10
- SHA512 98586b3ce67bf481ccb94f3263340dffde10c3735218b0c60173a91fe931f4e40a772691c7d19b691a167ae9709f62efcc247c2711d15cf19ca3bd318cab9689
11
- )
12
-
13
- # Extract archive
14
- vcpkg_extract_source_archive_ex (
15
- OUT_SOURCE_PATH SOURCE_PATH
16
- ARCHIVE ${ARCHIVE}
17
- REF ${VERSION}
18
- PATCHES ${PATCHES}
19
- )
20
-
21
- # Run CMake build
22
- vcpkg_cmake_configure (
23
- SOURCE_PATH ${SOURCE_PATH}
24
- OPTIONS
25
- -DZLIB_COMPAT=ON
26
- -DZLIB_ENABLE_TESTS=OFF
27
- OPTIONS_DEBUG
28
- -DSKIP_INSTALL_HEADERS=ON
29
- )
30
-
31
- vcpkg_cmake_install ()
32
- vcpkg_copy_pdbs ()
33
- vcpkg_cmake_config_fixup (CONFIG_PATH lib/cmake/ZLIB )
34
- vcpkg_fixup_pkgconfig ()
35
-
36
- # Prepare distribution
37
- file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR} /debug/share )
38
- file (INSTALL ${SOURCE_PATH} /LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR} /share/zlib RENAME copyright )
39
- file (WRITE ${CURRENT_PACKAGES_DIR} /share/zlib/version "${VERSION} " )
1
+ # Mapping zlib-ng to zlib
2
+ set (VCPKG_POLICY_EMPTY_PACKAGE enabled )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " zlib" ,
3
- "version" : " 2.2.2 " ,
3
+ "version-string " : " zlib-ng " ,
4
4
"description" : " A compression library" ,
5
5
"homepage" : " https://github.com/zlib-ng/zlib-ng" ,
6
6
"license" : " Zlib" ,
7
7
"dependencies" : [
8
- {
9
- "name" : " vcpkg-cmake" ,
10
- "host" : true
11
- },
12
- {
13
- "name" : " vcpkg-cmake-config" ,
14
- "host" : true
15
- }
8
+ " zlib-ng"
16
9
]
17
10
}
Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ if (PORT STREQUAL "highway")
8
8
elseif (PORT STREQUAL "pixman" )
9
9
set (VCPKG_LIBRARY_LINKAGE static )
10
10
endif ()
11
+
12
+ # Turn on zlib compatibility
13
+ if (PORT STREQUAL "zlib-ng" )
14
+ set (ZLIB_COMPAT ON )
15
+ set (VCPKG_CMAKE_CONFIGURE_OPTIONS "-DZLIB_COMPAT=${ZLIB_COMPAT} " )
16
+ endif ()
You can’t perform that action at this time.
0 commit comments