Warning, /geant4/config/G4VIS_USE.gmk is written in an unsupported language. File is not indexed.
0001 # -------------------------------------------------------------
0002 # GNUmakefile for CPPFLAGS for visualization USE phase.
0003 # John Allison, 24th January 1998.
0004
0005 ifndef G4VIS_NONE
0006
0007 ifndef G4VIS_USE_INCLUDED
0008 G4VIS_USE_INCLUDED = 1
0009
0010 ifndef VISLIBS
0011 VISLIBS :=
0012 endif
0013
0014 # Not needing external packages or libraries...
0015 # Set old USE C-pre-processor flags for backwards compatibility of user code...
0016
0017 CPPFLAGS += -DG4VIS_USE_ASCIITREE
0018 VISLIBS += -lG4Tree
0019
0020 CPPFLAGS += -DG4VIS_USE_DAWNFILE
0021 VISLIBS += -lG4FR
0022
0023 CPPFLAGS += -DG4VIS_USE_GMOCRENFILE
0024 VISLIBS += -lG4GMocren
0025
0026 CPPFLAGS += -DG4VIS_USE_HEPREPFILE
0027 VISLIBS += -lG4visHepRep
0028
0029 CPPFLAGS += -DG4VIS_USE_RAYTRACER
0030 VISLIBS += -lG4RayTracer
0031
0032 CPPFLAGS += -DG4VIS_USE_VRMLFILE
0033 VISLIBS += -lG4VRML
0034
0035 CPPFLAGS += -DG4VIS_USE_TOOLSSG_OFFSCREEN
0036 VISLIBS += -lG4ToolsSG
0037
0038 ifneq ($(G4INCLUDE_EXEC),1)
0039 CPPFLAGS += -I$(G4BASE)/visualization/FukuiRenderer/include
0040 CPPFLAGS += -I$(G4BASE)/visualization/gMocren/include
0041 CPPFLAGS += -I$(G4BASE)/visualization/HepRep/include
0042 CPPFLAGS += -I$(G4BASE)/visualization/RayTracer/include
0043 CPPFLAGS += -I$(G4BASE)/visualization/Tree/include
0044 CPPFLAGS += -I$(G4BASE)/visualization/VRML/include
0045 CPPFLAGS += -I$(G4BASE)/visualization/ToolsSG/include
0046 endif
0047
0048 ifdef G4VIS_USE_OPENGLX
0049 G4VIS_USE_OPENGL = 1
0050 CPPFLAGS += -DG4VIS_USE_OPENGLX
0051 INC_X11 = 1
0052 LOAD_X11 = 1
0053 endif
0054 ifdef G4VIS_USE_OPENGLXM
0055 G4VIS_USE_OPENGL = 1
0056 CPPFLAGS += -DG4VIS_USE_OPENGLXM
0057 INC_XM = 1
0058 LOAD_XM = 1
0059 endif
0060 ifdef G4VIS_USE_OPENGLQT
0061 G4VIS_USE_OPENGL = 1
0062 CPPFLAGS += -DG4VIS_USE_OPENGLQT
0063 VISLIBS += -lG4OpenGL
0064 INC_GL = 1
0065 INC_QT = 1
0066 LOAD_GLQT = 1
0067 endif
0068 ifdef G4VIS_USE_OPENGLWT
0069 G4VIS_USE_OPENGL = 1
0070 CPPFLAGS += -DG4VIS_USE_OPENGLWT
0071 VISLIBS += -lG4OpenGL
0072 INC_GL = 1
0073 INC_WT = 1
0074 LOAD_GLWT = 1
0075 INC_QT = 1
0076 LOAD_GLQT = 1
0077 endif
0078 ifdef G4VIS_USE_OPENGLWIN32
0079 G4VIS_USE_OPENGL = 1
0080 CPPFLAGS += -DG4VIS_USE_OPENGLWIN32
0081 endif
0082 ifdef G4VIS_USE_OPENGL
0083 CPPFLAGS += -DG4VIS_USE_OPENGL
0084 ifneq ($(G4INCLUDE_EXEC),1)
0085 CPPFLAGS += -I$(G4BASE)/visualization/OpenGL/include
0086 endif
0087 VISLIBS += -lG4OpenGL
0088 INC_GL = 1
0089 LOAD_GL = 1
0090 G4LIB_USE_GL2PS = 1
0091 endif
0092
0093 ifdef G4VIS_USE_OIX
0094 G4VIS_USE_OI = 1
0095 CPPFLAGS += -DG4VIS_USE_OIX
0096 INC_XM = 1
0097 LOAD_XM = 1
0098 endif
0099 ifdef G4VIS_USE_OIQT
0100 G4VIS_USE_OI = 1
0101 CPPFLAGS += -DG4VIS_USE_OIQT
0102 INC_QT = 1
0103 LOAD_QT = 1
0104 endif
0105 ifdef G4VIS_USE_OIWIN32
0106 G4VIS_USE_OI = 1
0107 CPPFLAGS += -DG4VIS_USE_OIWIN32
0108 endif
0109 ifdef G4VIS_USE_OI
0110 CPPFLAGS += -DG4VIS_USE_OI
0111 ifneq ($(G4INCLUDE_EXEC),1)
0112 CPPFLAGS += -I$(G4BASE)/visualization/OpenInventor/include
0113 endif
0114 VISLIBS += -lG4OpenInventor
0115 INC_IV = 1
0116 LOAD_IV = 1
0117 G4LIB_USE_GL2PS = 1
0118 endif
0119
0120 ifdef G4VIS_USE_QT3D
0121 CPPFLAGS += -DG4VIS_USE_QT3D
0122 VISLIBS += -lG4visQt3D
0123 ifneq ($(G4INCLUDE_EXEC),1)
0124 CPPFLAGS += -I$(G4BASE)/visualization/Qt3D/include
0125 endif
0126 INC_QT = 1
0127 LOAD_3DQT = 1
0128 endif
0129
0130 ifdef G4VIS_USE_RAYTRACERX
0131 CPPFLAGS += -DG4VIS_USE_RAYTRACERX
0132 # CPPFLAGS += -I... and VISLIBS += set above.
0133 INC_X11 = 1
0134 LOAD_X11 = 1
0135 endif
0136
0137 ifdef G4VIS_USE_VRML
0138 CPPFLAGS += -DG4VIS_USE_VRML
0139 # CPPFLAGS += -I... and VISLIBS += set above.
0140 endif
0141
0142 ########################### and finally... #######################
0143
0144 G4VIS_USE = 1
0145 CPPFLAGS += -DG4VIS_USE
0146 ifneq ($(G4INCLUDE_EXEC),1)
0147 CPPFLAGS += -I$(G4BASE)/visualization/management/include
0148 CPPFLAGS += -I$(G4BASE)/visualization/modeling/include
0149 endif
0150 VISLIBS += -lG4vis_management
0151 VISLIBS += -lG4modeling
0152
0153 endif # G4VIS_USE_INCLUDED
0154 endif # G4VIS_NONE