mirror of
https://github.com/google/pebble.git
synced 2025-03-19 10:31:21 +00:00
21 lines
431 B
Text
21 lines
431 B
Text
|
def configure(conf):
|
||
|
pass
|
||
|
|
||
|
def build(bld):
|
||
|
if 'DUMA_DISABLED' in bld.env.DEFINES:
|
||
|
return
|
||
|
|
||
|
import sys
|
||
|
|
||
|
defines = []
|
||
|
if 'linux' in sys.platform:
|
||
|
defines.append('_POSIX_C_SOURCE')
|
||
|
elif 'darwin' in sys.platform:
|
||
|
defines.append('DUMA_SO_PREFER_GETENV')
|
||
|
|
||
|
bld.stlib(source=['duma.c', 'print.c', 'sem_inc.c'],
|
||
|
defines=defines,
|
||
|
target='duma')
|
||
|
|
||
|
# vim:filetype=python
|