summaryrefslogtreecommitdiffstats
path: root/win/config.py
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2011-03-17 04:55:47 +0000
committerJames Yonan <james@openvpn.net>2011-03-17 04:55:47 +0000
commitd02a86d37bed69ee3fb63d08913623a86c88da15 (patch)
tree560ef26dc6a745e0e8294c39c62570ce9142fa7a /win/config.py
downloadopenvpn-d02a86d37bed69ee3fb63d08913623a86c88da15.tar.gz
openvpn-d02a86d37bed69ee3fb63d08913623a86c88da15.tar.xz
openvpn-d02a86d37bed69ee3fb63d08913623a86c88da15.zip
Renamed branch to reflect that it is no longer beta.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7051 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'win/config.py')
-rw-r--r--win/config.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/win/config.py b/win/config.py
new file mode 100644
index 0000000..cf38cac
--- /dev/null
+++ b/win/config.py
@@ -0,0 +1,18 @@
+from wb import preprocess, autogen, mod_fn, home_fn, build_autodefs, make_headers_objs, dict_def
+
+def main(config):
+ build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
+ ho = make_headers_objs(home_fn('Makefile.am'))
+
+ preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
+ in_fn=mod_fn('msvc.mak.in'),
+ out_fn=home_fn('msvc.mak'),
+ quote_begin='@',
+ quote_end='@',
+ if_prefix='!',
+ head_comment='# %s\n\n' % autogen)
+
+# if we are run directly, and not loaded as a module
+if __name__ == "__main__":
+ from wb import config
+ main(config)