Merge branch 'windows-fixes' into 'master'
Misc fixes See merge request federicomenaquintero/bzip2!14
This commit is contained in:
commit
be540ff449
3
bzlib.h
3
bzlib.h
@ -81,6 +81,9 @@ typedef
|
||||
/* windows.h define small to char */
|
||||
# undef small
|
||||
# endif
|
||||
# ifndef WINAPI
|
||||
# define WINAPI
|
||||
# endif
|
||||
# ifdef BZ_EXPORT
|
||||
# define BZ_API(func) WINAPI func
|
||||
# define BZ_EXTERN extern
|
||||
|
@ -1,5 +1,5 @@
|
||||
LIBRARY LIBBZ2
|
||||
DESCRIPTION "libbzip2: library for data compression"
|
||||
LIBRARY bz2-1
|
||||
DESCRIPTION "bz2: library for data compression"
|
||||
EXPORTS
|
||||
BZ2_bzCompressInit
|
||||
BZ2_bzCompress
|
||||
|
31
meson.build
31
meson.build
@ -24,14 +24,27 @@ if cc.has_function_attribute('visibility')
|
||||
c_args += '-DBZ_EXTERN=__attribute__((__visibility__("default")))'
|
||||
endif
|
||||
|
||||
libbzip2 = library(
|
||||
'bzip2',
|
||||
['blocksort.c', 'huffman.c', 'crctable.c', 'randtable.c', 'compress.c', 'decompress.c', 'bzlib.c'],
|
||||
c_args : c_args,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
version : meson.project_version(),
|
||||
install : true,
|
||||
)
|
||||
bz_sources = ['blocksort.c', 'huffman.c', 'crctable.c', 'randtable.c', 'compress.c', 'decompress.c', 'bzlib.c']
|
||||
|
||||
if ['msvc', 'clang-cl', 'intel-cl'].contains(cc.get_id())
|
||||
libbzip2 = library(
|
||||
'bz2',
|
||||
bz_sources,
|
||||
c_args : c_args,
|
||||
vs_module_defs : 'libbz2.def',
|
||||
version : meson.project_version(),
|
||||
install : true,
|
||||
)
|
||||
else
|
||||
libbzip2 = library(
|
||||
'bz2',
|
||||
bz_sources,
|
||||
c_args : c_args,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
version : meson.project_version(),
|
||||
install : true,
|
||||
)
|
||||
endif
|
||||
|
||||
bzip2 = executable(
|
||||
'bzip2',
|
||||
@ -66,4 +79,4 @@ install_headers('bzlib.h')
|
||||
|
||||
subdir('man')
|
||||
subdir('docs')
|
||||
subdir('tests')
|
||||
subdir('tests')
|
||||
|
Loading…
Reference in New Issue
Block a user