source: snovis/trunk/cmt/requirements @ 228

Last change on this file since 228 was 228, checked in by barrand, 16 years ago
File size: 4.4 KB
RevLine 
[109]1package snovis
2version v1r1
[103]3
4#//////////////////////////////////////////////////
5#/// Uses needed to build this package ////////////
6#//////////////////////////////////////////////////
7
[177]8use OpenScientist v1r16p0 Interfaces
[103]9
[109]10use snova v2r*
[103]11
12#////////////////////////////////////////////////////////////
13#////////////////////////////////////////////////////////////
[109]14#////////////////////////////////////////////////////////////
[103]15
16# Darwin : to build dlls properly :
[109]17macro make_shlib "$(make_shlib)" Darwin "$(SNOVISROOT)/cmt/cmt_make_shlib_common.sh extract"
[103]18
19#//////////////////////////////////////////////////
20#//////////////////////////////////////////////////
21#//////////////////////////////////////////////////
22
23build_strategy no_prototypes
24include_path none
25
[109]26include_dirs $(SNOVISROOT)
[103]27
28#//////////////////////////////////////////////////
[227]29#/// G4Lab ////////////////////////////////////////
30#//////////////////////////////////////////////////
31
32# Over Geant4, HEPVis and Inventor :
33library G4LabCore -s=../source/G4Lab/cxx \
34  Transform3D.cxx \
35  Polyhedron.cxx \
36  GeometryVisitor.cxx \
37  Tree.cxx \
38  Trajectory.cxx \
39  State.cxx \
40  SteppingAction.cxx \
41  TrackingAction.cxx \
42  SoG4RunManager.cxx \
43  SoVisitedVolume.cxx \
44  SoG4Trajectories.cxx \
45  PhysicalVolumeAccessor.cxx \
46  TrajectoryContainerAccessor.cxx \
47  TrajectoryAccessor.cxx \
48  PhysicsTableAccessor.cxx \
49  HitsCollectionAccessor.cxx \
50  DigitsCollectionAccessor.cxx \
51  Manager.cxx
52macro G4LabCore_cppflags "-I../source ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
53macro G4LabCore_linkopts "-L${SNOVISROOT}/$(CMTCONFIG) -lG4LabCore" WIN32 "${SNOVISROOT}\$(CMTCONFIG)\G4LabCore.lib"
54
55# G4LabUIOnX :
56# A Geant4 G4UISession for OnX.
57# It needs OnX. Avoid establishing a relationship with G4interfaces
58# that may be reconstructed with various GUI drivers.
59library G4LabUIOnX ../source/G4Lab/cxx/UIOnX.cxx
60macro G4LabUIOnX_cppflags "-I../source ${OSC_OnX_incs} ${Geant4_include}"
61macro G4LabUIOnX_linkopts "-L${SNOVISROOT}/$(CMTCONFIG) -lG4LabUIOnX" WIN32 "${SNOVISROOT}\$(CMTCONFIG)\G4LabUIOnX.lib"
62
63# DLD callbacks :
64# Over Lib only :
65macro G4Lab_kind "dll"
66library G4Lab ../source/G4Lab/cxx/Callbacks.cxx
67macro lib_G4Lab_cppflags "-I../source ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
68macro G4Lab_shlibflags "${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"
69
70#//////////////////////////////////////////////////
[103]71#/// DLD callbacks ////////////////////////////////
72#//////////////////////////////////////////////////
73
74# Must not use Geant4 singletons if having not Geant4 shared libs.
[109]75macro snovis_kind "dll"
76library snovis ../source/*.cxx
[228]77macro snovis_cppflags "-I../source ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
[109]78macro snovis_shlibflags "${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"
[103]79
80#//////////////////////////////////////////////////
[109]81#/// Applications /////////////////////////////////
[103]82#//////////////////////////////////////////////////
83
[227]84application prog_snova ../applications/prog_snova2.cxx use_linkopts='"${snova_ui_linkopts} ${snova_linkopts} ${Geant4_interfaces_linkopts} ${Geant4_vis_management_linkopts} ${Geant4_modeling_linkopts} ${Geant4_Tree_linkopts} ${Geant4_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts}"'
[103]85
86# Over G4Lab :
[112]87application snovis_session ../applications/snovis_session.cc use_linkopts='"${snova_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${OSC_G4Lab_linkopts} ${Geant4_linkopts} ${CLHEP_linkopts} ${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"'
88macro snovis_sessionlinkopts "" Darwin "-bind_at_load"
[103]89
90#//////////////////////////////////////////////////
91#//////////////////////////////////////////////////
92#//////////////////////////////////////////////////
93
94private
95macro build_library_links "true" WIN32 ""
96macro remove_library_links "true" WIN32 ""
97
98# WIN32 : /GR to enable RTTI and dynamic cast.
99# WIN32 : /GX to enable exception handling (for STL).
100macro_append cppflags "" WIN32 " /GX /GR"
101
102# DEBUG :
103#macro_append cflags  " -g" WIN32 " /ZI /Od"
104#macro_append cppflags  " -g" WIN32 " /ZI /Od"
105#macro_append cpplinkflags  " -g" WIN32 " /DEBUG"
106
107# OPTIMIZE :
108macro_append cflags  " -O" WIN32 " /O2"
109macro_append cppflags  " -O" WIN32 " /O2"
110macro_append cpplinkflags  " -O" WIN32 ""
111public
112
113#//////////////////////////////////////////////////
114#// Run time //////////////////////////////////////
115#//////////////////////////////////////////////////
116
[109]117apply_pattern setup_paths
[103]118
Note: See TracBrowser for help on using the repository browser.