aboutsummaryrefslogtreecommitdiff
path: root/win/config.py
blob: cf38cac17318b53be503c4cbf37bc4670c192a8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)