Skip to content

Commit

Permalink
[liblzma] fix emscripten build (#29561)
Browse files Browse the repository at this point in the history
* fix wasm32

* port-version

* add ver
  • Loading branch information
Pospelove committed Feb 10, 2023
1 parent e752415 commit 371892c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ports/liblzma/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ports/liblzma/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4078,7 +4078,7 @@
},
"liblzma": {
"baseline": "5.4.1",
"port-version": 0
"port-version": 1
},
"libmad": {
"baseline": "0.15.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/liblzma.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9a3ebbf75e1c3adb76d7e71717c1f03bb291036a",
"version-semver": "5.4.1",
"port-version": 1
},
{
"git-tree": "cb3a335e4a3b87257befc477154ee6901f3d7525",
"version-semver": "5.4.1",
Expand Down

0 comments on commit 371892c

Please sign in to comment.