Created new icon for Aesalon.
[aesalon.git] / visualizer / src / SConscript
blobaf05f6a3d020ec111c18439e927983e5c62a5db7
1 import sys
2 import subprocess
4 Import("qtEnv")
6 env = qtEnv
8 projectRoot = env.Dictionary()["projectRoot"] + "/"
10 env.Replace(QT4_MOCHSUFFIX = ".cpp")
11 env.Replace(QT4_MOCHPREFIX = projectRoot + "visualizer/build/moc_")
12 env.Replace(QT4_QRCCXXPREFIX = projectRoot + "visualizer/build/qrc_")
14 automocPath = [
15         projectRoot + "visualizer/src/",
16         projectRoot + "include/visualizer/"]
18 dirType = type(Dir("."))
20 for item in Glob(projectRoot + "visualizer/src/*") + Glob(projectRoot + "include/visualizer/*"):
21         if type(item) == dirType:
22                 automocPath += [str(item)]
24 env.Replace(QT4_AUTOMOC_CPPPATH = automocPath)
26 env.EnableQt4Modules(["QtCore", "QtGui", "QtNetwork"])
28 visualizerIncludePath = env.Dictionary()["includeRoot"] + "/visualizer"
30 env.Append(CPPPATH = [visualizerIncludePath])
31 env.Append(CCFLAGS = ["-W", "-Wall", "-g", "-DAesalonVisualizer"])
33 sourceFiles = Glob("*.cpp", strings=True) + Glob("*/*.cpp", strings=True) + Glob("*.qrc", strings=True)
35 env.Program(target = "aesalon_visualizer", source = sourceFiles)