mirror of
https://github.com/google/pebble.git
synced 2025-05-20 10:24:58 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
24
src/libc/wscript
Normal file
24
src/libc/wscript
Normal file
|
@ -0,0 +1,24 @@
|
|||
import waftools.gitinfo
|
||||
|
||||
|
||||
def build(bld):
|
||||
# Collect all the files in the libc directory
|
||||
source_dirs = ['string', 'math', 'stub']
|
||||
sources = sum([bld.path.ant_glob('%s/*.[csS]' % d) for d in source_dirs], [])
|
||||
sources.extend(bld.path.ant_glob('*.[csS]'))
|
||||
|
||||
def build_libc(target, env):
|
||||
# Build the libc directory using firmware environment
|
||||
bld.stlib(source=sources,
|
||||
target=target,
|
||||
includes=['include', '.'],
|
||||
export_includes='include',
|
||||
cflags=['-fno-lto'],
|
||||
use='',
|
||||
env=env.derive())
|
||||
|
||||
bld(export_includes=['include'], name='pblibc_includes')
|
||||
build_libc('pblibc', bld.env)
|
||||
build_libc('pblibc-cm0', bld.all_envs['cortex-m0'])
|
||||
|
||||
# vim:filetype=python
|
Loading…
Add table
Add a link
Reference in a new issue