mirror of
https://github.com/google/pebble.git
synced 2025-07-04 22:00:38 -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
33
applib-targets/wscript
Normal file
33
applib-targets/wscript
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue