3 # Thomas Nagy, 2006-2008 (ita)
7 # the following two variables are used by the target "waf dist"
9 APPNAME
='ds_Diffractometer'
11 # these variables are mandatory ('/' are converted automatically)
16 opt
.tool_options('compiler_cxx')
17 opt
.add_option('--soleil', action
='store_true', default
=False, help='Build for the Soleil site')
20 conf
.check_tool('compiler_cxx')
21 if Options
.options
.soleil
:
22 conf
.env
['LIB_HKL'] = ['hkl', 'GSL', 'GSLcblas']
23 #conf.env['LIBPATH_HKL'] = '${SOLEIL_ROOT}/sw-support/HKL/lib'
24 #conf.env['INCPATH_HKL'] = '${SOLEIL_ROOT}/sw-support/HKL/include'
26 conf
.env
['LIBPATH_HKL'] = [prefix
+ 'hkl/build/default/src',
27 '${SOLEIL_ROOT}/sw-support/GSL/lib']
28 conf
.env
['CPPPATH_HKL'] = [prefix
+ 'hkl/include',
29 '${SOLEIL_ROOT}/sw-support/GSL/include']
30 conf
.env
['RPATH_HKL'] = [prefix
+ 'hkl/build/default/src']
31 conf
.env
['LIB_TANGO'] = ['log4tango', 'tango', 'COSDynamic4', 'COS4', 'omnithread', 'omniORB4']
32 conf
.env
['LIBPATH_TANGO'] = ['${SOLEIL_ROOT}/sw-support/Tango/lib',
33 '${SOLEIL_ROOT}/sw-support/OmniORB/lib']
34 conf
.env
['CPPPATH_TANGO'] = ['${SOLEIL_ROOT}/sw-support/Tango/include',
35 '${SOLEIL_ROOT}/sw-support/OmniORB/include']
37 conf
.check_cfg(atleast_pkgconfig_version
='0.0.0')
38 conf
.check_cfg(package
='hkl', args
='--cflags --libs')
39 conf
.check_cfg(package
='tango', args
='--cflags --libs')
42 bld
.add_subdirs('src')