3rdparty: bzip2: add pre-generated bz_version.h header as some generators (like cmake.py) don't understand subst yet
This commit is contained in:
parent
9970c56218
commit
a8539ac004
1 changed files with 7 additions and 11 deletions
18
3rdparty/bzip2/wscript
vendored
18
3rdparty/bzip2/wscript
vendored
|
@ -1,10 +1,6 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
BZIP_CHECK='''#include <bzlib.h>
|
|
||||||
int main(void) { return BZ2_bzlibVersion() != NULL; }
|
|
||||||
'''
|
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -17,17 +13,17 @@ def configure(conf):
|
||||||
conf.define('BZ_UNIX', 1)
|
conf.define('BZ_UNIX', 1)
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld(
|
# bld(
|
||||||
features = 'subst',
|
# features = 'subst',
|
||||||
source = 'bzip2/bz_version.h.in',
|
# source = 'bzip2/bz_version.h.in',
|
||||||
target = 'bz_version.h',
|
# target = 'bz_version.h',
|
||||||
BZ_VERSION='1.1.0-fwgs'
|
# BZ_VERSION='1.1.0-fwgs'
|
||||||
)
|
# )
|
||||||
|
|
||||||
bld.stlib(
|
bld.stlib(
|
||||||
source = bld.path.ant_glob(['bzip2/*.c']),
|
source = bld.path.ant_glob(['bzip2/*.c']),
|
||||||
target = 'bzip2',
|
target = 'bzip2',
|
||||||
use = 'bz_version.h',
|
# use = 'bz_version.h',
|
||||||
features = 'c',
|
features = 'c',
|
||||||
includes = ['bzip2/', '.'],
|
includes = ['bzip2/', '.'],
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM,
|
subsystem = bld.env.MSVC_SUBSYSTEM,
|
||||||
|
|
Loading…
Add table
Reference in a new issue