diff --git a/playground/msvc/test.c b/playground/msvc/test.c new file mode 100644 index 00000000..9476f106 --- /dev/null +++ b/playground/msvc/test.c @@ -0,0 +1,11 @@ +#include + +int main(int argc, char** argv) +{ + (void)argc; + (void)argv; + + puts("This is a simple test program.\n"); + + return 0; +} diff --git a/playground/msvc/wscript b/playground/msvc/wscript new file mode 100644 index 00000000..18c40c26 --- /dev/null +++ b/playground/msvc/wscript @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# encoding: utf-8 + +top = '.' +out = 'build' + +def options(opt): + opt.load('msvc') + +def configure(cfg): + cfg.load('msvc') + cfg.load('msvc_pdb') + cfg.env.append_value('CFLAGS','/Zi') + cfg.env.append_value('LDFLAGS','/DEBUG') + +def build(bld): + bld.program( + name='test', + source=['test.c'], + target='test', + use='CRT_MULTITHREADED_DLL')