2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-04 07:50:30 +01:00
waf/docs/slides/presentation/snippets/waf-2/wscript
2011-09-10 11:13:51 +02:00

35 lines
486 B
Python

#!/usr/bin/env python
# encoding: utf-8
def configure(ctx):
ctx.load("compiler_c compiler_cxx")
def build(bld):
bld(
features="cxx",
source="liba/a.c",
export_includes="liba",
target="a",
)
bld(
features="cxx",
source="libb/b.cpp",
export_includes="libb",
target="b",
use="a"
)
bld.program(
features="cxx",
source="main.c",
target="program",
use="b",
)
def options(opt):
opt.load("compiler_c compiler_cxx")
def hello(ctx):
print("Hello World!")