17 lines
502 B
Python
17 lines
502 B
Python
# vim:filetype=python
|
|
|
|
import os
|
|
import sys
|
|
|
|
env = Environment(LIBS = ['GL', 'GLU', 'SDL_image'],
|
|
CFLAGS = ['-Wall'],
|
|
CXXFLAGS = ['-Wall'])
|
|
env.ParseConfig('sdl-config --cflags --libs')
|
|
|
|
sources = [Glob('*.cc'), Glob('wfobj/WFObj.cc'), Glob('loadTexture/*.c')]
|
|
env.Program('wfobj-view', sources)
|
|
|
|
if len(os.listdir('wfobj')) == 0:
|
|
sys.stderr.write('Warning: wfobj submodule not initialized\n')
|
|
sys.stderr.write('Warning: perhaps you should run `git submodule update --init`\n')
|