]> SALOME platform Git repositories - modules/med.git/blob - src/MEDOP/gui/Makefile.am
Salome HOME
MED file mesh loading on demand.
[modules/med.git] / src / MEDOP / gui / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # author: Guillaume Boulant (EDF/R&D, 2012)
21
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 SUBDIRS = dialogs
25
26 #
27 # ---------------------------------------------------------
28 # Generation rules to create moc files from QObject headers
29 # and form source files from ui files
30 # ---------------------------------------------------------
31 # WRN: this rules could be integrated in the make_common_starter.am.
32 # For that, we first have to make the naming convention of Q_OBJECT
33 # files be the same between MEDGUI (old GUI) and MEDOP/gui (new GUI).
34 %_moc.cxx: %.hxx
35         $(MOC) $< -o $@
36
37 %.qm: %.ts
38         $(LRELEASE) $< -qm $@
39
40 EXTRA_DIST+=$(MOC_FILES:%_moc.cxx=%.hxx) $(nodist_salomeres_DATA:%.qm=%.ts) test
41
42 mostlyclean-local:
43         rm -f @builddir@/*_moc.cxx
44         rm -f @builddir@/*.qm
45
46 # Libraries targets
47 lib_LTLIBRARIES = libMEDOPGUI.la
48
49 salomeinclude_HEADERS =          \
50         MEDOPFactoryClient.hxx   \
51         XmedConsoleDriver.hxx    \
52         WorkspaceController.hxx  \
53         XmedDataModel.hxx        \
54         MEDEventListener_i.hxx   \
55         MEDOPModule.hxx          \
56         DatasourceController.hxx \
57         DatasourceConstants.hxx \
58         MEDOPGUI.hxx
59
60 dist_libMEDOPGUI_la_SOURCES =    \
61         MEDOPFactoryClient.cxx   \
62         XmedConsoleDriver.cxx    \
63         WorkspaceController.cxx  \
64         XmedDataModel.cxx        \
65         MEDEventListener_i.cxx   \
66         MEDOPModule.cxx          \
67         DatasourceController.cxx \
68         factory.cxx
69
70 # MOC pre-processing
71 MOC_FILES = \
72         MEDOPModule_moc.cxx          \
73         MEDEventListener_i_moc.cxx   \
74         WorkspaceController_moc.cxx  \
75         DatasourceController_moc.cxx
76
77 nodist_libMEDOPGUI_la_SOURCES = $(MOC_FILES)
78
79 OMNIORB_CXXFLAGS=@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
80 OMNIORB_LIBS=@OMNIORB_LIBS@
81
82 QT_CXXFLAGS  = @QT_INCLUDES@ @QT_MT_INCLUDES@
83 QT_LDFLAGS = $(QT_MT_LIBS)
84
85 CAS_CXXFLAGS = @CAS_CPPFLAGS@ @CAS_CXXFLAGS@
86
87 BOOST_CXXFLAGS=@BOOST_CPPFLAGS@
88
89 libMEDOPGUI_la_CPPFLAGS =     \
90         $(QT_CXXFLAGS)        \
91         $(CAS_CXXFLAGS)       \
92         $(OMNIORB_CXXFLAGS)   \
93         $(BOOST_CXXFLAGS)     \
94         $(KERNEL_CXXFLAGS)    \
95         $(GUI_CXXFLAGS)       \
96         $(MED_CXXFLAGS)       \
97         -I$(srcdir)/dialogs   \
98         -Idialogs \
99         -I$(srcdir)/../cmp    \
100         -I$(top_builddir)/idl \
101         -I$(top_builddir)
102
103 libMEDOPGUI_la_LDFLAGS  = \
104         -no-undefined -version-info=0:0:0                              \
105         $(KERNEL_LDFLAGS) -lSalomeLifeCycleCORBA -lSalomeKernelHelpers \
106         $(GUI_LDFLAGS) -lSalomeApp -lSalomeGuiHelpers -lSalomeTreeData \
107         $(QT_LDFLAGS)                                                  \
108         $(BOOST_LIBS)                                                  \
109         $(OMNIORB_LIBS)
110
111 # Specify MED internal libraries to be linked in
112 libMEDOPGUI_la_LIBADD  =                         \
113         $(top_builddir)/idl/libSalomeIDLMED.la   \
114         dialogs/libMEDOPGUI_dialogs.la           \
115         ../cmp/libMEDOPFactoryEngine.la
116
117 if WITH_MEDMEMGUI
118         libMEDOPGUI_la_CPPFLAGS += "-D__WITH_MEDMEMGUI__" -I$(top_srcdir)/src/MEDGUI
119         libMEDOPGUI_la_LIBADD += $(top_builddir)/src/MEDGUI/libMEDGUI.la
120 endif
121
122 # resources files
123 nodist_salomeres_DATA = \
124         MED_images.qm \
125         MED_msg_en.qm \
126         MED_msg_fr.qm