source: snovis/trunk/cmt/requirements @ 177

Last change on this file since 177 was 177, checked in by barrand, 15 years ago
File size: 2.8 KB
Line 
1package snovis
2version v1r1
3
4#//////////////////////////////////////////////////
5#/// Uses needed to build this package ////////////
6#//////////////////////////////////////////////////
7
8use OpenScientist v1r16p0 Interfaces
9
10use snova v2r*
11
12#////////////////////////////////////////////////////////////
13#////////////////////////////////////////////////////////////
14#////////////////////////////////////////////////////////////
15
16# Darwin : to build dlls properly :
17macro make_shlib "$(make_shlib)" Darwin "$(SNOVISROOT)/cmt/cmt_make_shlib_common.sh extract"
18
19#//////////////////////////////////////////////////
20#//////////////////////////////////////////////////
21#//////////////////////////////////////////////////
22
23build_strategy no_prototypes
24include_path none
25
26include_dirs $(SNOVISROOT)
27
28#//////////////////////////////////////////////////
29#/// DLD callbacks ////////////////////////////////
30#//////////////////////////////////////////////////
31
32# Must not use Geant4 singletons if having not Geant4 shared libs.
33macro snovis_kind "dll"
34library snovis ../source/*.cxx
35macro snovis_cppflags "${OSC_G4Lab_incs} ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
36macro snovis_shlibflags "${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"
37
38#//////////////////////////////////////////////////
39#/// Applications /////////////////////////////////
40#//////////////////////////////////////////////////
41
42application prog_snova ../applications/prog_snova2.cxx use_linkopts='"${snova_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${Geant4_linkopts} ${CLHEP_linkopts}"'
43#macro prog_snova_cppflags "${snova_cppflags}"
44
45# Over G4Lab :
46application 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}"'
47macro snovis_sessionlinkopts "" Darwin "-bind_at_load"
48
49#//////////////////////////////////////////////////
50#//////////////////////////////////////////////////
51#//////////////////////////////////////////////////
52
53private
54macro build_library_links "true" WIN32 ""
55macro remove_library_links "true" WIN32 ""
56
57# WIN32 : /GR to enable RTTI and dynamic cast.
58# WIN32 : /GX to enable exception handling (for STL).
59macro_append cppflags "" WIN32 " /GX /GR"
60
61# DEBUG :
62#macro_append cflags  " -g" WIN32 " /ZI /Od"
63#macro_append cppflags  " -g" WIN32 " /ZI /Od"
64#macro_append cpplinkflags  " -g" WIN32 " /DEBUG"
65
66# OPTIMIZE :
67macro_append cflags  " -O" WIN32 " /O2"
68macro_append cppflags  " -O" WIN32 " /O2"
69macro_append cpplinkflags  " -O" WIN32 ""
70public
71
72#//////////////////////////////////////////////////
73#// Run time //////////////////////////////////////
74#//////////////////////////////////////////////////
75
76apply_pattern setup_paths
77
Note: See TracBrowser for help on using the repository browser.