21 |
# Filter out sources that should not be in the list automatically |
# Filter out sources that should not be in the list automatically |
22 |
sources.remove(py_wrapper_source) # FIXME: should probably refactor the source tree so the python wrapper isn't colocated with c++ sources |
sources.remove(py_wrapper_source) # FIXME: should probably refactor the source tree so the python wrapper isn't colocated with c++ sources |
23 |
|
|
24 |
local_env.Append(LIBS = [boost_lib, 'esysUtils', sys_libs ] + netCDF_libs_cxx) |
local_env.Append(LIBS = [boost_lib, 'esysUtils', sys_libs ] ) |
25 |
py_wrapper_local_env.Append(LIBS = [boost_lib, lib_name, 'esysUtils', sys_libs ] + netCDF_libs_cxx) |
py_wrapper_local_env.Append(LIBS = [boost_lib, lib_name, 'esysUtils', sys_libs ] ) |
26 |
|
if useNetCDF == 'yes': |
27 |
|
local_env.Append(LIBS = netCDF_libs_cxx) |
28 |
|
local_env.Append(CPPDEFINES = [ 'USE_NETCFD' ]) |
29 |
|
py_wrapper_local_env.Append(LIBS = netCDF_libs_cxx) |
30 |
|
py_wrapper_local_env.Append(CPPDEFINES = [ 'USE_NETCFD' ]) |
31 |
|
|
32 |
local_env.Append(CPPDEFINES = 'ESCRIPT_EXPORTS') |
local_env.Append(CPPDEFINES = [ 'ESCRIPT_EXPORTS'] ) |
33 |
|
|
34 |
lib = local_env.SharedLibrary(lib_name, sources) |
lib = local_env.SharedLibrary(lib_name, sources) |
35 |
py_wrapper_lib = py_wrapper_local_env.SharedLibrary( py_wrapper_lib_name, py_wrapper_source) |
py_wrapper_lib = py_wrapper_local_env.SharedLibrary( py_wrapper_lib_name, py_wrapper_source) |