Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

View file

@ -0,0 +1,27 @@
import waflib
def configure(conf):
conf.check_cfg(msg='Checking for sdl-config',
path='sdl-config',
package='',
args='--cflags --libs',
uselib_store='SDL')
conf.find_program('objcopy gobjcopy', var='OBJCOPY')
# We are overriding the gcc toolchain include/time.h with our own
# just to check/force our version of <time.h>
conf.env.CFLAGS.append('-D_TIME_H_')
def build(bld):
sources = bld.path.ant_glob('*.c')
bld.stlib(source=sources,
target='applib_sdl',
includes='.',
export_includes='.',
use=['applib', 'fw_includes', 'libutil', 'upng', 'SDL'])
bld.recurse('examples')
# vim:filetype=python