From: adv Date: Fri, 19 Feb 2010 15:45:37 +0000 (+0000) Subject: Improve build system: install each module's header files to the sub-directory of... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=697cc9f68b1fab19e9f31e4ba172d426f7b30ab5;p=plugins%2Fblsurfplugin.git Improve build system: install each module's header files to the sub-directory of ${prefix}/include/salome/${module_name} --- diff --git a/adm_local/unix/config_files/check_BLSURFPLUGIN.m4 b/adm_local/unix/config_files/check_BLSURFPLUGIN.m4 index 1756adf..1e17a91 100644 --- a/adm_local/unix/config_files/check_BLSURFPLUGIN.m4 +++ b/adm_local/unix/config_files/check_BLSURFPLUGIN.m4 @@ -46,7 +46,7 @@ if test "$with_BLSURFplugin" != "no" ; then AC_MSG_RESULT(Using BLSURF mesh plugin distribution in ${BLSURFPLUGIN_DIR}) BLSURFPLUGIN_ROOT_DIR=${BLSURFPLUGIN_DIR} BLSURFPLUGIN_LDFLAGS=-L${BLSURFPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome - BLSURFPLUGIN_CXXFLAGS=-I${BLSURFPLUGIN_DIR}/include/salome + BLSURFPLUGIN_CXXFLAGS="-I${BLSURFPLUGIN_DIR}/include/salome -I${BLSURFPLUGIN_DIR}/include/salome/skel" else AC_MSG_WARN("Cannot find compiled BLSURF mesh plugin distribution") fi diff --git a/adm_local/unix/make_common_starter.am b/adm_local/unix/make_common_starter.am index 2984cd2..100140f 100644 --- a/adm_local/unix/make_common_starter.am +++ b/adm_local/unix/make_common_starter.am @@ -35,7 +35,8 @@ AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h # ============================================================ # Standard directory for installation # -salomeincludedir = $(includedir)/salome +salomeincludedir = $(includedir)/salome/@MODULE_NAME@ +salomeskeldir = $(includedir)/salome/skel libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome bindir = $(prefix)/bin/salome salomescriptdir = $(bindir) diff --git a/idl/Makefile.am b/idl/Makefile.am index af8b04e..a9e0b9c 100644 --- a/idl/Makefile.am +++ b/idl/Makefile.am @@ -39,7 +39,7 @@ lib_LTLIBRARIES = libSalomeIDLBLSURFPLUGIN.la nodist_libSalomeIDLBLSURFPLUGIN_la_SOURCES = BLSURFPlugin_AlgorithmSK.cc # header files must be exported: other modules have to use this library -nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) +nodist_salomeskel_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) libSalomeIDLBLSURFPLUGIN_la_CPPFLAGS = \ $(KERNEL_CXXFLAGS) \ diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 736ba52..7168ab5 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -34,13 +34,13 @@ extern "C"{ #include -#include +#include -#include -#include -#include +#include +#include +#include -#include +#include #include #include diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx index 51e6fca..92bb31e 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx @@ -34,16 +34,16 @@ #include #include -#include "SMESH_2D_Algo.hxx" -#include "SMESH_Mesh.hxx" -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include CORBA_CLIENT_HEADER(SALOMEDS) #include CORBA_CLIENT_HEADER(GEOM_Gen) -#include "Utils_SALOME_Exception.hxx" +#include extern "C"{ #include "distene/blsurf.h" diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.cxx index 808321d..264a009 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.cxx @@ -22,10 +22,10 @@ // --- // #include "BLSURFPlugin_BLSURF_i.hxx" -#include "SMESH_Gen.hxx" +#include -#include "Utils_CorbaException.hxx" -#include "utilities.h" +#include +#include //============================================================================= /*! diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.hxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.hxx index bf66433..d9c1353 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.hxx @@ -27,7 +27,7 @@ #include #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm) -#include "SMESH_2D_Algo_i.hxx" +#include #include "BLSURFPlugin_BLSURF.hxx" // ====================================================== diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 5eef8ff..aec73f3 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -24,7 +24,7 @@ // --- // #include "BLSURFPlugin_Hypothesis.hxx" -#include +#include #include #include #include diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx index 8586dec..a028d92 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx @@ -26,7 +26,7 @@ #ifndef _BLSURFPlugin_Hypothesis_HXX_ #define _BLSURFPlugin_Hypothesis_HXX_ -#include "SMESH_Hypothesis.hxx" +#include #include #include #include diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index 56d49f5..6180d35 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -23,12 +23,12 @@ // --- // #include "BLSURFPlugin_Hypothesis_i.hxx" -#include "SMESH_Gen.hxx" -#include "SMESH_PythonDump.hxx" -#include "GEOM_Object.hxx" +#include +#include +#include -#include "Utils_CorbaException.hxx" -#include "utilities.h" +#include +#include #include #include "boost/regex.hpp" diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.hxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.hxx index fef59b7..601e7cb 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.hxx @@ -28,7 +28,7 @@ #include #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm) -#include "SMESH_Hypothesis_i.hxx" +#include #include "BLSURFPlugin_Hypothesis.hxx" class SMESH_Gen; diff --git a/src/BLSURFPlugin/BLSURFPlugin_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_i.cxx index df84e41..f844423 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_i.cxx @@ -21,7 +21,7 @@ // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) // --- // -#include "utilities.h" +#include #ifdef WIN32 #if defined BLSURFPLUGIN_EXPORTS || defined BLSURFEngine_EXPORTS diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 6ee6491..c173e15 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -25,15 +25,15 @@ // #include "BLSURFPluginGUI_HypothesisCreator.h" -#include -#include -#include +#include +#include +#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -59,18 +59,18 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include -#include +#include #include -#include +#include #include #include -// #include +// #include #define WITH_SIZE_BOUNDARIES enum Topology { diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h index 2e9ca66..0beccbe 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h @@ -48,14 +48,14 @@ #include -#include +#include #include #include #include #include #include #include -#include +#include #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm) class QGroupBox;