8 env.Replace(QT4_MOCHSUFFIX = ".cpp")
9 env.Replace(QT4_MOCHPREFIX = "#.build/visualizer/moc_")
10 env.Replace(QT4_QRCCXXPREFIX = ".build/qrc_")
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])