Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created May 8, 2012 05:44
Show Gist options
  • Save WideWord/2632854 to your computer and use it in GitHub Desktop.
Save WideWord/2632854 to your computer and use it in GitHub Desktop.
env = Environment()
libs=['glfw', 'GLEW']
if env['PLATFORM'] == 'posix':
env['LIBPATH']=['../glfw-2.7.5/lib/x11', '../glew-1.7.0/lib']
env['CPPPATH']=['../glfw-2.7.5/include', '../glew-1.7.0/include']
libs += ["rt", "X11", "GL", "pthread", "m"]
conf = Configure(env)
for lib in libs:
if not conf.CheckLib(lib):
print lib + ' not found!';
Exit(1)
env = conf.Finish()
env.Append(RPATH = './')
env.SharedLibrary('bin/engine', Glob('src/*.cc'),LIBS=libs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment