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.
19 lines
406 B
Python
19 lines
406 B
Python
#! /usr/bin/env python
|
|
|
|
"""
|
|
Use a system library as if it were part of the project
|
|
Among others:
|
|
- it may be present in the 'use' argument
|
|
- the program will be rebuilt if the library changes (hash)
|
|
"""
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
|
|
def configure(conf):
|
|
conf.load('compiler_c')
|
|
|
|
def build(bld):
|
|
bld.read_shlib('m', paths=['/usr/lib64'])
|
|
bld.program(source='main.c', target='app', use='m')
|