]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Let paragraph::requestSpellcheck() consider contained insets
[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         $(NOD_INCLUDES) $(QT_CPPFLAGS) $(QT_INCLUDES)
33
34 liblyxsupport_a_SOURCES = \
35         FileMonitor.h \
36         FileMonitor.cpp \
37         RandomAccessList.h \
38         any.h \
39         bind.h \
40         Cache.h \
41         Changer.h \
42         checksum.cpp \
43         checksum.h \
44         ConsoleApplication.cpp \
45         ConsoleApplication.h \
46         ConsoleApplicationPrivate.h \
47         convert.cpp \
48         convert.h \
49         copied_ptr.h \
50         counter_reps.cpp \
51         counter_reps.h \
52         debug.cpp \
53         debug.h \
54         docstream.cpp \
55         docstream.h \
56         docstring.cpp \
57         docstring.h \
58         docstring_list.h \
59         environment.h \
60         environment.cpp \
61         ExceptionMessage.h \
62         FileName.cpp \
63         FileName.h \
64         FileNameList.h \
65         filetools.cpp \
66         filetools.h \
67         ForkedCalls.cpp \
68         ForkedCalls.h \
69         functional.h \
70         gettext.cpp \
71         gettext.h \
72         gzstream.cpp \
73         gzstream.h \
74         kill.cpp \
75         lassert.h \
76         lassert.cpp \
77         Length.cpp \
78         Length.h \
79         lengthcommon.cpp \
80         limited_stack.h \
81         lstrings.cpp \
82         lstrings.h \
83         lyxalgo.h \
84         lyxlib.h \
85         lyxmagic.h \
86         lyxtime.cpp \
87         lyxtime.h \
88         mutex.h \
89         mutex.cpp \
90         Messages.cpp \
91         Messages.h \
92         numpunct_lyx_char_type.h \
93         os.cpp \
94         os.h \
95         PathChanger.cpp \
96         PathChanger.h \
97         Package.cpp \
98         Package.h \
99         ProgressInterface.h \
100         pmprof.h \
101         qstring_helpers.cpp \
102         qstring_helpers.h \
103         signals.h \
104         socktools.cpp \
105         socktools.h \
106         strfwd.h \
107         Systemcall.cpp \
108         Systemcall.h \
109         SystemcallPrivate.h \
110         TempFile.cpp \
111         TempFile.h \
112         textutils.h \
113         Translator.h \
114         Timeout.cpp \
115         Timeout.h \
116         trivstring.cpp \
117         trivstring.h \
118         types.h \
119         unique_ptr.h \
120         userinfo.cpp \
121         userinfo.h \
122         unicode.cpp \
123         unicode.h \
124         weighted_btree.h
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         AppleSupport.h \
134         AppleSupport.m \
135         linkback/LinkBack.h \
136         linkback/LinkBack.m \
137         linkback/LinkBackProxy.h \
138         linkback/LinkBackProxy.m \
139         linkback/LinkBackServer.h \
140         linkback/LinkBackServer.m
141 endif
142
143 ############################## Tests ##################################
144
145 EXTRA_DIST += \
146         tests/test_convert \
147         tests/test_filetools \
148         tests/test_lstrings \
149         tests/test_trivstring \
150         tests/regfiles/convert \
151         tests/regfiles/filetools \
152         tests/regfiles/lstrings \
153         tests/regfiles/trivstring
154
155
156 TESTS = \
157         tests/test_convert \
158         tests/test_filetools \
159         tests/test_lstrings \
160         tests/test_trivstring
161
162 check_PROGRAMS = \
163         check_convert \
164         check_filetools \
165         check_lstrings \
166         check_trivstring
167
168 if INSTALL_MACOSX
169 ADD_FRAMEWORKS = \
170         -framework QtCore -framework AppKit -framework ApplicationServices \
171         -Wl,-rpath,@loader_path/../Frameworks \
172         -Wl,-rpath,@executable_path/../Frameworks \
173         -Wl,-headerpad_max_install_names
174 endif
175
176 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
177 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
178 check_convert_SOURCES = \
179         tests/check_convert.cpp \
180         tests/dummy_functions.cpp \
181         tests/boost.cpp
182
183 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
184 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
185 check_filetools_SOURCES = \
186         tests/check_filetools.cpp \
187         tests/dummy_functions.cpp \
188         tests/boost.cpp
189
190 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
191 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
192 check_lstrings_SOURCES = \
193         tests/check_lstrings.cpp \
194         tests/dummy_functions.cpp \
195         tests/boost.cpp
196
197 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
198 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
199 check_trivstring_SOURCES = \
200         tests/check_trivstring.cpp \
201         tests/dummy_functions.cpp \
202         tests/boost.cpp
203
204 makeregfiles: ${check_PROGRAMS}
205         for all in ${check_PROGRAMS} ; do \
206                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
207         done