From: adv Date: Fri, 19 Feb 2010 15:45:19 +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=refs%2Fheads%2FBR_IMP_INCLUDE;p=plugins%2Fghs3dplugin.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_GHS3DPLUGIN.m4 b/adm_local/unix/config_files/check_GHS3DPLUGIN.m4 index 5ed3b2d..0b8c4e6 100755 --- a/adm_local/unix/config_files/check_GHS3DPLUGIN.m4 +++ b/adm_local/unix/config_files/check_GHS3DPLUGIN.m4 @@ -62,7 +62,7 @@ if test -f ${GHS3DPLUGIN_DIR}/lib/salome/libGHS3DEngine.so ; then if test "x$GHS3DPLUGIN_ROOT_DIR" == "x" ; then GHS3DPLUGIN_ROOT_DIR=${GHS3DPLUGIN_DIR} fi - GHS3DPLUGIN_CXXFLAGS+=-I${GHS3DPLUGIN_ROOT_DIR}/include/salome + GHS3DPLUGIN_CXXFLAGS+="-I${GHS3DPLUGIN_ROOT_DIR}/include/salome -I${GHS3DPLUGIN_ROOT_DIR}/include/salome/skel" GHS3DPLUGIN_LDFLAGS+=-L${GHS3DPLUGIN_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome AC_SUBST(GHS3DPLUGIN_ROOT_DIR) AC_SUBST(GHS3DPLUGIN_LDFLAGS) diff --git a/adm_local/unix/make_common_starter.am b/adm_local/unix/make_common_starter.am index 656184c..1188b3c 100644 --- a/adm_local/unix/make_common_starter.am +++ b/adm_local/unix/make_common_starter.am @@ -31,7 +31,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 613df2c..5b13370 100644 --- a/idl/Makefile.am +++ b/idl/Makefile.am @@ -38,7 +38,7 @@ nodist_libSalomeIDLGHS3DPLUGIN_la_SOURCES = \ GHS3DPlugin_AlgorithmDynSK.cc: GHS3DPlugin_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) libSalomeIDLGHS3DPLUGIN_la_CPPFLAGS = \ -I$(top_builddir)/idl \ diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index 2efd30f..5347629 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -28,18 +28,18 @@ #include "GHS3DPlugin_Hypothesis.hxx" -#include +#include -#include "SMESH_Gen.hxx" -#include "SMESH_Mesh.hxx" -#include "SMESH_Comment.hxx" -#include "SMESH_MesherHelper.hxx" -#include "SMESH_MeshEditor.hxx" +#include +#include +#include +#include +#include -#include "SMDS_MeshElement.hxx" -#include "SMDS_MeshNode.hxx" -#include "SMDS_FaceOfNodes.hxx" -#include "SMDS_VolumeOfNodes.hxx" +#include +#include +#include +#include #include #include @@ -64,7 +64,7 @@ #include #include -#include "utilities.h" +#include #ifdef WIN32 #include diff --git a/src/GHS3DPlugin_GHS3D.hxx b/src/GHS3DPlugin_GHS3D.hxx index fdcded7..e9c6d2d 100644 --- a/src/GHS3DPlugin_GHS3D.hxx +++ b/src/GHS3DPlugin_GHS3D.hxx @@ -26,7 +26,7 @@ #ifndef _GHS3DPlugin_GHS3D_HXX_ #define _GHS3DPlugin_GHS3D_HXX_ -#include "SMESH_3D_Algo.hxx" +#include #include #include diff --git a/src/GHS3DPlugin_GHS3D_i.cxx b/src/GHS3DPlugin_GHS3D_i.cxx index 83c3ae7..e072983 100644 --- a/src/GHS3DPlugin_GHS3D_i.cxx +++ b/src/GHS3DPlugin_GHS3D_i.cxx @@ -23,10 +23,10 @@ // $Header$ // #include "GHS3DPlugin_GHS3D_i.hxx" -#include "SMESH_Gen.hxx" +#include #include "GHS3DPlugin_GHS3D.hxx" -#include "utilities.h" +#include using namespace std; diff --git a/src/GHS3DPlugin_GHS3D_i.hxx b/src/GHS3DPlugin_GHS3D_i.hxx index 6fea6fc..00e541d 100644 --- a/src/GHS3DPlugin_GHS3D_i.hxx +++ b/src/GHS3DPlugin_GHS3D_i.hxx @@ -28,7 +28,7 @@ #include CORBA_SERVER_HEADER(GHS3DPlugin_Algorithm) #include CORBA_SERVER_HEADER(SALOME_Exception) -#include "SMESH_3D_Algo_i.hxx" +#include #include "GHS3DPlugin_GHS3D.hxx" // ====================================================== diff --git a/src/GHS3DPlugin_Hypothesis.hxx b/src/GHS3DPlugin_Hypothesis.hxx index 119bcd5..9f46144 100644 --- a/src/GHS3DPlugin_Hypothesis.hxx +++ b/src/GHS3DPlugin_Hypothesis.hxx @@ -26,8 +26,8 @@ #include "GHS3DPlugin_Defs.hxx" -#include -#include +#include +#include #include #include diff --git a/src/GHS3DPlugin_Hypothesis_i.cxx b/src/GHS3DPlugin_Hypothesis_i.cxx index 570f96b..9aed53a 100644 --- a/src/GHS3DPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPlugin_Hypothesis_i.cxx @@ -22,12 +22,12 @@ // #include "GHS3DPlugin_Hypothesis_i.hxx" -#include -#include +#include +#include -#include -#include -#include +#include +#include +#include //======================================================================= //function : GHS3DPlugin_Hypothesis_i diff --git a/src/GHS3DPlugin_Hypothesis_i.hxx b/src/GHS3DPlugin_Hypothesis_i.hxx index fa70cb5..3fbb95d 100644 --- a/src/GHS3DPlugin_Hypothesis_i.hxx +++ b/src/GHS3DPlugin_Hypothesis_i.hxx @@ -29,7 +29,7 @@ #include #include CORBA_SERVER_HEADER(GHS3DPlugin_Algorithm) -#include "SMESH_Hypothesis_i.hxx" +#include #include "GHS3DPlugin_Hypothesis.hxx" class SMESH_Gen; diff --git a/src/GHS3DPlugin_i.cxx b/src/GHS3DPlugin_i.cxx index 309ef5a..bf6be9b 100644 --- a/src/GHS3DPlugin_i.cxx +++ b/src/GHS3DPlugin_i.cxx @@ -22,9 +22,9 @@ // Module : SMESH // $Header$ // -#include "SMESH_Hypothesis_i.hxx" +#include -#include "utilities.h" +#include #include "GHS3DPlugin_GHS3D_i.hxx" #include "GHS3DPlugin_Hypothesis_i.hxx" diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index f9f7e37..ade8aee 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -24,15 +24,15 @@ // #include "GHS3DPluginGUI_HypothesisCreator.h" -#include -#include +#include +#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -53,7 +53,7 @@ #include #include -#include +#include // tabs enum { diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.h b/src/GUI/GHS3DPluginGUI_HypothesisCreator.h index 4cf1809..24e0bdc 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.h +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.h @@ -34,8 +34,8 @@ #define GHS3DPLUGINGUI_EXPORT #endif -#include -// #include +#include +// #include #include #include