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

Last change on this file since 101 was 101, checked in by barrand, 16 years ago
  • Property svn:executable set to *
File size: 24.9 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} 'UNIX'`
110if [ ${obuild_platform_result} = yes ] ; then
111bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
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} 'Darwin'`
119if [ ${obuild_platform_result} = yes ] ; then
120bhep_platform="Darwin"
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} 'Darwin'`
137if [ ${obuild_platform_result} = yes ] ; then
138snova_platform="Darwin"
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
147CLHEP_home="/usr/local/CLHEP/2.0.3.1"
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} 'UNIX'`
155if [ ${obuild_platform_result} = yes ] ; then
156Geant4_home="/usr/local/geant4/8.2"
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} 'Darwin'`
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} 'Linux'`
173if [ ${obuild_platform_result} = yes ] ; then
174obuild_cxx_command="c++"
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} 'OSF1'`
182if [ ${obuild_platform_result} = yes ] ; then
183obuild_cxx_command="cxx"
184fi
185unset obuild_platform_result
186if [ "${obuild_platform_exe}" = "" ] ; then
187  echo "Variable obuild_platform_exe not defined."
188  exit
189fi
190obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
191if [ ${obuild_platform_result} = yes ] ; then
192obuild_cxx_command="cl.exe"
193fi
194unset obuild_platform_result
195if [ "${obuild_cxx_command}" = "" ] ; then
196  echo "Variable obuild_cxx_command not defined."
197  exit
198fi
199
200if [ "${obuild_platform_exe}" = "" ] ; then
201  echo "Variable obuild_platform_exe not defined."
202  exit
203fi
204obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
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} 'Linux'`
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} 'OSF1'`
223if [ ${obuild_platform_result} = yes ] ; then
224obuild_cxx_optimize="-O"
225fi
226unset obuild_platform_result
227if [ "${obuild_platform_exe}" = "" ] ; then
228  echo "Variable obuild_platform_exe not defined."
229  exit
230fi
231obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
232if [ ${obuild_platform_result} = yes ] ; then
233obuild_cxx_optimize="/O2"
234fi
235unset obuild_platform_result
236
237if [ "${obuild_platform_exe}" = "" ] ; then
238  echo "Variable obuild_platform_exe not defined."
239  exit
240fi
241obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
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} 'Linux'`
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} 'OSF1'`
260if [ ${obuild_platform_result} = yes ] ; then
261obuild_cxx_debug="-g"
262fi
263unset obuild_platform_result
264if [ "${obuild_platform_exe}" = "" ] ; then
265  echo "Variable obuild_platform_exe not defined."
266  exit
267fi
268obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
269if [ ${obuild_platform_result} = yes ] ; then
270obuild_cxx_debug="/ZI /Od"
271fi
272unset obuild_platform_result
273
274if [ "${obuild_platform_exe}" = "" ] ; then
275  echo "Variable obuild_platform_exe not defined."
276  exit
277fi
278obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
279if [ ${obuild_platform_result} = yes ] ; then
280obuild_cxx_options="-fPIC"
281fi
282unset obuild_platform_result
283if [ "${obuild_platform_exe}" = "" ] ; then
284  echo "Variable obuild_platform_exe not defined."
285  exit
286fi
287obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
288if [ ${obuild_platform_result} = yes ] ; then
289obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
290fi
291unset obuild_platform_result
292
293if [ ${obuild_debug} = yes ] ; then
294  obuild_cxx_debug_local=${obuild_cxx_debug}
295else
296  obuild_cxx_debug_local=
297fi
298
299if [ ${obuild_optimize} = yes ] ; then
300  obuild_cxx_optimize_local=${obuild_cxx_optimize}
301else
302  obuild_cxx_optimize_local=
303fi
304
305if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
306  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
307    echo "Program source obuild_find.cpp not found."
308    exit
309  fi
310  if [ "${obuild_cxx_command}" = "" ] ; then
311    if [  "${OBUILD_CXX}" != "" ] ; then
312      obuild_find_compiler=${OBUILD_CXX}
313    else
314      obuild_find_compiler=c++
315    fi
316  else
317    obuild_find_compiler=${obuild_cxx_command}
318  fi
319  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
320  unset obuild_find_compiler
321  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
322    echo "Program obuild_find not found."
323    exit
324  fi
325fi
326obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
327if [ "${obuild_find_exe}" = "" ] ; then
328  echo "Variable obuild_find_exe not defined."
329  exit
330fi
331obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
332if [ "${obuild_Lib_path}" = "" ] ; then
333  echo "Can't find Lib package."
334  exit
335fi
336if [ "${obuild_find_exe}" = "" ] ; then
337  echo "Variable obuild_find_exe not defined."
338  exit
339fi
340obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'`
341if [ "${obuild_Slash_path}" = "" ] ; then
342  echo "Can't find Slash package."
343  exit
344fi
345if [ "${obuild_find_exe}" = "" ] ; then
346  echo "Variable obuild_find_exe not defined."
347  exit
348fi
349obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'`
350if [ "${obuild_AIDA_path}" = "" ] ; then
351  echo "Can't find AIDA package."
352  exit
353fi
354if [ "${obuild_find_exe}" = "" ] ; then
355  echo "Variable obuild_find_exe not defined."
356  exit
357fi
358obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
359if [ "${obuild_OnX_path}" = "" ] ; then
360  echo "Can't find OnX package."
361  exit
362fi
363if [ "${obuild_find_exe}" = "" ] ; then
364  echo "Variable obuild_find_exe not defined."
365  exit
366fi
367obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
368if [ "${obuild_G4Lab_path}" = "" ] ; then
369  echo "Can't find G4Lab package."
370  exit
371fi
372if [ "${obuild_find_exe}" = "" ] ; then
373  echo "Variable obuild_find_exe not defined."
374  exit
375fi
376obuild_BatchLab_path=`"${obuild_find_exe}" BatchLab 'v1r*'`
377if [ "${obuild_BatchLab_path}" = "" ] ; then
378  echo "Can't find BatchLab package."
379  exit
380fi
381if [ "${obuild_find_exe}" = "" ] ; then
382  echo "Variable obuild_find_exe not defined."
383  exit
384fi
385obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
386if [ "${obuild_HEPVis_path}" = "" ] ; then
387  echo "Can't find HEPVis package."
388  exit
389fi
390if [ "${obuild_find_exe}" = "" ] ; then
391  echo "Variable obuild_find_exe not defined."
392  exit
393fi
394obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
395if [ "${obuild_CoinGL_path}" = "" ] ; then
396  echo "Can't find CoinGL package."
397  exit
398fi
399if [ "${obuild_find_exe}" = "" ] ; then
400  echo "Variable obuild_find_exe not defined."
401  exit
402fi
403obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
404if [ "${obuild_Lib_path}" = "" ] ; then
405  echo "Can't find Lib package."
406  exit
407fi
408if [ "${obuild_find_exe}" = "" ] ; then
409  echo "Variable obuild_find_exe not defined."
410  exit
411fi
412obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'`
413if [ "${obuild_expat_path}" = "" ] ; then
414  echo "Can't find expat package."
415  exit
416fi
417if [ "${obuild_find_exe}" = "" ] ; then
418  echo "Variable obuild_find_exe not defined."
419  exit
420fi
421obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
422if [ "${obuild_Lib_path}" = "" ] ; then
423  echo "Can't find Lib package."
424  exit
425fi
426if [ "${obuild_find_exe}" = "" ] ; then
427  echo "Variable obuild_find_exe not defined."
428  exit
429fi
430obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
431if [ "${obuild_zlib_path}" = "" ] ; then
432  echo "Can't find zlib package."
433  exit
434fi
435if [ "${obuild_find_exe}" = "" ] ; then
436  echo "Variable obuild_find_exe not defined."
437  exit
438fi
439obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
440if [ "${obuild_Lib_path}" = "" ] ; then
441  echo "Can't find Lib 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_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
458if [ "${obuild_HEPVis_path}" = "" ] ; then
459  echo "Can't find HEPVis package."
460  exit
461fi
462if [ "${obuild_find_exe}" = "" ] ; then
463  echo "Variable obuild_find_exe not defined."
464  exit
465fi
466obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'`
467if [ "${obuild_jpeg_path}" = "" ] ; then
468  echo "Can't find jpeg package."
469  exit
470fi
471if [ "${obuild_find_exe}" = "" ] ; then
472  echo "Variable obuild_find_exe not defined."
473  exit
474fi
475obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'`
476if [ "${obuild_dvi2bitmap_path}" = "" ] ; then
477  echo "Can't find dvi2bitmap package."
478  exit
479fi
480if [ "${obuild_find_exe}" = "" ] ; then
481  echo "Variable obuild_find_exe not defined."
482  exit
483fi
484obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'`
485if [ "${obuild_freetype2_path}" = "" ] ; then
486  echo "Can't find freetype2 package."
487  exit
488fi
489if [ "${obuild_find_exe}" = "" ] ; then
490  echo "Variable obuild_find_exe not defined."
491  exit
492fi
493obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
494if [ "${obuild_CoinGL_path}" = "" ] ; then
495  echo "Can't find CoinGL package."
496  exit
497fi
498
499obuild_cxx_includes="-I\"${obuild_snovis_path}\""
500obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\""
501obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\""
502obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\""
503obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_OnX_path}/include\""
504obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\""
505obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_BatchLab_path}\""
506obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HEPVis_path}/include\""
507obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_CoinGL_path}/include\""
508if [ "${obuild_platform_exe}" = "" ] ; then
509  echo "Variable obuild_platform_exe not defined."
510  exit
511fi
512obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
513if [ ${obuild_platform_result} = yes ] ; then
514obuild_cxx_includes="${obuild_cxx_includes} -I/System/Library/Frameworks/OpenGL.framework/Headers"
515fi
516unset obuild_platform_result
517if [ "${obuild_platform_exe}" = "" ] ; then
518  echo "Variable obuild_platform_exe not defined."
519  exit
520fi
521obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
522if [ ${obuild_platform_result} = yes ] ; then
523obuild_cxx_includes="${obuild_cxx_includes} -I${OBUILD_OPENGL_HOME}/include"
524fi
525unset obuild_platform_result
526
527if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
528  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
529fi
530
531/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
532
533# Compile snovis files :
534if [ ${obuild_do_not_compile} = no ] ; then
535
536if [ ${obuild_verbose} = yes ] ; then set -x;fi
537cd "${obuild_snovis_path}/${obuild_dir_bin}"
538 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\"
539obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
540cd "${obuild_snovis_path}/obuild"
541
542cd "${obuild_snovis_path}/${obuild_dir_bin}"
543 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\"
544obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
545cd "${obuild_snovis_path}/obuild"
546
547cd "${obuild_snovis_path}/${obuild_dir_bin}"
548 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\"
549obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
550cd "${obuild_snovis_path}/obuild"
551
552if [ ${obuild_verbose} = yes ] ; then set +x;fi
553
554fi #do_not_compile
555
556obuild_linked_paths="-L\"${obuild_Lib_path}/${obuild_dir_bin}\""
557obuild_linked_libraries=" -lLibXML"
558obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\""
559obuild_linked_libraries="${obuild_linked_libraries}  -losc_expat"
560obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
561obuild_linked_libraries="${obuild_linked_libraries}  -lLibZip"
562obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
563obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
564obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
565obuild_linked_libraries="${obuild_linked_libraries}  -lLibUtils"
566obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
567obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisGeometry"
568obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
569obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisUtils"
570obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\""
571obuild_linked_libraries="${obuild_linked_libraries}  -losc_jpeg"
572obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\""
573obuild_linked_libraries="${obuild_linked_libraries}  -losc_dvi2bitmap"
574obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\""
575obuild_linked_libraries="${obuild_linked_libraries}  -losc_freetype2"
576obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\""
577obuild_linked_libraries="${obuild_linked_libraries}  -losc_Coin"
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 OpenGL -framework AGL"
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} 'Darwin'`
592if [ ${obuild_platform_result} = yes ] ; then
593obuild_linked_libraries="${obuild_linked_libraries} -framework ApplicationServices"
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} 'Linux'`
601if [ ${obuild_platform_result} = yes ] ; then
602obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm"
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} 'Windows_NT'`
610if [ ${obuild_platform_result} = yes ] ; then
611obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
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} 'OSF1'`
619if [ ${obuild_platform_result} = yes ] ; then
620obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm"
621fi
622unset obuild_platform_result
623if [ "${obuild_platform_exe}" = "" ] ; then
624  echo "Variable obuild_platform_exe not defined."
625  exit
626fi
627obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
628if [ ${obuild_platform_result} = yes ] ; then
629obuild_linked_libraries="${obuild_linked_libraries} -lpthread"
630fi
631unset obuild_platform_result
632
633if [ "${obuild_platform_exe}" = "" ] ; then
634  echo "Variable obuild_platform_exe not defined."
635  exit
636fi
637obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
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} 'Linux'`
647if [ ${obuild_platform_result} = yes ] ; then
648obuild_cxx_dll_builder_command="c++"
649fi
650unset obuild_platform_result
651if [ "${obuild_platform_exe}" = "" ] ; then
652  echo "Variable obuild_platform_exe not defined."
653  exit
654fi
655obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
656if [ ${obuild_platform_result} = yes ] ; then
657obuild_cxx_dll_builder_command="cxx"
658fi
659unset obuild_platform_result
660if [ "${obuild_cxx_dll_builder_command}" = "" ] ; then
661  echo "Variable obuild_cxx_dll_builder_command not defined."
662  exit
663fi
664
665if [ "${obuild_platform_exe}" = "" ] ; then
666  echo "Variable obuild_platform_exe not defined."
667  exit
668fi
669obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
670if [ ${obuild_platform_result} = yes ] ; then
671obuild_cxx_dll_builder_options="-bundle -twolevel_namespace -Wl,-headerpad_max_install_names -Wl,-headerpad,800"
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} 'Linux'`
679if [ ${obuild_platform_result} = yes ] ; then
680obuild_cxx_dll_builder_options="-shared"
681fi
682unset obuild_platform_result
683if [ "${obuild_platform_exe}" = "" ] ; then
684  echo "Variable obuild_platform_exe not defined."
685  exit
686fi
687obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
688if [ ${obuild_platform_result} = yes ] ; then
689obuild_cxx_dll_builder_options="-shared"
690fi
691unset obuild_platform_result
692
693if [ "${obuild_platform_exe}" = "" ] ; then
694  echo "Variable obuild_platform_exe not defined."
695  exit
696fi
697obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
698if [ ${obuild_platform_result} = yes ] ; then
699obuild_cxx_dll_builder_prefix="lib"
700fi
701unset obuild_platform_result
702if [ "${obuild_platform_exe}" = "" ] ; then
703  echo "Variable obuild_platform_exe not defined."
704  exit
705fi
706obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
707if [ ${obuild_platform_result} = yes ] ; then
708obuild_cxx_dll_builder_prefix="lib"
709fi
710unset obuild_platform_result
711
712if [ "${obuild_platform_exe}" = "" ] ; then
713  echo "Variable obuild_platform_exe not defined."
714  exit
715fi
716obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
717if [ ${obuild_platform_result} = yes ] ; then
718obuild_cxx_dll_builder_suffix="bundle"
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} 'Linux'`
726if [ ${obuild_platform_result} = yes ] ; then
727obuild_cxx_dll_builder_suffix="so"
728fi
729unset obuild_platform_result
730if [ "${obuild_platform_exe}" = "" ] ; then
731  echo "Variable obuild_platform_exe not defined."
732  exit
733fi
734obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
735if [ ${obuild_platform_result} = yes ] ; then
736obuild_cxx_dll_builder_suffix="so"
737fi
738unset obuild_platform_result
739
740if [ ${obuild_debug} = yes ] ; then
741  obuild_cxx_dll_builder_debug_local=${obuild_cxx_dll_builder_debug}
742else
743  obuild_cxx_dll_builder_debug_local=
744fi
745
746if [ ${obuild_optimize} = yes ] ; then
747  obuild_cxx_dll_builder_optimize_local=${obuild_cxx_dll_builder_optimize}
748else
749  obuild_cxx_dll_builder_optimize_local=
750fi
751# Create the dll snovis :
752cd "${obuild_snovis_path}/${obuild_dir_bin}"
753obuild_objs=`find ./dll_snovis -name '*.o' -print`
754/bin/rm -f ./${obuild_cxx_dll_builder_prefix}snovis.${obuild_cxx_dll_builder_suffix}
755if [ ${obuild_verbose} = yes ] ; then set -x;fi
756 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}
757obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
758if [ ${obuild_verbose} = yes ] ; then set +x;fi
759cd "${obuild_snovis_path}/obuild"
760
761# Some cleanup :
762if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
763  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/dll_snovis"
764fi
765/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
766
Note: See TracBrowser for help on using the repository browser.