mirror of
https://github.com/google/pebble.git
synced 2025-03-15 16:51:21 +00:00
25 lines
727 B
Python
25 lines
727 B
Python
import waftools
|
|
|
|
|
|
def build(bld):
|
|
sources = bld.path.ant_glob('**/*.c')
|
|
|
|
def build_lib(target, env, platform_uses):
|
|
# Build the directory using firmware environment
|
|
bld.stlib(source=sources,
|
|
target=target,
|
|
includes=['.', 'include'],
|
|
use=['pblibc_includes',
|
|
'libutil_includes'] + platform_uses,
|
|
env=env.derive())
|
|
|
|
bld(export_includes=['include'], name='libos_includes')
|
|
|
|
if bld.env in (bld.all_envs['local'], bld.all_envs['32bit']):
|
|
# Skip building sources for local builds, like unit tests.
|
|
return
|
|
|
|
build_lib('libos', bld.env, ['fw_includes', 'freertos'])
|
|
|
|
|
|
# vim:filetype=python
|