Skip to content

Commit 93e7241

Browse files
author
Oleh Kulykov
committed
1722612409
1 parent b1410b5 commit 93e7241

File tree

11 files changed

+27
-36
lines changed

11 files changed

+27
-36
lines changed

CMakeLists.txt

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -223,48 +223,43 @@ if (LIBPLZMA_OPT_ANDROID)
223223
endif()
224224

225225
# ---- check include ----
226-
CHECK_INCLUDE_FILE("sys/types.h" LIBPLZMA_HAVE_SYS_TYPES_H)
227-
if (LIBPLZMA_HAVE_SYS_TYPES_H)
228-
add_definitions(-DHAVE_SYS_TYPES_H=1)
229-
endif()
230-
231-
CHECK_INCLUDE_FILE("sys/sys_types.h" LIBPLZMA_HAVE_SYS_SYS_TYPES_H)
232-
if (LIBPLZMA_HAVE_SYS_SYS_TYPES_H)
226+
CHECK_INCLUDE_FILE("sys/sys_types.h" HAVE_SYS_SYS_TYPES_H)
227+
if (HAVE_SYS_SYS_TYPES_H)
233228
add_definitions(-DHAVE_SYS_SYS_TYPES_H=1)
234229
endif()
235230

236-
CHECK_INCLUDE_FILE("sys/sysmacros.h" LIBPLZMA_HAVE_SYS_SYSMACROS_H)
237-
if (LIBPLZMA_HAVE_SYS_SYSMACROS_H)
231+
CHECK_INCLUDE_FILE("sys/sysmacros.h" HAVE_SYS_SYSMACROS_H)
232+
if (HAVE_SYS_SYSMACROS_H)
238233
add_definitions(-DHAVE_SYS_SYSMACROS_H=1)
239234
endif()
240235

241-
CHECK_INCLUDE_FILE("sys/utime.h" LIBPLZMA_HAVE_SYS_UTIME_H)
242-
if (LIBPLZMA_HAVE_SYS_UTIME_H)
236+
CHECK_INCLUDE_FILE("sys/utime.h" HAVE_SYS_UTIME_H)
237+
if (HAVE_SYS_UTIME_H)
243238
add_definitions(-DHAVE_SYS_UTIME_H=1)
244239
endif()
245240

246-
CHECK_INCLUDE_FILE("utime.h" LIBPLZMA_HAVE_UTIME_H)
247-
if (LIBPLZMA_HAVE_UTIME_H)
241+
CHECK_INCLUDE_FILE("utime.h" HAVE_UTIME_H)
242+
if (HAVE_UTIME_H)
248243
add_definitions(-DHAVE_UTIME_H=1)
249244
endif()
250245

251-
CHECK_INCLUDE_FILE("semaphore.h" LIBPLZMA_SEMAPHORE_H)
252-
if (LIBPLZMA_SEMAPHORE_H)
246+
CHECK_INCLUDE_FILE("semaphore.h" HAVE_SEMAPHORE_H)
247+
if (HAVE_SEMAPHORE_H)
253248
add_definitions(-DHAVE_SEMAPHORE_H=1)
254249
endif()
255250

256-
CHECK_INCLUDE_FILE("unistd.h" LIBPLZMA_UNISTD_H)
257-
if (LIBPLZMA_UNISTD_H)
251+
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
252+
if (HAVE_UNISTD_H)
258253
add_definitions(-DHAVE_UNISTD_H=1)
259254
endif()
260255

261-
CHECK_INCLUDE_FILE("pthread.h" LIBPLZMA_PTHREAD_H)
262-
if (LIBPLZMA_PTHREAD_H)
256+
CHECK_INCLUDE_FILE("pthread.h" HAVE_PTHREAD_H)
257+
if (HAVE_PTHREAD_H)
263258
add_definitions(-DHAVE_PTHREAD_H=1)
264259
endif()
265260

266-
CHECK_INCLUDE_FILE("android/api-level.h" LIBPLZMA_ANDROID_API_LEVEL_H)
267-
if (LIBPLZMA_ANDROID_API_LEVEL_H)
261+
CHECK_INCLUDE_FILE("android/api-level.h" HAVE_ANDROID_API_LEVEL_H)
262+
if (HAVE_ANDROID_API_LEVEL_H)
268263
add_definitions(-DHAVE_ANDROID_API_LEVEL_H=1)
269264
endif()
270265

PLzmaSDK-ObjC.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414

1515
s.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp}', 'objc/*.{mm,h,inl}'
1616
s.public_header_files = 'objc/*.h'
17-
s.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=946', '-DLIBPLZMA_NO_C_BINDINGS=1'
17+
s.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1047', '-DLIBPLZMA_NO_C_BINDINGS=1'
1818
s.libraries = 'c++'
1919
s.requires_arc = true
2020

PLzmaSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.subspec 'libplzma' do |libplzma|
1717
libplzma.source_files = 'libplzma.h', 'libplzma.hpp', 'src/**/*.{c,cpp,h,hpp}'
1818
libplzma.public_header_files = 'libplzma.h'
19-
libplzma.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=946'
19+
libplzma.compiler_flags = '-fPIC -fno-rtti -DLIBPLZMA_VERSION_BUILD=1047'
2020
libplzma.libraries = 'c++'
2121
end
2222

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ let package = Package(
1313
.target(name: "libplzma",
1414
path: "src",
1515
cSettings: [
16-
.define("LIBPLZMA_VERSION_BUILD", to: "946"),
16+
.define("LIBPLZMA_VERSION_BUILD", to: "1047"),
1717
.unsafeFlags(["-fPIC"])
1818
],
1919
cxxSettings: [
20-
.define("LIBPLZMA_VERSION_BUILD", to: "946"),
20+
.define("LIBPLZMA_VERSION_BUILD", to: "1047"),
2121
.unsafeFlags(["-fPIC", "-fno-rtti"])
2222
]),
2323
.target(name: "PLzmaSDK",

android/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ ALL_INCLUDES := $(LOCAL_PATH)/../../../
158158
ALL_CFLAGS := \
159159
-DLIBPLZMA_BUILD=1 \
160160
-DLIBPLZMA_SHARED=1 \
161-
-DLIBPLZMA_VERSION_BUILD=946 \
161+
-DLIBPLZMA_VERSION_BUILD=1047 \
162162
-w
163163

164164

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ build_script:
5656
- cmake %CMAKE_ARGS% ..
5757
- cmake --build . --config Release --parallel 4
5858
- ctest --verbose
59-
- cmake --build . --config Release --target Install
59+
- cmake --build . --config Release --target install
6060
- cd ..

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
'target_name': 'plzmasdk',
55
'defines': [
6-
'LIBPLZMA_VERSION_BUILD=946',
6+
'LIBPLZMA_VERSION_BUILD=1047',
77
'LIBPLZMA_SHARED=1',
88
'LIBPLZMA_NO_C_BINDINGS=1',
99
'LIBPLZMA_HAVE_STD=1',

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ android {
2222
versionName "1.4.6"
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=946"
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=1047"
2626
cppFlags "-fexceptions"
2727
}
2828
}

cmake_tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ remove_definitions(-DCMAKE_BUILD=1)
3434
remove_definitions(-DLIBPLZMA_BUILD=1)
3535

3636
# ---- definitions ----
37-
if (WIN32 OR WIN64)
37+
if (WIN32)
3838
add_definitions(-DUNICODE=1)
3939
add_definitions(-D_UNICODE=1)
4040
endif()

src/plzma_path_utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
# include <sys/time.h>
5555
# include <dirent.h>
5656
# include <unistd.h>
57-
# if __has_include(<direct.h>) || defined(LIBPLZMA_MINGW)
57+
# if __has_include(<direct.h>) || defined(HAVE_DIRECT_H) || defined(LIBPLZMA_MINGW)
5858
# include <direct.h>
5959
# endif
60-
# if __has_include(<io.h>) || defined(LIBPLZMA_MINGW)
60+
# if __has_include(<io.h>) || defined(HAVE_IO_H) || defined(LIBPLZMA_MINGW)
6161
# include <io.h>
6262
# endif
6363
# if defined(LIBPLZMA_MINGW)

0 commit comments

Comments
 (0)