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

33
applib-targets/wscript Normal file
View file

@ -0,0 +1,33 @@
def options(opt):
opt.add_option('--target', action='store',
choices=['sdl', 'emscripten'],
help='What backend we are compiling applib against (#rockyJS)')
def configure(conf):
if conf.options.target is None:
return
else:
conf.env.APPLIB_TARGET = conf.options.target
conf.recurse(conf.options.target)
def build(bld):
if bld.variant == 'test':
bld.recurse('emscripten')
return
if bld.env.APPLIB_TARGET is None:
bld(export_includes=[], name='target_includes')
return
bld.set_env(bld.all_envs['local'])
# time_t is defined in sys/types in newlib, and time.h on recent Linux
# so just force the defined type for testing time
bld.env.CFLAGS.append('-Dtime_t=__SYSCALL_SLONG_TYPE')
bld(export_includes=['overrides'], name='target_includes')
bld.recurse(bld.env.APPLIB_TARGET)
# vim:filetype=python