import os
env = Environment()
env['ENV']['PKG_CONFIG_PATH'] = os.environ.get('PKG_CONFIG_PATH')
# config
libs = ['helianthus']
flags = ' -O0 -g -lm -Wall -fmessage-length=0 -fdebug-prefix-map=src=demo/src '
# files
sources = [
'common.c',
'benchmark.c',
'drawing.c',
'font.c',
'framebuffer.c',
'main.c',
'phisics.c',
'sprites.c' ]
# build
env.ParseConfig('pkg-config --cflags --libs ' + ' '.join(libs))
env.Program(
target = 'demo',
source = sources,
parse_flags = flags )