Documented GViewport a small amount, fixed a translation bug in BasicViewport.
[aesalon.git] / src / visualizer / SConscript
blob7569b4b04e5f2bbbedc6bbb91adf4600fb086248
1 import sys
2 import subprocess
4 Import("qtEnv")
6 env = qtEnv.Clone()
8 env.Replace(QT4_MOCHSUFFIX = ".cpp")
9 env.Replace(QT4_MOCHPREFIX = "#.build/visualizer/moc_")
10 env.Replace(QT4_QRCCXXPREFIX = ".build/qrc_")
12 automocPath = [
13         "#src/visualizer/",
14         "#include/visualizer/"]
16 dirType = type(Dir("."))
18 for item in Glob("#src/visualizer/*") + Glob("#include/visualizer/*"):
19         if type(item) == dirType:
20                 automocPath += [str(item)]
22 env.Replace(QT4_AUTOMOC_CPPPATH = automocPath)
24 env.EnableQt4Modules(["QtCore", "QtGui", "QtNetwork"])
26 env.Append(CPPPATH = ["#include/"])
27 env.Append(CCFLAGS = ["-W", "-Wall", "-g", "-DAesalonVisualizer"])
28 env.Append(LINKFLAGS = ["-rdynamic"])
29 env.Append(LINKFLAGS = ["-Xlinker", "--whole-archive", "-laesalon-config", "-laesalon-util", "-laesalon-storage", "-laesalon-artisan", "-Xlinker", "--no-whole-archive"])
31 sourceFiles = Glob("*.cpp", strings=True) + Glob("*/*.cpp", strings=True) + Glob("*.qrc", strings=True)
33 visualizer = env.Program(target = "aesalon_visualizer", source = sourceFiles)
35 Import(["util", "config", "storage", "artisan"])
36 Depends(visualizer, [util, config, storage, artisan])