Skip to content

Commit

Permalink
Merge pull request #2 from jpakkane/5.2.1
Browse files Browse the repository at this point in the history
Updated definitions to new Meson release.
  • Loading branch information
jpakkane committed Dec 17, 2015
2 parents 7965441 + 62e1681 commit 7c8fbfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
9 changes: 2 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# liblzma is what upstream uses for their pkg-config name
project('liblzma', 'c')
project('liblzma', 'c', version : '5.2.1', license : 'pd/lgpl2/gpl2/gpl3')

cc = meson.get_compiler('c')
cdata = configuration_data()
Expand Down Expand Up @@ -76,11 +76,6 @@ configure_file(input : 'config.h.meson',
configuration : cdata
)

if get_option('shared_lib')
libtype = 'shared_library'
else
libtype = 'static_library'
endif

confinc = include_directories('.')
subdir('src')

2 changes: 0 additions & 2 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
option('shared_lib', type : 'boolean', value : false)

option('decoder_arm', type : 'boolean', value : false)
option('decoder_armthumb', type : 'boolean', value : false)
option('decoder_delta', type : 'boolean', value : true)
Expand Down
3 changes: 1 addition & 2 deletions src/liblzma/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ endif
lzmainc = include_directories('api', 'common',
'check', 'lz', 'rangecoder', 'lzma', 'delta', 'simple', '../common')

liblzma = build_target('lzma', lzma_sources,
liblzma = library('lzma', lzma_sources,
main_dec_sources, main_enc_sources, check_sources,
simplefilter_sources, lzma1_sources,
lz_sources, delta_sources,
include_directories : [confinc, lzmainc],
c_args : ['-DHAVE_CONFIG_H', '-DTUKLIB_SYMBOL_PREFIX=lzma_'],
target_type : libtype,
)

0 comments on commit 7c8fbfc

Please sign in to comment.