mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 09:40:35 +05:00
Fix to bug PAL10465.
Modification of resource files location in "build" and "installation" directories. Now resource files are placed in share/salome/resources/<module_name>. Various configuration files (configure.in.base, make_module/conclude/commence, etc.) are changed.
This commit is contained in:
parent
1335ea8843
commit
5a1d0a6f3a
@ -1,6 +1,8 @@
|
|||||||
# common directories to put headerfiles
|
# common directories to put headerfiles
|
||||||
inc_builddir=$(top_builddir)/include/salome
|
inc_builddir=$(top_builddir)/include/salome
|
||||||
|
|
||||||
|
MODULE_NAME=@MODULE_NAME@
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ $(DEST_HEADERS): $(inc_builddir)/%: %
|
|||||||
cp -f $< $@
|
cp -f $< $@
|
||||||
|
|
||||||
# build resources file (icons and messages) : .qm file from .po file
|
# build resources file (icons and messages) : .qm file from .po file
|
||||||
resources: $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/%.qm)
|
resources: $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/$(MODULE_NAME)/%.qm)
|
||||||
|
|
||||||
# Make installation directories if they don't exist.
|
# Make installation directories if they don't exist.
|
||||||
$(libdir) $(includedir) $(bindir) $(datadir) $(idldir) $(sharedpydir):
|
$(libdir) $(includedir) $(bindir) $(datadir) $(idldir) $(sharedpydir):
|
||||||
@ -187,10 +187,10 @@ $(EXPORT_SHAREDPYSCRIPTS:%=install-%): install-%: %
|
|||||||
|
|
||||||
# generic rule to install .qm files :
|
# generic rule to install .qm files :
|
||||||
install-qm: resources
|
install-qm: resources
|
||||||
$(INSTALL) -d $(datadir)/resources
|
$(INSTALL) -d $(datadir)/resources/$(MODULE_NAME)
|
||||||
@for f in X $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/%.qm); do \
|
@for f in X $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/$(MODULE_NAME)/%.qm); do \
|
||||||
if test $$f != X; then \
|
if test $$f != X; then \
|
||||||
($(INSTALL_DATA) $$f $(datadir)/resources/. || exit 1); \
|
($(INSTALL_DATA) $$f $(datadir)/resources/$(MODULE_NAME)/. || exit 1); \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ uninstall:
|
|||||||
# Uninstall qm files
|
# Uninstall qm files
|
||||||
@for f in X $(PO_FILES:%.po=%.qm); do \
|
@for f in X $(PO_FILES:%.po=%.qm); do \
|
||||||
if test $$f != X; then \
|
if test $$f != X; then \
|
||||||
$(LT_UNINSTALL) $(datadir)/resources/$$f ; \
|
$(LT_UNINSTALL) $(datadir)/resources/$(MODULE_NAME)/$$f ; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -279,7 +279,7 @@ clean: mostlyclean
|
|||||||
#
|
#
|
||||||
distclean: clean
|
distclean: clean
|
||||||
#remove qm file !
|
#remove qm file !
|
||||||
-$(RM) $(PO_FILES:%.po=%.qm) $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/%.qm)
|
-$(RM) $(PO_FILES:%.po=%.qm) $(PO_FILES:%.po=$(top_builddir)/share/salome/resources/$(MODULE_NAME)/%.qm)
|
||||||
#remove include files
|
#remove include files
|
||||||
-$(RM) $(DEST_HEADERS)
|
-$(RM) $(DEST_HEADERS)
|
||||||
-$(RM) $(DISTCLEAN) *.bak *.old *.new .dep*
|
-$(RM) $(DISTCLEAN) *.bak *.old *.new .dep*
|
||||||
@ -326,7 +326,7 @@ distclean: clean
|
|||||||
%_wrap.cxx : %.i
|
%_wrap.cxx : %.i
|
||||||
$(SWIG) $(SWIG_FLAGS) -o $@ $<
|
$(SWIG) $(SWIG_FLAGS) -o $@ $<
|
||||||
|
|
||||||
$(top_builddir)/share/salome/resources/%.qm: %.po
|
$(top_builddir)/share/salome/resources/$(MODULE_NAME)/%.qm: %.po
|
||||||
$(MSG2QM) $< $@ ; \
|
$(MSG2QM) $< $@ ; \
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
@ -27,6 +27,10 @@ XVERSION=0x030200
|
|||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
AC_SUBST(XVERSION)
|
AC_SUBST(XVERSION)
|
||||||
|
|
||||||
|
# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
|
||||||
|
MODULE_NAME=smesh
|
||||||
|
AC_SUBST(MODULE_NAME)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Initialize source and build root directories
|
dnl Initialize source and build root directories
|
||||||
dnl
|
dnl
|
||||||
@ -350,7 +354,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# make other build directories
|
# make other build directories
|
||||||
for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources idl
|
for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl
|
||||||
do
|
do
|
||||||
# if test ! -d $rep ; then
|
# if test ! -d $rep ; then
|
||||||
# eval mkdir $rep
|
# eval mkdir $rep
|
||||||
|
@ -83,10 +83,10 @@
|
|||||||
|
|
||||||
The SALOME automatically locates XML files, searching them in the following directories:
|
The SALOME automatically locates XML files, searching them in the following directories:
|
||||||
|
|
||||||
${<PLUGINNAME>_ROOT_DIR}/share/salome/resources
|
${<PLUGINNAME>_ROOT_DIR}/share/salome/resources/<plugin>
|
||||||
${SALOME_<PluginName>Resources}
|
${SALOME_<PluginName>Resources}
|
||||||
${HOME}/.salome/resources
|
${HOME}/.salome/resources
|
||||||
${KERNEL_ROOT_DIR}/share/salome/resources
|
${KERNEL_ROOT_DIR}/share/salome/resources/kernel
|
||||||
|
|
||||||
where <PluginName> is a name of each mesher plugin package
|
where <PluginName> is a name of each mesher plugin package
|
||||||
|
|
||||||
@ -148,7 +148,7 @@
|
|||||||
4.2.2. Define environment variable SALOME_<MyResourceKey>Resources to point to the
|
4.2.2. Define environment variable SALOME_<MyResourceKey>Resources to point to the
|
||||||
directory where resources are situated.
|
directory where resources are situated.
|
||||||
|
|
||||||
Example: setenv SALOME_StdMeshersResources ${SMESH_ROOT_DIR}/share/salome/resources
|
Example: setenv SALOME_StdMeshersResources ${SMESH_ROOT_DIR}/share/salome/resources/smesh
|
||||||
|
|
||||||
4.3. Implement your Hypothesis Creator and being exported method
|
4.3. Implement your Hypothesis Creator and being exported method
|
||||||
|
|
||||||
|
@ -202,10 +202,10 @@ SMESH module.<br>
|
|||||||
The SALOME automatically locates XML files, searching them in the following
|
The SALOME automatically locates XML files, searching them in the following
|
||||||
directories:<br>
|
directories:<br>
|
||||||
<tt><br>
|
<tt><br>
|
||||||
${<PLUGINNAME>_ROOT_DIR}/share/salome/resources<br>
|
${<PLUGINNAME>_ROOT_DIR}/share/salome/resources/<pluginname><br>
|
||||||
${SALOME_<PluginName>Resources}<br>
|
${SALOME_<PluginName>Resources}<br>
|
||||||
${HOME}/.salome/resources<br>
|
${HOME}/.salome/resources<br>
|
||||||
${KERNEL_ROOT_DIR}/share/salome/resources</tt><br>
|
${KERNEL_ROOT_DIR}/share/salome/resources/kernel</tt><br>
|
||||||
<br>
|
<br>
|
||||||
where <PluginName> is a name of each mesher plugin package<br>
|
where <PluginName> is a name of each mesher plugin package<br>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
@ -280,7 +280,7 @@ See paragraph 2 for definition of MyResourceKey, MyHypType1, MyAlgType1.<tt><br>
|
|||||||
<h5> <a name="2_4_2_2"></a>2.4.2.2. Define environment variable SALOME_<MyResourceKey>Resources</h5>
|
<h5> <a name="2_4_2_2"></a>2.4.2.2. Define environment variable SALOME_<MyResourceKey>Resources</h5>
|
||||||
<blockquote>It should point to the directory where resources are situated.</blockquote>
|
<blockquote>It should point to the directory where resources are situated.</blockquote>
|
||||||
|
|
||||||
<blockquote><tt>Example: setenv SALOME_StdMeshersResources ${SMESH_ROOT_DIR}/share/salome/resources</tt></blockquote>
|
<blockquote><tt>Example: setenv SALOME_StdMeshersResources ${SMESH_ROOT_DIR}/share/salome/resources/smesh</tt></blockquote>
|
||||||
|
|
||||||
<h4> <a name="2_4_3"></a>2.4.3. Implement your Hypothesis Creator and being
|
<h4> <a name="2_4_3"></a>2.4.3. Implement your Hypothesis Creator and being
|
||||||
exported method</h4>
|
exported method</h4>
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section name="resources">
|
<section name="resources">
|
||||||
<!-- Module resources -->
|
<!-- Module resources -->
|
||||||
<parameter name="SMESH" value="${SMESH_ROOT_DIR}/share/salome/resources"/>
|
<parameter name="SMESH" value="${SMESH_ROOT_DIR}/share/salome/resources/smesh"/>
|
||||||
<parameter name="StdMeshers" value="${SMESH_ROOT_DIR}/share/salome/resources"/>
|
<parameter name="StdMeshers" value="${SMESH_ROOT_DIR}/share/salome/resources/smesh"/>
|
||||||
</section>
|
</section>
|
||||||
</document>
|
</document>
|
||||||
|
Loading…
Reference in New Issue
Block a user