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.
24 lines
379 B
Python
24 lines
379 B
Python
#! /usr/bin/env python
|
|
|
|
"""
|
|
Link against existing libraries from the project
|
|
"""
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c')
|
|
|
|
def build(bld):
|
|
bld.stlib(
|
|
source = 'test_staticlib.c',
|
|
target = 'mylib',
|
|
name = 'stlib1')
|
|
|
|
bld.program(
|
|
source = 'main.c',
|
|
target = 'app',
|
|
includes = '.',
|
|
use = ['stlib1'])
|