source: snovis/trunk/obuild/sh/build_dll_snovis @ 134

Last change on this file since 134 was 134, checked in by barrand, 16 years ago
  • Property svn:executable set to *
File size: 24.6 KB
Line 
1#!/bin/sh -f
2
3#
4# File produced by the obuild tool version 1.0
5# for the package snovis with version v1r1.
6#
7
8#////////////////////////////////////////////////
9# Usage :
10#   UNIX> cd some_path/pack/version/obuild
11# ( UNIX> chmod a+x sh/build_snovis )
12#   UNIX> sh/build_snovis
13#
14#////////////////////////////////////////////////
15
16obuild_verbose=no
17obuild_debug=no
18obuild_optimize=yes
19obuild_do_not_compile=no
20obuild_dir_bin_o_cleanup=yes
21
22obuild_set_x=no
23while test $# -ge 1 ; do
24  case $1 in
25    -h) 
26        echo "Options :"
27        echo "  -v : verbose."
28        echo "  -d : build in debug mode."
29        echo "  -g : build in debug mode."
30        echo "  -x : execute script with set -x."
31        echo "  -l : link only, do not (re)compile."
32        echo "  -k : do not remove result of compilations (.o, .obj)."
33        echo ""
34        exit ;;
35    -v) obuild_verbose=yes ;;
36    -x) obuild_set_x=yes ;;
37    -d) obuild_debug=yes ;;
38    -g) obuild_debug=yes ;;
39    -l) obuild_do_not_compile=yes ;;
40    -k) obuild_dir_bin_o_cleanup=no ;;
41    *) echo "unknown option : $1";exit ;;
42  esac
43  shift
44done
45
46if [ ${obuild_set_x} = yes ] ; then
47  set -x
48fi
49
50if [ ${obuild_debug} = yes ] ; then
51  obuild_optimize=no
52fi
53
54if [  "${OBUILD_PLATFORM}" = "" ] ; then
55  obuild_platform=`uname`
56else
57  obuild_platform=${OBUILD_PLATFORM}
58fi
59
60if [ "${obuild_platform}" = "" ] ; then
61  echo "obuild_platform variable not defined."
62  exit
63fi
64
65if [  "${OBUILD_DIR_BIN}" = "" ] ; then
66  obuild_dir_bin=${obuild_platform}_obuild
67else
68  obuild_dir_bin=${OBUILD_DIR_BIN}
69fi
70
71if [ "${obuild_dir_bin}" = "" ] ; then
72  echo "obuild_dir_bin variable not defined."
73  exit
74fi
75
76obuild_pwd=`pwd`
77obuild_snovis_path=`dirname "${obuild_pwd}"`
78unset obuild_pwd
79
80# Create the bin directory :
81/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}"
82
83if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
84  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then
85    echo "Program source obuild_platform.cpp not found."
86    exit
87  fi
88  if [ "${obuild_cxx_command}" = "" ] ; then 
89    if [  "${OBUILD_CXX}" != "" ] ; then
90      obuild_platform_compiler=${OBUILD_CXX}
91    else
92      obuild_platform_compiler=c++
93    fi
94  else
95    obuild_platform_compiler=${obuild_cxx_command} 
96  fi
97  ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"
98  unset obuild_platform_compiler
99  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then
100    echo "Program obuild_platform not found."
101    exit
102  fi
103fi
104obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"
105if [ "${obuild_platform_exe}" = "" ] ; then
106  echo "Variable obuild_platform_exe not defined."
107  exit
108fi
109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
110if [ ${obuild_platform_result} = yes ] ; then
111snova_platform="Darwin"
112fi
113unset obuild_platform_result
114if [ "${obuild_platform_exe}" = "" ] ; then
115  echo "Variable obuild_platform_exe not defined."
116  exit
117fi
118obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
119if [ ${obuild_platform_result} = yes ] ; then
120bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
121fi
122unset obuild_platform_result
123if [ "${obuild_platform_exe}" = "" ] ; then
124  echo "Variable obuild_platform_exe not defined."
125  exit
126fi
127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
128if [ ${obuild_platform_result} = yes ] ; then
129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
130fi
131unset obuild_platform_result
132if [ "${obuild_platform_exe}" = "" ] ; then
133  echo "Variable obuild_platform_exe not defined."
134  exit
135fi
136obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
137if [ ${obuild_platform_result} = yes ] ; then
138CLHEP_home="/usr/local/CLHEP/2.0.3.1"
139fi
140unset obuild_platform_result
141if [ "${obuild_platform_exe}" = "" ] ; then
142  echo "Variable obuild_platform_exe not defined."
143  exit
144fi
145obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
146if [ ${obuild_platform_result} = yes ] ; then
147Geant4_home="/usr/local/geant4/8.2"
148fi
149unset obuild_platform_result
150if [ "${obuild_platform_exe}" = "" ] ; then
151  echo "Variable obuild_platform_exe not defined."
152  exit
153fi
154obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
155if [ ${obuild_platform_result} = yes ] ; then
156obuild_cxx_command="c++"
157fi
158unset obuild_platform_result
159if [ "${obuild_platform_exe}" = "" ] ; then
160  echo "Variable obuild_platform_exe not defined."
161  exit
162fi
163obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
164if [ ${obuild_platform_result} = yes ] ; then
165obuild_cxx_command="c++"
166fi
167unset obuild_platform_result
168if [ "${obuild_platform_exe}" = "" ] ; then
169  echo "Variable obuild_platform_exe not defined."
170  exit
171fi
172obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
173if [ ${obuild_platform_result} = yes ] ; then
174obuild_cxx_command="cxx"
175fi
176unset obuild_platform_result
177if [ "${obuild_platform_exe}" = "" ] ; then
178  echo "Variable obuild_platform_exe not defined."
179  exit
180fi
181obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
182if [ ${obuild_platform_result} = yes ] ; then
183obuild_cxx_command="cl.exe"
184fi
185unset obuild_platform_result
186if [ "${obuild_cxx_command}" = "" ] ; then
187  echo "Variable obuild_cxx_command not defined."
188  exit
189fi
190
191if [ "${obuild_platform_exe}" = "" ] ; then
192  echo "Variable obuild_platform_exe not defined."
193  exit
194fi
195obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
196if [ ${obuild_platform_result} = yes ] ; then
197obuild_cxx_optimize="-O"
198fi
199unset obuild_platform_result
200if [ "${obuild_platform_exe}" = "" ] ; then
201  echo "Variable obuild_platform_exe not defined."
202  exit
203fi
204obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
205if [ ${obuild_platform_result} = yes ] ; then
206obuild_cxx_optimize="-O"
207fi
208unset obuild_platform_result
209if [ "${obuild_platform_exe}" = "" ] ; then
210  echo "Variable obuild_platform_exe not defined."
211  exit
212fi
213obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
214if [ ${obuild_platform_result} = yes ] ; then
215obuild_cxx_optimize="-O"
216fi
217unset obuild_platform_result
218if [ "${obuild_platform_exe}" = "" ] ; then
219  echo "Variable obuild_platform_exe not defined."
220  exit
221fi
222obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
223if [ ${obuild_platform_result} = yes ] ; then
224obuild_cxx_optimize="/O2"
225fi
226unset obuild_platform_result
227
228if [ "${obuild_platform_exe}" = "" ] ; then
229  echo "Variable obuild_platform_exe not defined."
230  exit
231fi
232obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
233if [ ${obuild_platform_result} = yes ] ; then
234obuild_cxx_debug="-g"
235fi
236unset obuild_platform_result
237if [ "${obuild_platform_exe}" = "" ] ; then
238  echo "Variable obuild_platform_exe not defined."
239  exit
240fi
241obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
242if [ ${obuild_platform_result} = yes ] ; then
243obuild_cxx_debug="-g"
244fi
245unset obuild_platform_result
246if [ "${obuild_platform_exe}" = "" ] ; then
247  echo "Variable obuild_platform_exe not defined."
248  exit
249fi
250obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
251if [ ${obuild_platform_result} = yes ] ; then
252obuild_cxx_debug="-g"
253fi
254unset obuild_platform_result
255if [ "${obuild_platform_exe}" = "" ] ; then
256  echo "Variable obuild_platform_exe not defined."
257  exit
258fi
259obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
260if [ ${obuild_platform_result} = yes ] ; then
261obuild_cxx_debug="/ZI /Od"
262fi
263unset obuild_platform_result
264
265if [ "${obuild_platform_exe}" = "" ] ; then
266  echo "Variable obuild_platform_exe not defined."
267  exit
268fi
269obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
270if [ ${obuild_platform_result} = yes ] ; then
271obuild_cxx_options="-fPIC"
272fi
273unset obuild_platform_result
274if [ "${obuild_platform_exe}" = "" ] ; then
275  echo "Variable obuild_platform_exe not defined."
276  exit
277fi
278obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
279if [ ${obuild_platform_result} = yes ] ; then
280obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
281fi
282unset obuild_platform_result
283
284if [ ${obuild_debug} = yes ] ; then
285  obuild_cxx_debug_local=${obuild_cxx_debug}
286else
287  obuild_cxx_debug_local=
288fi
289
290if [ ${obuild_optimize} = yes ] ; then
291  obuild_cxx_optimize_local=${obuild_cxx_optimize}
292else
293  obuild_cxx_optimize_local=
294fi
295
296if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
297  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
298    echo "Program source obuild_find.cpp not found."
299    exit
300  fi
301  if [ "${obuild_cxx_command}" = "" ] ; then
302    if [  "${OBUILD_CXX}" != "" ] ; then
303      obuild_find_compiler=${OBUILD_CXX}
304    else
305      obuild_find_compiler=c++
306    fi
307  else
308    obuild_find_compiler=${obuild_cxx_command}
309  fi
310  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
311  unset obuild_find_compiler
312  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
313    echo "Program obuild_find not found."
314    exit
315  fi
316fi
317obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
318if [ "${obuild_find_exe}" = "" ] ; then
319  echo "Variable obuild_find_exe not defined."
320  exit
321fi
322obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
323if [ "${obuild_Lib_path}" = "" ] ; then
324  echo "Can't find Lib package."
325  exit
326fi
327if [ "${obuild_find_exe}" = "" ] ; then
328  echo "Variable obuild_find_exe not defined."
329  exit
330fi
331obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'`
332if [ "${obuild_Slash_path}" = "" ] ; then
333  echo "Can't find Slash package."
334  exit
335fi
336if [ "${obuild_find_exe}" = "" ] ; then
337  echo "Variable obuild_find_exe not defined."
338  exit
339fi
340obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'`
341if [ "${obuild_AIDA_path}" = "" ] ; then
342  echo "Can't find AIDA package."
343  exit
344fi
345if [ "${obuild_find_exe}" = "" ] ; then
346  echo "Variable obuild_find_exe not defined."
347  exit
348fi
349obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
350if [ "${obuild_OnX_path}" = "" ] ; then
351  echo "Can't find OnX package."
352  exit
353fi
354if [ "${obuild_find_exe}" = "" ] ; then
355  echo "Variable obuild_find_exe not defined."
356  exit
357fi
358obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
359if [ "${obuild_G4Lab_path}" = "" ] ; then
360  echo "Can't find G4Lab package."
361  exit
362fi
363if [ "${obuild_find_exe}" = "" ] ; then
364  echo "Variable obuild_find_exe not defined."
365  exit
366fi
367obuild_BatchLab_path=`"${obuild_find_exe}" BatchLab 'v1r*'`
368if [ "${obuild_BatchLab_path}" = "" ] ; then
369  echo "Can't find BatchLab package."
370  exit
371fi
372if [ "${obuild_find_exe}" = "" ] ; then
373  echo "Variable obuild_find_exe not defined."
374  exit
375fi
376obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
377if [ "${obuild_HEPVis_path}" = "" ] ; then
378  echo "Can't find HEPVis package."
379  exit
380fi
381if [ "${obuild_find_exe}" = "" ] ; then
382  echo "Variable obuild_find_exe not defined."
383  exit
384fi
385obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
386if [ "${obuild_CoinGL_path}" = "" ] ; then
387  echo "Can't find CoinGL package."
388  exit
389fi
390if [ "${obuild_find_exe}" = "" ] ; then
391  echo "Variable obuild_find_exe not defined."
392  exit
393fi
394obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
395if [ "${obuild_Lib_path}" = "" ] ; then
396  echo "Can't find Lib package."
397  exit
398fi
399if [ "${obuild_find_exe}" = "" ] ; then
400  echo "Variable obuild_find_exe not defined."
401  exit
402fi
403obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'`
404if [ "${obuild_expat_path}" = "" ] ; then
405  echo "Can't find expat package."
406  exit
407fi
408if [ "${obuild_find_exe}" = "" ] ; then
409  echo "Variable obuild_find_exe not defined."
410  exit
411fi
412obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
413if [ "${obuild_Lib_path}" = "" ] ; then
414  echo "Can't find Lib package."
415  exit
416fi
417if [ "${obuild_find_exe}" = "" ] ; then
418  echo "Variable obuild_find_exe not defined."
419  exit
420fi
421obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
422if [ "${obuild_zlib_path}" = "" ] ; then
423  echo "Can't find zlib package."
424  exit
425fi
426if [ "${obuild_find_exe}" = "" ] ; then
427  echo "Variable obuild_find_exe not defined."
428  exit
429fi
430obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
431if [ "${obuild_Lib_path}" = "" ] ; then
432  echo "Can't find Lib package."
433  exit
434fi
435if [ "${obuild_find_exe}" = "" ] ; then
436  echo "Variable obuild_find_exe not defined."
437  exit
438fi
439obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
440if [ "${obuild_HEPVis_path}" = "" ] ; then
441  echo "Can't find HEPVis package."
442  exit
443fi
444if [ "${obuild_find_exe}" = "" ] ; then
445  echo "Variable obuild_find_exe not defined."
446  exit
447fi
448obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
449if [ "${obuild_HEPVis_path}" = "" ] ; then
450  echo "Can't find HEPVis package."
451  exit
452fi
453if [ "${obuild_find_exe}" = "" ] ; then
454  echo "Variable obuild_find_exe not defined."
455  exit
456fi
457obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'`
458if [ "${obuild_jpeg_path}" = "" ] ; then
459  echo "Can't find jpeg package."
460  exit
461fi
462if [ "${obuild_find_exe}" = "" ] ; then
463  echo "Variable obuild_find_exe not defined."
464  exit
465fi
466obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'`
467if [ "${obuild_dvi2bitmap_path}" = "" ] ; then
468  echo "Can't find dvi2bitmap package."
469  exit
470fi
471if [ "${obuild_find_exe}" = "" ] ; then
472  echo "Variable obuild_find_exe not defined."
473  exit
474fi
475obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'`
476if [ "${obuild_freetype2_path}" = "" ] ; then
477  echo "Can't find freetype2 package."
478  exit
479fi
480if [ "${obuild_find_exe}" = "" ] ; then
481  echo "Variable obuild_find_exe not defined."
482  exit
483fi
484obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
485if [ "${obuild_CoinGL_path}" = "" ] ; then
486  echo "Can't find CoinGL package."
487  exit
488fi
489
490obuild_cxx_includes="-I\"${obuild_snovis_path}\""
491obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\""
492obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\""
493obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\""
494obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_OnX_path}/include\""
495obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\""
496obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_BatchLab_path}\""
497obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HEPVis_path}/include\""
498obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_CoinGL_path}/include\""
499if [ "${obuild_platform_exe}" = "" ] ; then
500  echo "Variable obuild_platform_exe not defined."
501  exit
502fi
503obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
504if [ ${obuild_platform_result} = yes ] ; then
505obuild_cxx_includes="${obuild_cxx_includes} -I/System/Library/Frameworks/OpenGL.framework/Headers"
506fi
507unset obuild_platform_result
508if [ "${obuild_platform_exe}" = "" ] ; then
509  echo "Variable obuild_platform_exe not defined."
510  exit
511fi
512obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
513if [ ${obuild_platform_result} = yes ] ; then
514obuild_cxx_includes="${obuild_cxx_includes} -I${OBUILD_OPENGL_HOME}/include"
515fi
516unset obuild_platform_result
517
518if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
519  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
520fi
521
522/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
523
524# Compile snovis files :
525if [ ${obuild_do_not_compile} = no ] ; then
526
527if [ ${obuild_verbose} = yes ] ; then set -x;fi
528cd "${obuild_snovis_path}/${obuild_dir_bin}"
529 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o \"../source/Callbacks.cxx\"
530obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
531cd "${obuild_snovis_path}/obuild"
532
533cd "${obuild_snovis_path}/${obuild_dir_bin}"
534 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o \"../source/InventorCallbacks.cxx\"
535obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
536cd "${obuild_snovis_path}/obuild"
537
538cd "${obuild_snovis_path}/${obuild_dir_bin}"
539 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o \"../source/Layouts.cxx\"
540obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
541cd "${obuild_snovis_path}/obuild"
542
543if [ ${obuild_verbose} = yes ] ; then set +x;fi
544
545fi #do_not_compile
546
547obuild_linked_paths="-L\"${obuild_Lib_path}/${obuild_dir_bin}\""
548obuild_linked_libraries=" -lLibXML"
549obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\""
550obuild_linked_libraries="${obuild_linked_libraries}  -losc_expat"
551obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
552obuild_linked_libraries="${obuild_linked_libraries}  -lLibZip"
553obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
554obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
555obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
556obuild_linked_libraries="${obuild_linked_libraries}  -lLibUtils"
557obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
558obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisGeometry"
559obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
560obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisUtils"
561obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\""
562obuild_linked_libraries="${obuild_linked_libraries}  -losc_jpeg"
563obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\""
564obuild_linked_libraries="${obuild_linked_libraries}  -losc_dvi2bitmap"
565obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\""
566obuild_linked_libraries="${obuild_linked_libraries}  -losc_freetype2"
567obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\""
568obuild_linked_libraries="${obuild_linked_libraries}  -losc_Coin"
569if [ "${obuild_platform_exe}" = "" ] ; then
570  echo "Variable obuild_platform_exe not defined."
571  exit
572fi
573obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
574if [ ${obuild_platform_result} = yes ] ; then
575obuild_linked_libraries="${obuild_linked_libraries} -framework OpenGL -framework AGL"
576fi
577unset obuild_platform_result
578if [ "${obuild_platform_exe}" = "" ] ; then
579  echo "Variable obuild_platform_exe not defined."
580  exit
581fi
582obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
583if [ ${obuild_platform_result} = yes ] ; then
584obuild_linked_libraries="${obuild_linked_libraries} -framework ApplicationServices"
585fi
586unset obuild_platform_result
587if [ "${obuild_platform_exe}" = "" ] ; then
588  echo "Variable obuild_platform_exe not defined."
589  exit
590fi
591obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
592if [ ${obuild_platform_result} = yes ] ; then
593obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm"
594fi
595unset obuild_platform_result
596if [ "${obuild_platform_exe}" = "" ] ; then
597  echo "Variable obuild_platform_exe not defined."
598  exit
599fi
600obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
601if [ ${obuild_platform_result} = yes ] ; then
602obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
603fi
604unset obuild_platform_result
605if [ "${obuild_platform_exe}" = "" ] ; then
606  echo "Variable obuild_platform_exe not defined."
607  exit
608fi
609obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
610if [ ${obuild_platform_result} = yes ] ; then
611obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm"
612fi
613unset obuild_platform_result
614if [ "${obuild_platform_exe}" = "" ] ; then
615  echo "Variable obuild_platform_exe not defined."
616  exit
617fi
618obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
619if [ ${obuild_platform_result} = yes ] ; then
620obuild_linked_libraries="${obuild_linked_libraries} -lpthread"
621fi
622unset obuild_platform_result
623
624if [ "${obuild_platform_exe}" = "" ] ; then
625  echo "Variable obuild_platform_exe not defined."
626  exit
627fi
628obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
629if [ ${obuild_platform_result} = yes ] ; then
630obuild_cxx_dll_builder_command="c++"
631fi
632unset obuild_platform_result
633if [ "${obuild_platform_exe}" = "" ] ; then
634  echo "Variable obuild_platform_exe not defined."
635  exit
636fi
637obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
638if [ ${obuild_platform_result} = yes ] ; then
639obuild_cxx_dll_builder_command="c++"
640fi
641unset obuild_platform_result
642if [ "${obuild_platform_exe}" = "" ] ; then
643  echo "Variable obuild_platform_exe not defined."
644  exit
645fi
646obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
647if [ ${obuild_platform_result} = yes ] ; then
648obuild_cxx_dll_builder_command="cxx"
649fi
650unset obuild_platform_result
651if [ "${obuild_cxx_dll_builder_command}" = "" ] ; then
652  echo "Variable obuild_cxx_dll_builder_command not defined."
653  exit
654fi
655
656if [ "${obuild_platform_exe}" = "" ] ; then
657  echo "Variable obuild_platform_exe not defined."
658  exit
659fi
660obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
661if [ ${obuild_platform_result} = yes ] ; then
662obuild_cxx_dll_builder_options="-bundle -twolevel_namespace -Wl,-headerpad_max_install_names -Wl,-headerpad,800"
663fi
664unset obuild_platform_result
665if [ "${obuild_platform_exe}" = "" ] ; then
666  echo "Variable obuild_platform_exe not defined."
667  exit
668fi
669obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
670if [ ${obuild_platform_result} = yes ] ; then
671obuild_cxx_dll_builder_options="-shared"
672fi
673unset obuild_platform_result
674if [ "${obuild_platform_exe}" = "" ] ; then
675  echo "Variable obuild_platform_exe not defined."
676  exit
677fi
678obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
679if [ ${obuild_platform_result} = yes ] ; then
680obuild_cxx_dll_builder_options="-shared"
681fi
682unset obuild_platform_result
683
684if [ "${obuild_platform_exe}" = "" ] ; then
685  echo "Variable obuild_platform_exe not defined."
686  exit
687fi
688obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
689if [ ${obuild_platform_result} = yes ] ; then
690obuild_cxx_dll_builder_prefix="lib"
691fi
692unset obuild_platform_result
693if [ "${obuild_platform_exe}" = "" ] ; then
694  echo "Variable obuild_platform_exe not defined."
695  exit
696fi
697obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
698if [ ${obuild_platform_result} = yes ] ; then
699obuild_cxx_dll_builder_prefix="lib"
700fi
701unset obuild_platform_result
702
703if [ "${obuild_platform_exe}" = "" ] ; then
704  echo "Variable obuild_platform_exe not defined."
705  exit
706fi
707obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
708if [ ${obuild_platform_result} = yes ] ; then
709obuild_cxx_dll_builder_suffix="bundle"
710fi
711unset obuild_platform_result
712if [ "${obuild_platform_exe}" = "" ] ; then
713  echo "Variable obuild_platform_exe not defined."
714  exit
715fi
716obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
717if [ ${obuild_platform_result} = yes ] ; then
718obuild_cxx_dll_builder_suffix="so"
719fi
720unset obuild_platform_result
721if [ "${obuild_platform_exe}" = "" ] ; then
722  echo "Variable obuild_platform_exe not defined."
723  exit
724fi
725obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
726if [ ${obuild_platform_result} = yes ] ; then
727obuild_cxx_dll_builder_suffix="so"
728fi
729unset obuild_platform_result
730
731if [ ${obuild_debug} = yes ] ; then
732  obuild_cxx_dll_builder_debug_local=${obuild_cxx_dll_builder_debug}
733else
734  obuild_cxx_dll_builder_debug_local=
735fi
736
737if [ ${obuild_optimize} = yes ] ; then
738  obuild_cxx_dll_builder_optimize_local=${obuild_cxx_dll_builder_optimize}
739else
740  obuild_cxx_dll_builder_optimize_local=
741fi
742# Create the dll snovis :
743cd "${obuild_snovis_path}/${obuild_dir_bin}"
744obuild_objs=`find ./dll_snovis -name '*.o' -print`
745/bin/rm -f ./${obuild_cxx_dll_builder_prefix}snovis.${obuild_cxx_dll_builder_suffix}
746if [ ${obuild_verbose} = yes ] ; then set -x;fi
747 eval ${obuild_cxx_dll_builder_command} ${obuild_cxx_dll_builder_options} -o \"${obuild_snovis_path}/${obuild_dir_bin}/${obuild_cxx_dll_builder_prefix}snovis.${obuild_cxx_dll_builder_suffix}\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
748obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
749if [ ${obuild_verbose} = yes ] ; then set +x;fi
750cd "${obuild_snovis_path}/obuild"
751
752# Some cleanup :
753if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
754  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
755fi
756/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
757
Note: See TracBrowser for help on using the repository browser.