-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSConstruct
38 lines (34 loc) · 1.08 KB
/
SConstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# scons 2.7
import platform
import os
# set up your MinGW path here
mingw_path = "C:/DEV/MinGW32-4.8/mingw32/"
# set your Boost path here
boost_path = "C:/DEV/boost_1_52_0/"
# set your Boost path here
lua_path = "C:/DEV/Lua5.1"
if platform.system() == 'Windows':
env = Environment(tools = ['mingw'], ENV = os.environ)
env.PrependENVPath('PATH', mingw_path + "bin/")
env.PrependENVPath('LIB', mingw_path + "lib/")
# these aren't needed on *ix systems, since libraries are allready
# in some sort of /usr/lib/
env.Append(CPPPATH=[
boost_path,
lua_path + "/include",
"Catch/single_include",
"lundi"
])
env.Append(CPPFLAGS=["-Wall", "-g", "-std=c++11"])
env.Append(LIBPATH=[lua_path+"/lib"])
else:
env = Environment(ENV = os.environ)
env["CXX"] = "clang++"
# required on Travis because of gcc4.6 and clang 3.1
env.Append(CPPFLAGS=["-Wall", "-g", "-std=c++0x"])
env.Append(CPPPATH=[
"/usr/include/lua5.1/",
"lundi",
"Catch/single_include"
])
test = env.Program("test.cpp", LIBS="lua5.1")