Skip to content

Commit d42ec41

Browse files
author
Oleh Kulykov
committed
Release 1.5.0
1 parent f5734f5 commit d42ec41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2393
-403
lines changed

.github/workflows/cmake-mingw.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ jobs:
8181
shell: bash
8282
working-directory: ${{ steps.strings.outputs.build-output-dir }}
8383
run: tar -cJvf ${{ steps.strings.outputs.build-artifacts-name }}.tar.xz ${{ steps.strings.outputs.build-artifacts-name }}
84+

.github/workflows/cmake-multi-platform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,4 @@ jobs:
9494
run: |
9595
pwd
9696
ls -lhR
97+

.github/workflows/nodejs-multi-platform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ jobs:
2222
uses: actions/setup-node@v4
2323
- run: npm run install
2424
- run: npm run test
25+

.github/workflows/swift-multi-platform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ jobs:
2525
run: swift build
2626
- name: Run tests
2727
run: swift test
28+

CHANGELOG

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
(Portable, Patched, Package, cross-P-latform) Lzma SDK, libplzma
22

3-
1.4.9: (current):
3+
1.5.0: (current):
4+
- Update of the underlying code.
5+
6+
1.4.9:
47
- Adopt Pod Specs to use resource bundles.
58

69
1.4.8:

CMakeLists.txt

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@
2525

2626
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
2727

28-
project(libplzma LANGUAGES C CXX)
28+
if (WIN32)
29+
project(libplzma LANGUAGES C CXX)
30+
else()
31+
project(libplzma LANGUAGES ASM C CXX)
32+
endif()
2933

3034
set(CMAKE_CXX_STANDARD 11)
3135

3236
set(PACKAGE "libplzma")
3337
set(CPACK_PACKAGE_NAME "${PACKAGE}")
3438
set(CPACK_PACKAGE_VERSION_MAJOR "1")
35-
set(CPACK_PACKAGE_VERSION_MINOR "4")
36-
set(CPACK_PACKAGE_VERSION_PATCH "9")
39+
set(CPACK_PACKAGE_VERSION_MINOR "5")
40+
set(CPACK_PACKAGE_VERSION_PATCH "0")
3741
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
3842
set(CPACK_PACKAGE_VENDOR "olehkulykov@gmail.com")
3943
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PACKAGE} ${PACKAGE_VERSION}")
40-
set(SOVERSION "1.4.9")
44+
set(SOVERSION "1.5.0")
4145
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
4246
set(VERSION "${CPACK_PACKAGE_VERSION}")
4347

@@ -632,6 +636,13 @@ if(NOT LIBPLZMA_OPT_NO_TAR)
632636
)
633637
endif()
634638

639+
if (NOT WIN32)
640+
list(APPEND LIBPLZMA_SOURCES
641+
src/Asm/arm64/7zAsm.S
642+
src/Asm/arm64/LzmaDecOpt.S
643+
)
644+
endif()
645+
635646
# ---- groups(headers and sources) ----
636647
# ---- grop: public headers and sources ----
637648
source_group("public"
@@ -681,6 +692,12 @@ source_group("src"
681692
)
682693

683694
# ---- grop: Lzma C headers and sources ----
695+
source_group("Asm"
696+
FILES
697+
src/Asm/arm64/7zAsm.S
698+
src/Asm/arm64/LzmaDecOpt.S
699+
)
700+
684701
source_group("C"
685702
FILES
686703
src/C/7z.h

PLzmaSDK-ObjC.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PLzmaSDK-ObjC'
3-
s.version = '1.4.9'
3+
s.version = '1.5.0'
44
s.summary = '(Portable, Patched, Package, cross-P-latform) Lzma SDK, libplzma'
55
s.homepage = 'https://github.com/OlehKulykov/PLzmaSDK'
66
s.source = { :git => s.homepage + '.git', :tag => s.version }
@@ -14,9 +14,9 @@ Pod::Spec.new do |s|
1414
'PLzmaSDK_Privacy' => ['resources/PrivacyInfo.xcprivacy'],
1515
}
1616

17-
s.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp}', 'objc/*.{mm,h,inl}'
17+
s.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp,S}', 'objc/*.{mm,h,inl}'
1818
s.public_header_files = 'objc/*.h'
19-
s.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1174', '-DLIBPLZMA_NO_C_BINDINGS=1'
19+
s.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1198', '-DLIBPLZMA_NO_C_BINDINGS=1'
2020
s.libraries = 'c++'
2121
s.requires_arc = true
2222

PLzmaSDK.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PLzmaSDK'
3-
s.version = '1.4.9'
3+
s.version = '1.5.0'
44
s.summary = '(Portable, Patched, Package, cross-P-latform) Lzma SDK, libplzma'
55
s.homepage = 'https://github.com/OlehKulykov/PLzmaSDK'
66
s.source = { :git => s.homepage + '.git', :tag => s.version }
@@ -16,9 +16,9 @@ Pod::Spec.new do |s|
1616
}
1717

1818
s.subspec 'libplzma' do |libplzma|
19-
libplzma.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp}'
19+
libplzma.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp,S}'
2020
libplzma.public_header_files = 'libplzma.h'
21-
libplzma.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1174'
21+
libplzma.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1198'
2222
libplzma.libraries = 'c++'
2323
end
2424

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.4
22

33
import PackageDescription
44

@@ -13,11 +13,11 @@ let package = Package(
1313
.target(name: "libplzma",
1414
path: "src",
1515
cSettings: [
16-
.define("LIBPLZMA_VERSION_BUILD", to: "1174"),
16+
.define("LIBPLZMA_VERSION_BUILD", to: "1198"),
1717
.unsafeFlags(["-fPIC"])
1818
],
1919
cxxSettings: [
20-
.define("LIBPLZMA_VERSION_BUILD", to: "1174"),
20+
.define("LIBPLZMA_VERSION_BUILD", to: "1198"),
2121
.unsafeFlags(["-fPIC", "-fno-rtti"])
2222
]),
2323
.target(name: "PLzmaSDK",

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
**P**LzmaSDK is (**P**ortable, **P**atched, **P**ackage, cross-**P**-latform) Lzma SDK.
13-
Based on original [LZMA SDK] version 24.08 and patched for unix platforms.
13+
Based on original [LZMA SDK] version 24.09 and patched for unix platforms.
1414
Available for all Apple's platforms(iOS, macOS, tvOS, watchOS), Android, Windows, Linux and any unix'es.
1515

1616

@@ -55,7 +55,7 @@ All optional features are enabled by default, but they might be disabled during
5555
-----------
5656
#### Swift Package Manager
5757
```swift
58-
.package(url: "https://github.com/OlehKulykov/PLzmaSDK.git", .exact("1.4.9"))
58+
.package(url: "https://github.com/OlehKulykov/PLzmaSDK.git", .exact("1.5.0"))
5959
```
6060

6161
#### CocoaPods Podfile (Swift)
@@ -64,7 +64,7 @@ use_frameworks!
6464
platform :ios, '11.0'
6565

6666
target '<REPLACE_WITH_YOUR_TARGET>' do
67-
pod 'PLzmaSDK', '1.4.9'
67+
pod 'PLzmaSDK', '1.5.0'
6868
end
6969
```
7070

@@ -74,7 +74,7 @@ use_frameworks!
7474
platform :ios, '9.0'
7575

7676
target '<REPLACE_WITH_YOUR_TARGET>' do
77-
pod 'PLzmaSDK-ObjC', '1.4.9'
77+
pod 'PLzmaSDK-ObjC', '1.5.0'
7878
end
7979
```
8080

@@ -86,7 +86,7 @@ end
8686
"npm": ">=6.0.0"
8787
},
8888
"dependencies": {
89-
"plzmasdk": "1.4.9"
89+
"plzmasdk": "1.5.0"
9090
}
9191
}
9292
```

android/jni/Android.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ LOCAL_PATH:= $(call my-dir)
22

33

44
ALL_SOURCES := \
5+
../../src/Asm/arm64/7zAsm.S \
6+
../../src/Asm/arm64/LzmaDecOpt.S \
57
../../src/C/7zCrc.c \
68
../../src/C/7zCrcOpt.c \
79
../../src/C/7zStream.c \
@@ -157,7 +159,7 @@ ALL_INCLUDES := $(LOCAL_PATH)/../../../
157159
ALL_CFLAGS := \
158160
-DLIBPLZMA_BUILD=1 \
159161
-DLIBPLZMA_SHARED=1 \
160-
-DLIBPLZMA_VERSION_BUILD=1174 \
162+
-DLIBPLZMA_VERSION_BUILD=1198 \
161163
-w
162164

163165

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.4.9.{build}
1+
version: 1.5.0.{build}
22

33

44
os: Visual Studio 2019

binding.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
{
44
'target_name': 'plzmasdk',
55
'defines': [
6-
'LIBPLZMA_VERSION_BUILD=1174',
6+
'LIBPLZMA_VERSION_BUILD=1198',
77
'LIBPLZMA_SHARED=1',
88
'LIBPLZMA_NO_C_BINDINGS=1',
99
'LIBPLZMA_HAVE_STD=1',
1010
'LIBPLZMA_NO_CPP_RTTI=1'
1111
],
1212
'sources': [
1313
'node/module.cpp',
14+
'src/Asm/arm64/7zAsm.S',
15+
'src/Asm/arm64/LzmaDecOpt.S',
1416
'src/C/7zCrc.c',
1517
'src/C/7zCrcOpt.c',
1618
'src/C/7zStream.c',

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ android {
1919
minSdkVersion 21
2020
targetSdkVersion 26
2121
versionCode 1
22-
versionName "1.4.9"
22+
versionName "1.5.0"
2323
externalNativeBuild {
2424
cmake {
25-
arguments "-DANDROID_STL=c++_static", "-DANDROID_TOOLCHAIN=clang", "-DLIBCLZMA_OPT_ANDROID:BOOL=ON", "-DLIBCLZMA_OPT_STATIC:BOOL=OFF", "-DLIBCLZMA_OPT_TESTS:BOOL=OFF", "-DLIBCLZMA_OPT_BUILD_NUMBER=1174"
25+
arguments "-DANDROID_STL=c++_static", "-DANDROID_TOOLCHAIN=clang", "-DLIBCLZMA_OPT_ANDROID:BOOL=ON", "-DLIBCLZMA_OPT_STATIC:BOOL=OFF", "-DLIBCLZMA_OPT_TESTS:BOOL=OFF", "-DLIBCLZMA_OPT_BUILD_NUMBER=1198"
2626
cppFlags "-fexceptions"
2727
}
2828
}

cmake_tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,3 @@ foreach(LIBPLZMA_TEST ${LIBPLZMA_TESTS})
120120
# install(TARGETS ${LIBPLZMA_TEST} DESTINATION bin)
121121
# install(TARGETS "${LIBPLZMA_TEST}_static" DESTINATION bin)
122122
endforeach()
123-

libplzma.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
/// and all optional C bindings to the internal C++ part(Core) of the library.
4545
/// Everything what you need to use this library in C | Objective-C | Swift env. is here.
4646

47-
/// @brief Manualy defined version of the library, i.e. 1.4.9
47+
/// @brief Manualy defined version of the library, i.e. 1.5.0
4848
/// The optinal \a LIBPLZMA_VERSION_BUILD might be befined by the CI or CMake or manualy.
4949
/// Conforms 'Semantic Versioning 2.0.0'.
5050
/// @link https://semver.org
5151
#define LIBPLZMA_VERSION_MAJOR 1
52-
#define LIBPLZMA_VERSION_MINOR 4
53-
#define LIBPLZMA_VERSION_PATCH 9
52+
#define LIBPLZMA_VERSION_MINOR 5
53+
#define LIBPLZMA_VERSION_PATCH 0
5454

5555
// Check Windows
5656
#if defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(WIN64) || defined(WIN32_LEAN_AND_MEAN)

node_tests/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
'use strict';
33

44
const plzma = require('./../');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plzmasdk",
3-
"version": "1.4.9",
3+
"version": "1.5.0",
44
"description": "(Portable, Patched, Package, cross-P-latform) Lzma SDK, libplzma",
55
"author": "Oleh Kulykov <olehkulykov@gmail.com>",
66
"license": "SEE LICENSE IN LICENSE",

0 commit comments

Comments
 (0)