]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Fix assertion when checking if change in selection
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h \
4         CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake
5
6 noinst_LIBRARIES = liblyxsupport.a
7
8
9 #########################  Qt stuff  #############################
10 #
11
12 MOCHEADER = \
13         ConsoleApplicationPrivate.h \
14         FileMonitor.h \
15         SystemcallPrivate.h
16
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
18
19 CLEANFILES = $(MOCEDFILES)
20 BUILT_SOURCES = $(MOCEDFILES)
21
22 moc_%.cpp: %.h
23         $(AM_V_GEN)$(QT_MOC) -o $@ $<
24
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
26
27 #
28 ##################################################################
29
30 AM_CPPFLAGS += -I$(srcdir)/.. \
31         $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) \
32         $(QT_CPPFLAGS) $(QT_INCLUDES)
33
34 liblyxsupport_a_SOURCES = \
35         FileMonitor.h \
36         FileMonitor.cpp \
37         RandomAccessList.h \
38         bind.h \
39         Cache.h \
40         Changer.h \
41         ConsoleApplication.cpp \
42         ConsoleApplication.h \
43         ConsoleApplicationPrivate.h \
44         convert.cpp \
45         convert.h \
46         copied_ptr.h \
47         debug.cpp \
48         debug.h \
49         docstream.cpp \
50         docstream.h \
51         docstring.cpp \
52         docstring.h \
53         docstring_list.h \
54         environment.h \
55         environment.cpp \
56         ExceptionMessage.h \
57         FileName.cpp \
58         FileName.h \
59         FileNameList.h \
60         filetools.cpp \
61         filetools.h \
62         ForkedCalls.cpp \
63         ForkedCalls.h \
64         functional.h \
65         gettext.cpp \
66         gettext.h \
67         gzstream.cpp \
68         gzstream.h \
69         kill.cpp \
70         lassert.h \
71         lassert.cpp \
72         limited_stack.h \
73         lstrings.cpp \
74         lstrings.h \
75         lyxalgo.h \
76         lyxlib.h \
77         lyxmagic.h \
78         lyxtime.cpp \
79         lyxtime.h \
80         mutex.h \
81         mutex.cpp \
82         Messages.cpp \
83         Messages.h \
84         numpunct_lyx_char_type.h \
85         os.cpp \
86         os.h \
87         PathChanger.cpp \
88         PathChanger.h \
89         Package.cpp \
90         Package.h \
91         ProgressInterface.h \
92         pmprof.h \
93         qstring_helpers.cpp \
94         qstring_helpers.h \
95         regex.h \
96         RefChanger.h \
97         signals.h \
98         socktools.cpp \
99         socktools.h \
100         strfwd.h \
101         Systemcall.cpp \
102         Systemcall.h \
103         SystemcallPrivate.h \
104         TempFile.cpp \
105         TempFile.h \
106         textutils.h \
107         Translator.h \
108         Timeout.cpp \
109         Timeout.h \
110         trivstring.cpp \
111         trivstring.h \
112         types.h \
113         unique_ptr.h \
114         userinfo.cpp \
115         userinfo.h \
116         unicode.cpp \
117         unicode.h \
118         weighted_btree.h
119
120 #if INSTALL_MACOSX
121 #liblyxsupport_a_SOURCES += \
122 #       AppleSpellChecker.h \
123 #       AppleSpellChecker.mm
124 #endif
125
126 if INSTALL_MACOSX
127 liblyxsupport_a_SOURCES += \
128         AppleSpeller.h \
129         AppleSpeller.m \
130         AppleScript.h \
131         AppleScript.m \
132         AppleScriptProxy.cpp \
133         linkback/LinkBack.h \
134         linkback/LinkBack.m \
135         linkback/LinkBackProxy.h \
136         linkback/LinkBackProxy.m \
137         linkback/LinkBackServer.h \
138         linkback/LinkBackServer.m
139 endif
140
141 ############################## Tests ##################################
142
143 EXTRA_DIST += \
144         tests/test_convert \
145         tests/test_filetools \
146         tests/test_lstrings \
147         tests/test_trivstring \
148         tests/regfiles/convert \
149         tests/regfiles/filetools \
150         tests/regfiles/lstrings \
151         tests/regfiles/trivstring
152
153
154 TESTS = \
155         tests/test_convert \
156         tests/test_filetools \
157         tests/test_lstrings \
158         tests/test_trivstring
159
160 check_PROGRAMS = \
161         check_convert \
162         check_filetools \
163         check_lstrings \
164         check_trivstring
165
166 if INSTALL_MACOSX
167 ADD_FRAMEWORKS = \
168         -framework QtCore -framework AppKit -framework ApplicationServices \
169         -Wl,-rpath,@loader_path/../Frameworks \
170         -Wl,-rpath,@executable_path/../Frameworks \
171         -Wl,-headerpad_max_install_names
172 endif
173
174 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
175 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
176 check_convert_SOURCES = \
177         tests/check_convert.cpp \
178         tests/dummy_functions.cpp \
179         tests/boost.cpp
180
181 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
182 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
183 check_filetools_SOURCES = \
184         tests/check_filetools.cpp \
185         tests/dummy_functions.cpp \
186         tests/boost.cpp
187
188 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
189 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
190 check_lstrings_SOURCES = \
191         tests/check_lstrings.cpp \
192         tests/dummy_functions.cpp \
193         tests/boost.cpp
194
195 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
196 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
197 check_trivstring_SOURCES = \
198         tests/check_trivstring.cpp \
199         tests/dummy_functions.cpp \
200         tests/boost.cpp
201
202 makeregfiles: ${check_PROGRAMS}
203         for all in ${check_PROGRAMS} ; do \
204                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
205         done