3rdparty: bzip2: wscript: bring back generating bz_version.h.in now that cmake.py has subst support
This commit is contained in:
parent
884e052d98
commit
26230596ba
2 changed files with 3 additions and 11 deletions
1
3rdparty/bzip2/bz_version.h
vendored
1
3rdparty/bzip2/bz_version.h
vendored
|
@ -1 +0,0 @@
|
|||
#define BZ_VERSION "1.1.0-fwgs"
|
13
3rdparty/bzip2/wscript
vendored
13
3rdparty/bzip2/wscript
vendored
|
@ -14,20 +14,13 @@ def configure(conf):
|
|||
conf.define('BZ_UNIX', 1)
|
||||
|
||||
def build(bld):
|
||||
# doesn't work with CMake generator
|
||||
# bld(
|
||||
# features = 'subst',
|
||||
# source = 'bzip2/bz_version.h.in',
|
||||
# target = 'bz_version.h',
|
||||
# BZ_VERSION='1.1.0-fwgs'
|
||||
# )
|
||||
bld(features = 'subst', source = 'bzip2/bz_version.h.in', target = 'bzip2/bz_version.h', BZ_VERSION='1.1.0-fwgs')
|
||||
|
||||
bz_sources = ['bzip2/blocksort.c', 'bzip2/huffman.c', 'bzip2/crctable.c', 'bzip2/randtable.c', 'bzip2/compress.c', 'bzip2/decompress.c', 'bzip2/bzlib.c']
|
||||
|
||||
bld.stlib(
|
||||
source = bz_sources,
|
||||
target = 'bzip2',
|
||||
# use = 'bz_version.h',
|
||||
includes = ['.', 'bzip2/'],
|
||||
export_includes = ['bzip2/']
|
||||
includes = 'bzip2/',
|
||||
export_includes = 'bzip2/'
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue