Build system fixes to handle new Ert version

p4#: 20319
This commit is contained in:
Jacob Støren
2013-01-31 15:39:40 +01:00
parent 0ac6dc32a5
commit 85238529ef
588 changed files with 4324 additions and 6276 deletions

View File

@@ -0,0 +1,2 @@
add_subdirectory( test )
add_subdirectory( python )

View File

@@ -0,0 +1,2 @@
set(PYTHON_INSTALL_PREFIX "/python")
add_subdirectory( ert )

View File

@@ -0,0 +1,11 @@
add_python_target( python_ert ${PYTHON_INSTALL_PREFIX}/ert __init__ )
add_subdirectory( config )
add_subdirectory( cwrap )
add_subdirectory( ecl )
add_subdirectory( enkf )
add_subdirectory( geo )
add_subdirectory( job_queue )
add_subdirectory( rms )
add_subdirectory( sched )
add_subdirectory( util )
add_subdirectory( well )

View File

@@ -35,14 +35,14 @@ variable LD_LIBRARY_PATH.
To avoid conflict with other application using the ert libraries the
Python code should be able to locate the shared libraries without
(necessarily) using the LD_LIBRARY_PATH variable. The default
behaviour is to try to load from the library ../../lib, but by using
behaviour is to try to load from the library ../../lib64, but by using
the enviornment variable ERT_LIBRARY_PATH you can alter how ert looks
for shared libraries. This module will set the ert_lib_path of the
ert.cwrap.clib module; the actual loading will take place in that
module.
1. By default the code will try to load the shared libraries from
'../../lib' relative to the location of this file.
'../../lib64' relative to the location of this file.
2. Depending on the value of ERT_LIBRARY_PATH two different
behaviours can be imposed:
@@ -53,7 +53,7 @@ module.
Arbitrary value: the package will use standard load order for
the operating system.
If the fixed path, given by the default ../../lib or ERT_LIBRARY_PATH
If the fixed path, given by the default ../../lib64 or ERT_LIBRARY_PATH
alternative fails, the loader will try the default load behaviour
before giving up completely.
"""
@@ -69,8 +69,8 @@ if ert_lib_path:
ert_lib_path = None
#else: look in ERT_LIBRARY_PATH
else:
# Look in the default path "../../lib"
ert_lib_path = os.path.realpath( os.path.join(os.path.dirname( os.path.abspath( __file__)) , "../../lib") )
# Look in the default path "../../lib64"
ert_lib_path = os.path.realpath( os.path.join(os.path.dirname( os.path.abspath( __file__)) , "../../lib64") )
if not os.path.exists( ert_lib_path ):
ert_lib_path = None

View File

@@ -0,0 +1 @@
add_python_target(python_config ${PYTHON_INSTALL_PREFIX}/ert/config "config;__init__;libconfig")

View File

@@ -0,0 +1 @@
add_python_target(python_cwrap ${PYTHON_INSTALL_PREFIX}/ert/cwrap "cclass;cenum;cfile;clib;cwrap;__init__")

View File

@@ -0,0 +1,2 @@
set(PYTHON_INSTALL_PREFIX "/python/ert/ecl/")
add_python_target(python_ecl ${PYTHON_INSTALL_PREFIX} "ecl_case;ecl_default;ecl_file;ecl_grav_calc;ecl_grav;ecl_grid;ecl_kw;ecl;ecl_queue;ecl_region;ecl_rft;ecl_subsidence;ecl_sum;ecl_util;fortio;__init__;libecl")

View File

@@ -0,0 +1 @@
add_python_target(python_enkf ${PYTHON_INSTALL_PREFIX}/ert/enkf "enkf_enum;enkf_main;enkf;ens_config;__init__;libenkf")

View File

@@ -0,0 +1 @@
add_python_target(python_geo ${PYTHON_INSTALL_PREFIX}/ert/geo "geo_polygon;geo;__init__;libgeo")

View File

@@ -0,0 +1 @@
add_python_target(pythonjob_queue ${PYTHON_INSTALL_PREFIX}/ert/job_queue "driver;__init__;job;job_queue;libjob_queue;queue")

View File

@@ -0,0 +1 @@
add_python_target(python_rms ${PYTHON_INSTALL_PREFIX}/ert/rms "__init__;librms;rms")

View File

@@ -0,0 +1 @@
add_python_target(python_sched ${PYTHON_INSTALL_PREFIX}/ert/sched "__init__;libsched;sched_file;sched")

View File

@@ -0,0 +1 @@
add_python_target(python_util ${PYTHON_INSTALL_PREFIX}/ert/util "ctime;hash;__init__;latex;libutil;lookup_table;matrix;stat;stringlist;tvector;util_func")

View File

@@ -0,0 +1 @@
add_python_target(python_well ${PYTHON_INSTALL_PREFIX}/ert/well "__init__;libwell;well_info;well;well_state;well_ts")

View File

@@ -0,0 +1,2 @@
set(PYTHON_INSTALL_PREFIX "/python/test")
add_python_target(python_tests ${PYTHON_INSTALL_PREFIX} "ecl_isosurf;enkf_test;ens_config_test;file_test;fortio_test;grav_test;grdecl_test;grid_test0;grid_test;import_test;job_test;kw_test;large_mem_test;latex_test;petrel_kw;poly_test;region_test;restart_test;rft_test;sched_test;stringlist_test;sum_test;test_all;test_fast;test_util;troll_test;util_test")