mirror of
https://github.com/google/pebble.git
synced 2025-07-16 11:06:43 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
25
src/libos/wscript
Normal file
25
src/libos/wscript
Normal file
|
@ -0,0 +1,25 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue