Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1 T3_2_0b2 V3_2_0 V3_2_0b2
authorjfa <jfa@opencascade.com>
Thu, 1 Jun 2006 11:52:13 +0000 (11:52 +0000)
committerjfa <jfa@opencascade.com>
Thu, 1 Jun 2006 11:52:13 +0000 (11:52 +0000)
25 files changed:
HELLO_version.h.in [new file with mode: 0644]
INSTALL [new file with mode: 0644]
Makefile.in
adm_local/Makefile.in
adm_local/unix/make_commence.in
bin/VERSION [deleted file]
bin/VERSION.in [new file with mode: 0755]
bin/myrunSalome.py
configure.in.base
idl/HELLO_Gen.idl
idl/Makefile.in
resources/HELLOCatalog.xml [deleted file]
resources/HELLOCatalog.xml.in [new file with mode: 0644]
src/HELLO/HELLO.cxx
src/HELLO/HELLO.hxx
src/HELLO/Makefile.in
src/HELLOGUI/HELLOGUI.cxx
src/HELLOGUI/HELLOGUI.h
src/HELLOGUI/HELLO_icons.po
src/HELLOGUI/HELLO_msg_en.po
src/HELLOGUI/HELLO_msg_fr.po
src/HELLOGUI/Makefile.in
src/HELLOGUI/old/HELLO_msg_en.po
src/HELLOGUI/old/HELLO_msg_fr.po
src/Makefile.in

diff --git a/HELLO_version.h.in b/HELLO_version.h.in
new file mode 100644 (file)
index 0000000..ccb3486
--- /dev/null
@@ -0,0 +1,34 @@
+// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either 
+// version 2.1 of the License.
+// 
+// This library is distributed in the hope that it will be useful 
+// but WITHOUT ANY WARRANTY; without even the implied warranty of 
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public  
+// License along with this library; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/
+//
+//  File   : HELLO_version.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
+
+#if !defined(__HELLO_VERSION_H__)
+#define __HELLO_VERSION_H__
+
+/*
+  HELLO_VERSION is (major << 16) + (minor << 8) + patch.
+*/
+
+#define HELLO_VERSION_STR "@VERSION@"
+#define HELLO_VERSION     @XVERSION@
+
+#endif // __HELLO_VERSION_H__
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..fdc6546
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1 @@
+SALOME2 : HELLO module (sample)
index 3789d4b591f3b15aa1aea56f17d334bd2d35e1b1..26630e199faea3f00617e1b63139aaaf9c04d320 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # -* Makefile *- 
 #
@@ -27,7 +27,8 @@
 top_srcdir=@top_srcdir@
 top_builddir=.
 srcdir=@srcdir@
-VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
+VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
+
 
 @COMMENCE@
 
@@ -38,14 +39,22 @@ RESOURCES_FILES = HELLOCatalog.xml HELLO.png ExecHELLO.png SalomeApp.xml
 BIN_SCRIPT= VERSION runAppli myrunSalome.py
 
 # copy header files in common directory
-ifeq ($(HAVE_SSTREAM),yes)
-  include_list=include/salome/SALOMEconfig.h
-else
-  include_list=include/salome/SALOMEconfig.h include/salome/sstream
+
+include_list = include/salome/SALOMEconfig.h \
+               include/salome/HELLO_version.h
+
+ifneq ($(HAVE_SSTREAM),yes)
+       include_list += include/salome/sstream
 endif
 
 inc: idl $(include_list)
 
+bin: bin/salome/VERSION
+
+bin/salome/VERSION : bin/VERSION
+       -$(RM) $@
+       $(LN_S) ../../$< $@
+
 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
        -$(RM) $@
        $(LN_S) ../../$< $@
@@ -63,6 +72,10 @@ include/salome/sstream: salome_adm/unix/sstream
        -$(RM) $@
        $(LN_S) ../../$< $@
 
+include/salome/HELLO_version.h: HELLO_version.h
+       -$(RM) $@
+       $(LN_S) ../../$< $@
+
 depend: depend_idl
 
 depend_idl:
index 40cecedb639bcd74fe032f2c3a4c68cd83c4dd17..cfbe6f4fd5a4d6ab16b6cc642bcc0686f4771544 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # source path
 top_srcdir=@top_srcdir@
index 1b1ae26e5289fc7d49abe9cbc3a8586aa1682193..f13ea5d914029b4915566d9d417c29436b911dc5 100644 (file)
@@ -10,7 +10,7 @@ HAVE_SSTREAM=@HAVE_SSTREAM@
 
 
 LIBS=@LIBS@ 
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
 # add libstdc++ to link c++ library with libtool !
 LDFLAGS+= -lstdc++
 
@@ -51,8 +51,8 @@ PYTHONHOME = @PYTHONHOME@
 PYTHON_INCLUDES = @PYTHON_INCLUDES@
 PYTHON_LIBS = @PYTHON_LIBS@
 PYTHON_VERSION = @PYTHON_VERSION@
-PYTHON_SITE = @PYTHON_SITE@
-PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
+PYTHON_SITE = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages
+PYTHON_SITE_INSTALL = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome
 
 # QT
 
@@ -191,16 +191,25 @@ INSTALL_DATA=@INSTALL_DATA@
 # create a symbolic link (or a copie ?)
 LN_S=@LN_S@
 
+KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
+KERNEL_SITE_DIR=@KERNEL_SITE_DIR@
+KERNEL_LDFLAGS=@KERNEL_LDFLAGS@
+KERNEL_CXXFLAGS=@KERNEL_CXXFLAGS@
+
+GUI_ROOT_DIR=@GUI_ROOT_DIR@
+GUI_LDFLAGS=@GUI_LDFLAGS@
+GUI_CXXFLAGS=@GUI_CXXFLAGS@
+
 ## Installation points
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 bindir=@bindir@/salome
-libdir=@libdir@/salome
+libdir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/salome
 # warning : if user give this path in configure we could have salome/salome :-(
 includedir=@includedir@/salome
 datadir=@datadir@/salome
 idldir=$(prefix)/idl/salome
-sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
+sharedpydir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
 
 docdir=$(datadir)/doc
 
diff --git a/bin/VERSION b/bin/VERSION
deleted file mode 100755 (executable)
index cb9975d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-SALOME 2 EXEMPLE MODULE C++ : HELLO : 3.2.0b1
-This module works with KERNEL 3.2.0b1, SALOMEGUI 3.2.0b1
diff --git a/bin/VERSION.in b/bin/VERSION.in
new file mode 100755 (executable)
index 0000000..6b2d2af
--- /dev/null
@@ -0,0 +1 @@
+SALOME 2 EXEMPLE MODULE C++ : HELLO : @VERSION@
index 7ad3220ca344de485ade55d714104bc3402a9ac7..083461d2b502d10146085e51cae597f749e8af7f 100755 (executable)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #!/usr/bin/env python
 
index 3eba28a8eb89ca5372dc428c0819a6d132df1e3d..214efbe9ace2955797765c1c85f519ebae0b88e7 100644 (file)
@@ -22,8 +22,10 @@ AC_CANONICAL_HOST
 PACKAGE=salome
 AC_SUBST(PACKAGE)
 
-VERSION=1.2.1
+VERSION=3.2.0
+XVERSION=0x030200
 AC_SUBST(VERSION)
+AC_SUBST(XVERSION)
 
 dnl
 dnl Initialize source and build root directories
@@ -130,14 +132,6 @@ echo
 
 ENABLE_PTHREADS
 
-echo
-echo ---------------------------------------------
-echo BOOST Library
-echo ---------------------------------------------
-echo
-
-CHECK_BOOST
-
 echo
 echo ---------------------------------------------
 echo testing python
@@ -162,6 +156,14 @@ echo
 
 CHECK_MSG2QM
 
+echo
+echo ---------------------------------------------
+echo BOOST Library
+echo ---------------------------------------------
+echo
+
+CHECK_BOOST
+
 echo
 echo ---------------------------------------------
 echo Testing OpenCascade
@@ -264,7 +266,7 @@ else
 fi
 
 # make other build directories
-for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
+for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources share/salome/doc idl
 do
     $INSTALL -d $rep
 done
index 683b3740fea4789aa0d938d3dfdd9b0fd43bea5d..9b7089e2aeeb6e2f36b9dcb48a1d4eb0830b21b1 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #ifndef __HELLO_GEN__
 #define __HELLO_GEN__
index 6b3f94b2c1b6f63d132c0766f4a7b89048e5ccf2..fc2789700de0f69b2cdc57a71adaf684afb3a336 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #
 # generate dependencies for idl file :
