From a8539ac0046d790eb744c0afa14502467a4f1eda Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 8 Oct 2024 12:27:41 +0300 Subject: [PATCH] 3rdparty: bzip2: add pre-generated bz_version.h header as some generators (like cmake.py) don't understand subst yet --- 3rdparty/bzip2/wscript | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/3rdparty/bzip2/wscript b/3rdparty/bzip2/wscript index 3e8c0cc1..5dd8eb86 100644 --- a/3rdparty/bzip2/wscript +++ b/3rdparty/bzip2/wscript @@ -1,10 +1,6 @@ #! /usr/bin/env python # encoding: utf-8 -BZIP_CHECK='''#include -int main(void) { return BZ2_bzlibVersion() != NULL; } -''' - def options(opt): pass @@ -17,17 +13,17 @@ def configure(conf): conf.define('BZ_UNIX', 1) def build(bld): - 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 = 'bz_version.h', +# BZ_VERSION='1.1.0-fwgs' +# ) bld.stlib( source = bld.path.ant_glob(['bzip2/*.c']), target = 'bzip2', - use = 'bz_version.h', +# use = 'bz_version.h', features = 'c', includes = ['bzip2/', '.'], subsystem = bld.env.MSVC_SUBSYSTEM,