Salome HOME
Fix problem with slow rendering of the qt widgets on the remote host.
[modules/gui.git] / src / SUITApp / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 #  File   : Makefile.in
24 #  Author : Vladimir Klyachin (OCN)
25 #  Module : suitApp
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 lib_LTLIBRARIES = libSUITApp.la
30
31 salomeinclude_HEADERS =         \
32         SUITApp_Application.h
33
34 dist_libSUITApp_la_SOURCES =    \
35         SUITApp.cxx             \
36         SUITApp_Application.cxx
37
38 if ENABLE_PYCONSOLE
39   salomeinclude_HEADERS += SUITApp_init_python.hxx
40   dist_libSUITApp_la_SOURCES += SUITApp_init_python.cxx 
41 endif
42
43 MOC_FILES =                             \
44         SUITApp_Application_moc.cxx
45
46 nodist_libSUITApp_la_SOURCES = $(MOC_FILES)
47
48 nodist_salomeres_DATA = SUITApp_msg_en.qm SUITApp_msg_fr.qm
49
50 libSUITApp_la_CPPFLAGS = $(QT_INCLUDES) $(PYTHON_INCLUDES) \
51                          -I$(srcdir)/../SUIT -I$(srcdir)/../Qtx -I$(srcdir)/../Style
52
53 if ENABLE_TESTRECORDER
54   libSUITApp_la_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
55   MOC_FLAGS = -DENABLE_TESTRECORDER
56 endif
57
58 libSUITApp_la_LDFLAGS  = $(QT_MT_LIBS) 
59
60 if ENABLE_TESTRECORDER
61   libSUITApp_la_LDFLAGS+= $(TESTRECORDER_LIBS)
62 endif
63
64 libSUITApp_la_LIBADD   = ../Qtx/libqtx.la ../SUIT/libsuit.la ../Style/libSalomeStyle.la
65
66 if ENABLE_PYCONSOLE
67   libSUITApp_la_LDFLAGS += -Xlinker -export-dynamic $(PYTHON_LIBS)
68 endif
69
70 # Executable
71 bin_PROGRAMS = SUITApp
72
73 dist_SUITApp_SOURCES = SUITApp.cxx
74
75 SUITApp_CPPFLAGS = $(QT_INCLUDES) $(PYTHON_INCLUDES) \
76                    -I$(srcdir)/../SUIT -I$(srcdir)/../Qtx -I$(srcdir)/../Style
77
78 if ENABLE_TESTRECORDER
79   SUITApp_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
80 endif
81
82 SUITApp_LDADD    = libSUITApp.la  ../Qtx/libqtx.la ../SUIT/libsuit.la ../Style/libSalomeStyle.la ${QT_LIBS}
83 if ENABLE_PYCONSOLE
84   SUITApp_LDADD += $(PYTHON_LIBS)
85 endif
86
87 if ENABLE_TESTRECORDER
88   SUITApp_LDADD+= $(TESTRECORDER_LIBS)
89 endif