| 1 | package snovis
|
|---|
| 2 | version v1r1
|
|---|
| 3 |
|
|---|
| 4 | #//////////////////////////////////////////////////
|
|---|
| 5 | #/// Uses needed to build this package ////////////
|
|---|
| 6 | #//////////////////////////////////////////////////
|
|---|
| 7 |
|
|---|
| 8 | use OpenScientist v1r16p0 Interfaces
|
|---|
| 9 |
|
|---|
| 10 | use snova v2r*
|
|---|
| 11 |
|
|---|
| 12 | #////////////////////////////////////////////////////////////
|
|---|
| 13 | #////////////////////////////////////////////////////////////
|
|---|
| 14 | #////////////////////////////////////////////////////////////
|
|---|
| 15 |
|
|---|
| 16 | # Darwin : to build dlls properly :
|
|---|
| 17 | macro make_shlib "$(make_shlib)" Darwin "$(SNOVISROOT)/cmt/cmt_make_shlib_common.sh extract"
|
|---|
| 18 |
|
|---|
| 19 | #//////////////////////////////////////////////////
|
|---|
| 20 | #//////////////////////////////////////////////////
|
|---|
| 21 | #//////////////////////////////////////////////////
|
|---|
| 22 |
|
|---|
| 23 | build_strategy no_prototypes
|
|---|
| 24 | include_path none
|
|---|
| 25 |
|
|---|
| 26 | include_dirs $(SNOVISROOT)
|
|---|
| 27 |
|
|---|
| 28 | #//////////////////////////////////////////////////
|
|---|
| 29 | #/// DLD callbacks ////////////////////////////////
|
|---|
| 30 | #//////////////////////////////////////////////////
|
|---|
| 31 |
|
|---|
| 32 | # Must not use Geant4 singletons if having not Geant4 shared libs.
|
|---|
| 33 | macro snovis_kind "dll"
|
|---|
| 34 | library snovis ../source/*.cxx
|
|---|
| 35 | macro snovis_cppflags "${OSC_G4Lab_incs} ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
|
|---|
| 36 | macro snovis_shlibflags "${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"
|
|---|
| 37 |
|
|---|
| 38 | #//////////////////////////////////////////////////
|
|---|
| 39 | #/// Applications /////////////////////////////////
|
|---|
| 40 | #//////////////////////////////////////////////////
|
|---|
| 41 |
|
|---|
| 42 | application 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 :
|
|---|
| 46 | application 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}"'
|
|---|
| 47 | macro snovis_sessionlinkopts "" Darwin "-bind_at_load"
|
|---|
| 48 |
|
|---|
| 49 | #//////////////////////////////////////////////////
|
|---|
| 50 | #//////////////////////////////////////////////////
|
|---|
| 51 | #//////////////////////////////////////////////////
|
|---|
| 52 |
|
|---|
| 53 | private
|
|---|
| 54 | macro build_library_links "true" WIN32 ""
|
|---|
| 55 | macro remove_library_links "true" WIN32 ""
|
|---|
| 56 |
|
|---|
| 57 | # WIN32 : /GR to enable RTTI and dynamic cast.
|
|---|
| 58 | # WIN32 : /GX to enable exception handling (for STL).
|
|---|
| 59 | macro_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 :
|
|---|
| 67 | macro_append cflags " -O" WIN32 " /O2"
|
|---|
| 68 | macro_append cppflags " -O" WIN32 " /O2"
|
|---|
| 69 | macro_append cpplinkflags " -O" WIN32 ""
|
|---|
| 70 | public
|
|---|
| 71 |
|
|---|
| 72 | #//////////////////////////////////////////////////
|
|---|
| 73 | #// Run time //////////////////////////////////////
|
|---|
| 74 | #//////////////////////////////////////////////////
|
|---|
| 75 |
|
|---|
| 76 | apply_pattern setup_paths
|
|---|
| 77 |
|
|---|