Skip to content

Commit

Permalink
[szip] Fix build on android (microsoft#32914)
Browse files Browse the repository at this point in the history
* [szip] Fix build on android

* update version database

* fix ci baseline

* fix ci.baseline.txt
  • Loading branch information
xiaozhuai authored Aug 4, 2023
1 parent 3e7978b commit 64d69a7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ports/szip/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ vcpkg_extract_source_archive(
mingw-lib-names.patch
)

if (VCPKG_TARGET_IS_IOS OR VCPKG_TARGET_IS_OSX)
if (VCPKG_TARGET_IS_ANDROID OR VCPKG_TARGET_IS_IOS OR VCPKG_TARGET_IS_OSX)
# when cross-compiling, try_run will not work.
# LFS "large file support" is keyed on
# 1) 64-bit off_t (https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html table 2-1)
# 2) stat works properly, which is true
set(extra_opts
-DTEST_LFS_WORKS_RUN=TRUE
-DTEST_LFS_WORKS_RUN__TRYRUN_OUTPUT=""
-DHAVE_DEFAULT_SOURCE_RUN=0
-DHAVE_DEFAULT_SOURCE_RUN__TRYRUN_OUTPUT=""
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion ports/szip/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "szip",
"version": "2.1.1",
"port-version": 11,
"port-version": 12,
"description": "Szip compression software, providing lossless compression of scientific data",
"homepage": "https://support.hdfgroup.org/ftp/lib-external/szip",
"license": null,
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ gz-tools2:x64-android=fail
gz-tools2:arm64-android=fail
halide:x64-windows-static=fail
hdf5:arm64-windows=fail
hdf5:arm-neon-android=fail
hdf5:arm64-android=fail
hdf5:x64-android=fail
hexl:x64-android=fail
highs:arm-neon-android=fail
highs:arm64-android=fail
Expand Down Expand Up @@ -1274,9 +1277,6 @@ symengine:x64-windows-static-md=fail
systemc:arm64-windows=fail
systemc:arm-uwp=fail
systemc:x64-uwp=fail
szip:arm-neon-android=fail
szip:arm64-android=fail
szip:x64-android=fail
tcl:arm-neon-android=fail
tcl:arm-uwp=fail
tcl:arm64-android=fail
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7962,7 +7962,7 @@
},
"szip": {
"baseline": "2.1.1",
"port-version": 11
"port-version": 12
},
"tabulate": {
"baseline": "1.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/szip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bc7c8053e3d7b1926f2a1771e122d151282ecd8d",
"version": "2.1.1",
"port-version": 12
},
{
"git-tree": "d70141a3b02fbaec47b0aae75b6abdee3502a0b7",
"version": "2.1.1",
Expand Down

0 comments on commit 64d69a7

Please sign in to comment.