1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-28 07:29:45 +00:00
CLK/OSBindings/SDL/SConstruct

21 lines
502 B
Python

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)