mirror of
https://github.com/google/pebble.git
synced 2025-05-22 03:14:52 +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
27
applib-targets/sdl/wscript
Normal file
27
applib-targets/sdl/wscript
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue