1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-29 00:29:34 +00:00
CLK/OSBindings/SDL/SConstruct

21 lines
502 B
Python
Raw Normal View History

import glob
# create build environment
env = Environment()
# determine compiler and linker flags for SDL
env.ParseConfig('sdl2-config --cflags')
env.ParseConfig('sdl2-config --libs')
# gather a list of source files
SOURCES = glob.glob('*.cpp')
# add additional compiler flags
env.Append(CCFLAGS = ['-g', '-Wall', '--std=c++11'])
# add additional libraries to link against
env.Append(LIBS = ['libz'])
# build target
# output executable will be "game"
env.Program(target = 'game', source = SOURCES)