]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Implement 'make dist' and 'make distcheck' steps support BR_QT4_Dev V5_1_0a1 V5_1_0a2
authorvsr <vsr@opencascade.com>
Tue, 16 Sep 2008 08:23:46 +0000 (08:23 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Sep 2008 08:23:46 +0000 (08:23 +0000)
Makefile.am
adm_local/Makefile.am
adm_local/unix/config_files/Makefile.am
adm_local/unix/make_common_starter.am
bin/Makefile.am
clean_configure [new file with mode: 0755]
configure.ac
idl/Makefile.am
resources/Makefile.am
resources/SalomeApp.xml [new file with mode: 0644]
src/Makefile.am

index 6804fb963d0a3772f578ce87b9de58366d1cd03a..ff7d848ac9015f73edfb53426c24c9d14cbfe1c1 100644 (file)
 
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-
-SUBDIRS = idl adm_local resources src bin 
+if GHS3DPLUGIN_ENABLE_GUI
+  ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+                    -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
+                    -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
+                    -I ${MED_ROOT_DIR}/adm_local/unix/config_files \
+                    -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
+                    -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files
+else !GHS3DPLUGIN_ENABLE_GUI
+  ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
+                    -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
+                    -I ${MED_ROOT_DIR}/adm_local/unix/config_files \
+                    -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
+                    -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files
+endif
+
+SUBDIRS = idl adm_local resources src bin
 
 DIST_SUBDIRS = idl adm_local resources src bin 
 
 DISTCLEANFILES = a.out aclocal.m4 configure
 
-salomeinclude_DATA=GHS3DPLUGIN_version.h
+salomeinclude_DATA = GHS3DPLUGIN_version.h
 
-EXTRA_DIST+= \
+EXTRA_DIST += \
        build_configure \
-       clean_configure \
-       LICENCE
+       clean_configure
 
 dist-hook:
        rm -rf `find $(distdir) -name CVS`
index 7ae83a6fc82f9b81116b259ad29f7610ead06353..b2d96e987677f1ed3625a5761229d90256626bc2 100644 (file)
@@ -16,4 +16,7 @@
 # 
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 # 
+
+include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
 SUBDIRS = unix
index c6a66528111f528f25b9a5df74cbe403aa8b88d3..232d47e3cbcf462cbc7d535b07aeb55b47341de2 100644 (file)
@@ -16,8 +16,9 @@
 # 
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 # 
+
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-dist_admlocalm4_DATA=\
-check_GHS3D.m4\
-check_GHS3DPLUGIN.m4
+dist_admlocalm4_DATA =         \
+    check_GHS3D.m4             \
+    check_GHS3DPLUGIN.m4
index c6e076e41b406d1200039f328ffdfe553e860742..c8f973454a3a3d9a780d419d30bc0a8479a4e653 100644 (file)
@@ -7,43 +7,58 @@
 #
 
 # Standard directory for installation
-salomeincludedir   = $(includedir)/@PACKAGE@
-libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/@PACKAGE@
-bindir             = $(prefix)/bin/@PACKAGE@
+salomeincludedir   = $(includedir)/salome
+libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
+bindir             = $(prefix)/bin/salome
 salomescriptdir    = $(bindir)
+salomepythondir    = $(pythondir)/salome
+salomepyexecdir    = $(pyexecdir)/salome
 
 # Directory for installing idl files
-salomeidldir       = $(prefix)/idl/@PACKAGE@
+salomeidldir       = $(prefix)/idl/salome
 
 # Directory for installing resource files
-salomeresdir       = $(prefix)/share/@PACKAGE@/resources/@MODULE_NAME@
+salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
 
 # Directories for installing admin files
-admlocaldir       = $(prefix)/adm_local
-admlocalunixdir     = $(admlocaldir)/unix
-admlocalm4dir        = $(admlocaldir)/unix/config_files
+admlocaldir        = $(prefix)/adm_local
+admlocalunixdir    = $(admlocaldir)/unix
+admlocalm4dir      = $(admlocaldir)/unix/config_files
 
 # Shared modules installation directory
-sharedpkgpythondir =$(pkgpythondir)/shared_modules
+sharedpkgpythondir = $(salomepythondir)/shared_modules
 
 # Documentation directory
-docdir             = $(datadir)/doc/@PACKAGE@
+docdir             = $(datadir)/doc/salome
 
 # common rules
 
-# moc-files generation
+# meta object implementation files generation (moc)
 %_moc.cxx: %.h
        $(MOC) $< -o $@
 
-# qm-files generation
+# translation (*.qm) files generation (lrelease)
 %.qm: %.ts
        $(LRELEASE) $< -qm $@
 
-EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.ts)
+# resource files generation (qrcc)
+qrc_%.cxx: %.qrc
+       $(QRCC) $< -o $@ -name $(*F)
 