diff --git a/resources/HELLOCatalog.xml b/resources/HELLOCatalog.xml
deleted file mode 100644 (file)
index 7e44727..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version='1.0' encoding='us-ascii' ?>
-<!-- XML component catalog -->
-<begin-catalog>
-
-<!-- Path prefix information -->
-
-<path-prefix-list>
-</path-prefix-list>
-
-<!-- Component list -->
-<component-list>
-        <component>
-                <!-- Component identification -->
-                <component-name>HELLO</component-name>
-               <component-username>HELLO GUI</component-username>
-                <component-type>Data</component-type>
-                <component-author>C. Caremoli</component-author>
-                <component-version>3.2.0a1</component-version>
-                <component-comment>EDF - RD</component-comment>
-                <component-multistudy>1</component-multistudy>
-                <component-icone>HELLO.png</component-icone>
-                <constraint>'linux' ~ OS</constraint>
-       
-       </component>
-</component-list>
-</begin-catalog>
diff --git a/resources/HELLOCatalog.xml.in b/resources/HELLOCatalog.xml.in
new file mode 100644 (file)
index 0000000..980bfaa
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='us-ascii' ?>
+<!-- XML component catalog -->
+<begin-catalog>
+
+<!-- Path prefix information -->
+
+<path-prefix-list>
+</path-prefix-list>
+
+<!-- Component list -->
+<component-list>
+        <component>
+                <!-- Component identification -->
+                <component-name>HELLO</component-name>
+               <component-username>HELLO GUI</component-username>
+                <component-type>Data</component-type>
+                <component-author>C. Caremoli</component-author>
+                <component-version>@VERSION@</component-version>
+                <component-comment>EDF - RD</component-comment>
+                <component-multistudy>1</component-multistudy>
+                <component-icone>HELLO.png</component-icone>
+                <constraint>'linux' ~ OS</constraint>
+       
+       </component>
+</component-list>
+</begin-catalog>
index 489827977155e7b930f04d724a7cbecf60827889..aa02263984c0cbe7db050ab6f5fc1a8310c70fba 100755 (executable)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 using namespace std;
 #include "HELLO.hxx"
index 363ea27ac98cc738c88e4796a18e1ee2145dd32d..f4dad9856422e82af172b9551a0b9ee6a9b5effb 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #ifndef _HELLO_HXX_
 #define _HELLO_HXX_
index 749c79c12625252618b010ccde53b0c0cc88c6b0..87221e4dedde41d9b99c1adea1d3e76d8fd8635b 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # source path
 top_srcdir=@top_srcdir@
@@ -37,10 +37,9 @@ EXPORT_PYSCRIPTS =
 
 # additionnal information to compil and link file
 
-CPPFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
-# CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(KERNEL_CXXFLAGS)
 
-LDFLAGS+= -lSalomeContainer -lOpUtil -L${KERNEL_ROOT_DIR}/lib/salome
+LDFLAGS+= $(KERNEL_LDFLAGS) -lSalomeContainer -lOpUtil
 
  
 # Executables targets
index ebe2798992d52c2e67e98eeceb5f40c2cdc79356..c52954fa372058f7756596d93d3ffaa1cae6f660 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 #include "HELLOGUI.h"
 
index 2c365a290b54d7dff5cc5cc9fb133718f12e347f..d48193ad6a09dee74f230539e11daaa5a9984555 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //  HELLOGUI : HELLO component GUI implemetation 
 //
index c9878e1993b788e52fd1f9b0643b3cd65e3e1d2d..f5b491957022344ab2f68e62035b7479b5b0509a 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # This is a Qt message file in .po format.  Each msgid starts with
 # a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
index cb70000f23a4dff5ba8a26e92d4a482b8d31920e..f9ba694677c25cfb07178b395c715dbee2f975f1 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # This is a Qt message file in .po format.  Each msgid starts with
 # a scope.  This scope should *NOT* be translated - eg. translating
index 2b5bd2fd3cf2af03457c64b785dd08979a452a1b..c9c9d8b6a6d2eb33048b8780977c444467f4bd58 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # This is a Qt message file in .po format.  Each msgid starts with
 # a scope.  This scope should *NOT* be translated - eg. translating
index 9702e9c4dd935f25c75e9b9c26b1c76e2f99492e..a3e328c48ddec369f703cc1a498353f852ce9b79 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # source path
 top_srcdir=@top_srcdir@
@@ -42,9 +42,9 @@ LIB_SERVER_IDL =
 
 # additionnal information to compil and link file
 
-CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lSalomeApp -lHELLOEngine -L${KERNEL_ROOT_DIR}/lib/salome -L${GUI_ROOT_DIR}/lib/salome
+CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) $(KERNEL_CXXFLAGS) $(GUI_CXXFLAGS)
+CXXFLAGS += $(KERNEL_CXXFLAGS) $(GUI_CXXFLAGS)
+LDFLAGS += -lSalomeApp -lHELLOEngine $(KERNEL_LDFLAGS) $(GUI_LDFLAGS)
 
 
 
index a9bb894a8b772c93de377bba737df1c0383d2f8b..479f879ef2e25f59be1ffa43f62a6e07f579c712 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # This is a Qt message file in .po format.  Each msgid starts with
 # a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
index 7f22da739cc4da37668a006898f4d7a90bc58976..66736ae49d505abedd54df369282aaad81457b9a 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # This is a Qt message file in .po format.  Each msgid starts with
 # a scope.  This scope should *NOT* be translated - eg. "Foo::Bar"
index 654ffb2f9b8961f37406910763ac57d89251f233..78ce2e7836a7e7ea45690e4307e81a6bf4120357 100644 (file)
@@ -14,7 +14,7 @@
 #  License along with this library; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
-#  See http://www.salome-platform.org/
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #==============================================================================
 #  File      : Makefile.in