You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/slides/presentation/snippets/waf-2/wscript

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!")