+# qt forms files generation (uic)
+ui_%.h: %.ui
+       $(UIC) -o $@ $<
+
+# extra distributed files
+EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
+             $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
+
+# customize clean operation
 mostlyclean-local:
        rm -f @builddir@/*_moc.cxx
        rm -f @builddir@/*.qm
+       rm -f @builddir@/ui_*.h
+       rm -f @builddir@/qrc_*.cxx
 
 # tests
 tests: unittest
index a9fe51d77854ff4d0ae4a7b8377192b5ba3fd021..80722cd7cdb826c0c74522751174977cea9e7b4a 100644 (file)
 
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-#
-# ===============================================================
-# Files to be installed
-# ===============================================================
-#
-
-# These files are data, module or lib files
-nodist_salomescript_DATA= VERSION
+# non-distributed files 
+nodist_salomescript_DATA = VERSION
 
-EXTRA_DIST+= VERSION.in
+# distributed files
+dist_salomescript_SCRIPTS =
diff --git a/clean_configure b/clean_configure
new file mode 100755 (executable)
index 0000000..be0b542
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+rm -rf autom4te.cache aclocal.m4 configure make_config
+find . -name "*~" -print -exec rm {} \;
+find . -name "*.pyc" -print -exec rm {} \;
+#exit
+# ==================== ON SORT AVANT
+
+find bin -name Makefile.in | xargs rm -f
+find doc -name Makefile.in | xargs rm -f
+find idl -name Makefile.in | xargs rm -f
+find resources -name Makefile.in | xargs rm -f
+find salome_adm -name Makefile.in | xargs rm -f
+find src -name Makefile.in | xargs rm -f
+rm -f Makefile.in
index 677aedee8c6783f1d3aa150f085eab4739884185..a6dc466e8ff7610d81d72643a68e2c8342b53a55 100644 (file)
@@ -15,7 +15,7 @@
 # Created from configure.in.base
 #
 
-AC_INIT([Salome2 Project GHS3DPLUGIN module],[5.0.0], [webmaster.salome@opencascade.com], [salome])
+AC_INIT([Salome2 Project GHS3DPLUGIN module],[5.0.0], [webmaster.salome@opencascade.com], [SalomeGHS3DPLUGIN])
 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
index 0f0f709dd3881b3cb457c521fd491f078bd3fd73..a82977f0d29fe113a17c3de83f8d1a72c27995d0 100644 (file)
 
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-BASEIDL_FILES = \
-       GHS3DPlugin_Algorithm.idl
-
-EXTRA_DIST+= $(BASEIDL_FILES)
+BASEIDL_FILES = GHS3DPlugin_Algorithm.idl
 
 # This variable defines the files to be installed
-salomeidl_DATA = $(BASEIDL_FILES)
+dist_salomeidl_DATA = $(BASEIDL_FILES)
 
 # GUI idl common library
 lib_LTLIBRARIES = libSalomeIDLGHS3DPLUGIN.la
@@ -44,23 +41,23 @@ 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_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh)
 
-libSalomeIDLGHS3DPLUGIN_la_CPPFLAGS =\
+libSalomeIDLGHS3DPLUGIN_la_CPPFLAGS = \
        -I$(top_builddir)/salome_adm/unix \
        -I$(top_builddir)/idl \
        $(CORBA_CXXFLAGS) \
        $(CORBA_INCLUDES) \
        $(KERNEL_CXXFLAGS) \
-       $(SMESH_CXXFLAGS) \
-       $(GEOM_CXXFLAGS)
+       $(GEOM_CXXFLAGS) \
+       $(SMESH_CXXFLAGS)
 
 libSalomeIDLGHS3DPLUGIN_la_LDFLAGS = -no-undefined -version-info=0:0:0
 libSalomeIDLGHS3DPLUGIN_la_LIBADD  = \
-       @CORBA_LIBS@ \
        $(KERNEL_LDFLAGS) -lSalomeIDLKernel \
+       $(GEOM_LDFLAGS) -lSalomeIDLGEOM \
        $(SMESH_LDFLAGS) -lSalomeIDLSMESH \
-       $(GEOM_LDFLAGS) -lSalomeIDLGEOM
+       @CORBA_LIBS@
 
 # These variables defines the building process of CORBA files
 OMNIORB_IDL         = @OMNIORB_IDL@
@@ -69,23 +66,22 @@ OMNIORB_IDLPYFLAGS  = \
        @OMNIORB_IDLPYFLAGS@ \
        -I$(top_builddir)/idl/salome \
        -I$(KERNEL_ROOT_DIR)/idl/salome \
-       -I$(SMESH_ROOT_DIR)/idl/salome \
-       -I$(GEOM_ROOT_DIR)/idl/salome
+       -I$(GEOM_ROOT_DIR)/idl/salome \
+       -I$(SMESH_ROOT_DIR)/idl/salome
 
 IDLCXXFLAGS = \
        -bcxx \
        @IDLCXXFLAGS@ \
        -I$(top_builddir)/idl/salome \
        -I$(KERNEL_ROOT_DIR)/idl/salome \
-       -I$(SMESH_ROOT_DIR)/idl/salome \
        -I$(GEOM_ROOT_DIR)/idl/salome \
+       -I$(SMESH_ROOT_DIR)/idl/salome \
        -I$(top_builddir)/salome_adm/unix
-
 IDLPYFLAGS  = \
        @IDLPYFLAGS@ \
        -I$(KERNEL_ROOT_DIR)/idl/salome \
-       -I$(SMESH_ROOT_DIR)/idl/salome \
-       -I$(GEOM_ROOT_DIR)/idl/salome
+       -I$(GEOM_ROOT_DIR)/idl/salome \
+       -I$(SMESH_ROOT_DIR)/idl/salome
 
 # potential problem on parallel make on the following - multiple outputs
 SUFFIXES = .idl .hh SK.cc
@@ -95,14 +91,14 @@ SUFFIXES = .idl .hh SK.cc
        $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
 
 install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%)
-       $(INSTALL) -d  $(pkgpythondir)
+       $(INSTALL) -d  $(DESTDIR)$(salomepythondir)
        ls $^ | while read file; do \
-         $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(pkgpythondir) $$file ; \
+         $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
        done
 
 # uninstall-local removes too much, but it works in distcheck
 uninstall-local:
-       rm -rf $(pkgpythondir)/*
+       rm -rf $(DESTDIR)$(salomepythondir)/*
 
 mostlyclean-local:
        -rm -f *.hh *.cc .depidl
@@ -116,7 +112,7 @@ mostlyclean-local:
        @for dep in $^ dummy; do \
          if [ $$dep != "dummy" ]; then \
            echo Building dependencies for $$dep; \
-           $(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome -I$(SMESH_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome $$dep 2>/dev/null | \
+           $(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(SMESH_ROOT_DIR)/idl/salome -I$(top_builddir)/salome_adm/unix $$dep 2>/dev/null | \
            sed 's/\.o/\SK.cc/' >>$@; \
          fi; \
        done ;
index f990b2ce5797e1c0da9f803fcc70c64b8a60dc75..f8bdf71e28215682d823c7a5a11a3d48619590c2 100644 (file)
 
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-dist_salomeres_DATA = \
-       GHS3DPlugin.xml \
-       mesh_hypo_ghs3d.png \
+dist_salomeres_DATA =          \
+       GHS3DPlugin.xml         \
+       SalomeApp.xml
+
+if GHS3DPLUGIN_ENABLE_GUI
+  dist_salomeres_DATA +=       \
+       mesh_hypo_ghs3d.png     \
        mesh_tree_hypo_ghs3d.png
+endif
diff --git a/resources/SalomeApp.xml b/resources/SalomeApp.xml
new file mode 100644 (file)
index 0000000..80ae7ae
--- /dev/null
@@ -0,0 +1,9 @@
+<document>
+  <section name="resources">
+    <parameter name="GHS3DPlugin" value="${GHS3DPLUGIN_ROOT_DIR}/share/salome/resources/ghs3dplugin"/>
+  </section>
+  <section name="SMESH">
+    <!-- Default SMESH module plugins -->
+    <parameter name="plugins" value="NETGENPlugin,GHS3DPlugin"/>
+  </section>
+</document>
index 043971b8f81983d178b3e706530963e6773f33c8..c9e59d4d9aec38620130f088d997334b7a981f6f 100644 (file)
@@ -31,8 +31,15 @@ if GHS3DPLUGIN_ENABLE_GUI
   SUBDIRS = GUI
 endif
 
+DIST_SUBDIRS = GUI
+
 # header files 
-salomeinclude_HEADERS =
+salomeinclude_HEADERS = \
+       GHS3DPlugin_Defs.hxx \
+       GHS3DPlugin_GHS3D.hxx \
+       GHS3DPlugin_GHS3D_i.hxx \
+       GHS3DPlugin_Hypothesis.hxx \
+       GHS3DPlugin_Hypothesis_i.hxx
 
 # Libraries targets
 lib_LTLIBRARIES = libGHS3DEngine.la
@@ -46,13 +53,13 @@ dist_libGHS3DEngine_la_SOURCES = \
 
 libGHS3DEngine_la_CPPFLAGS =  \
        $(KERNEL_CXXFLAGS)    \
+       $(CAS_CPPFLAGS)       \
        $(GEOM_CXXFLAGS)      \
        $(MED_CXXFLAGS)       \
        $(SMESH_CXXFLAGS)     \
        $(BOOST_CPPFLAGS)     \
        $(CORBA_CXXFLAGS)     \
        $(CORBA_INCLUDES)     \
-       $(CAS_CPPFLAGS)       \
        -I$(top_builddir)/idl \
        -I$(top_builddir)/salome_adm/unix