Skip to content

Instantly share code, notes, and snippets.

@maluramichael
Created October 22, 2013 08:30
Show Gist options
  • Save maluramichael/7097105 to your computer and use it in GitHub Desktop.
Save maluramichael/7097105 to your computer and use it in GitHub Desktop.
Sample SConstruct
import os
import sys
import glob
libraryDirs = [
os.environ['Boost_DIR'] + "\\lib64-msvc-9.0",
]
includeDirs = [
os.environ['Boost_DIR'],
'external\\NvApi\\include',
os.environ['QT5'] + '\\include',
os.environ['QT5'] + '\\include\\QtCore',
]
libs = []
for folder in libraryDirs:
libs += glob.glob(folder + '\\*-vc90-mt-1_53.lib')
env = Environment()
env.AppendUnique(CXXFLAGS=Split("/EHsc"));
env.Append(LIBPATH = libs);
env.Append(CPPPATH = includeDirs);
conf = Configure(env)
platform = sys.platform
if platform == 'win32':
src = os.path.abspath('Renderer')
p = env.Program('Renderer', Glob(src + '/*.cpp'), LIBS=libs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment