Python-based buildsystem uses win/config.py to obtain global build parameters
from various sources. Added parsing of the (fake) configure.h and version.m4 to
it so that other Python build files can use them.
---
 win/config.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/win/config.py b/win/config.py
index cf38cac..d4dc6f4 100644
--- a/win/config.py
+++ b/win/config.py
@@ -1,6 +1,8 @@
-from wb import preprocess, autogen, mod_fn, home_fn, build_autodefs, 
make_headers_objs, dict_def
+from wb import preprocess, autogen, mod_fn, home_fn, build_configure_h, 
build_version_m4_vars, build_autodefs, make_headers_objs, dict_def

 def main(config):
+    build_configure_h(config, mod_fn(home_fn('configure.h')), head_comment='/* 
%s */\n\n' % autogen)
+    build_version_m4_vars(mod_fn(mod_fn('version_m4_vars.tmp')), 
head_comment='/* %s */\n\n' % autogen)
     build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
     ho = make_headers_objs(home_fn('Makefile.am'))

-- 
1.6.3.3


Reply via email to