Created
October 22, 2013 08:30
-
-
Save maluramichael/7097105 to your computer and use it in GitHub Desktop.
Sample SConstruct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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