[liblzma] fix emscripten build (#29561)

* fix wasm32

* port-version

* add ver
This commit is contained in:
Leonid Pospelov 2023-02-11 01:30:30 +06:00 committed by GitHub
parent e752415c5f
commit 371892cc20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View File

@ -15,10 +15,16 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tools BUILD_TOOLS
)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
set(WASM_OPTIONS -DCMAKE_C_BYTE_ORDER=LITTLE_ENDIAN -DCMAKE_CXX_BYTE_ORDER=LITTLE_ENDIAN)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
${WASM_OPTIONS}
-DBUILD_TESTING=OFF
-DCREATE_XZ_SYMLINKS=OFF
-DCREATE_LZMA_SYMLINKS=OFF

View File

@ -1,6 +1,7 @@
{
"name": "liblzma",
"version-semver": "5.4.1",
"port-version": 1,
"description": "Compression library with an API similar to that of zlib.",
"homepage": "https://tukaani.org/xz/",
"license": null,

View File

@ -4078,7 +4078,7 @@
},
"liblzma": {
"baseline": "5.4.1",
"port-version": 0
"port-version": 1
},
"libmad": {
"baseline": "0.15.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9a3ebbf75e1c3adb76d7e71717c1f03bb291036a",
"version-semver": "5.4.1",
"port-version": 1
},
{
"git-tree": "cb3a335e4a3b87257befc477154ee6901f3d7525",
"version-semver": "5.4.1",