]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
add generic helper class for calling functions in gui thread
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES += $(BUILT_SOURCES)
4
5 EXTRA_DIST = pch.h \
6         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
7
8 noinst_LIBRARIES = liblyxsupport.a
9
10 BUILT_SOURCES = $(PCH_FILE)
11
12 #########################  Qt stuff  #############################
13 #
14
15 MOCHEADER = SystemcallPrivate.h
16
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
18
19 CLEANFILES += $(MOCEDFILES)
20 BUILT_SOURCES += $(MOCEDFILES)
21
22 moc_%.cpp: %.h
23         $(MOC4) -o $@ $<
24
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
26
27 #
28 ##################################################################
29
30 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
31 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) 
32
33 liblyxsupport_a_SOURCES = \
34         FileMonitor.h \
35         FileMonitor.cpp \
36         RandomAccessList.h \
37         bind.h \
38         convert.cpp \
39         convert.h \
40         copied_ptr.h \
41         debug.cpp \
42         debug.h \
43         docstream.cpp \
44         docstream.h \
45         docstring.cpp \
46         docstring.h \
47         docstring_list.h \
48         environment.h \
49         environment.cpp \
50         ExceptionMessage.h \
51         FileName.cpp \
52         FileName.h \
53         FileNameList.h \
54         filetools.cpp \
55         filetools.h \
56         foreach.h \
57         ForkedCalls.cpp \
58         ForkedCalls.h \
59         functional.h \
60         gettext.cpp \
61         gettext.h \
62         gzstream.cpp \
63         gzstream.h \
64         InGuiThread.h \
65         InGuiThread.cpp \
66         kill.cpp \
67         lassert.h \
68         lassert.cpp \
69         limited_stack.h \
70         lstrings.cpp \
71         lstrings.h \
72         lyxalgo.h \
73         lyxlib.h \
74         lyxtime.cpp \
75         lyxtime.h \
76         Messages.cpp \
77         Messages.h \
78         numpunct_lyx_char_type.h \
79         os.cpp \
80         os.h \
81         Path.cpp \
82         Path.h \
83         Package.cpp \
84         Package.h \
85         ProgressInterface.h \
86         qstring_helpers.cpp \
87         qstring_helpers.h \
88         regex.h \
89         socktools.cpp \
90         socktools.h \
91         strfwd.h \
92         Systemcall.cpp \
93         Systemcall.h \
94         SystemcallPrivate.h \
95         shared_ptr.h \
96         textutils.h \
97         Translator.h \
98         Timeout.cpp \
99         Timeout.h \
100         types.h \
101         userinfo.cpp \
102         userinfo.h \
103         unicode.cpp \
104         unicode.h \
105         weighted_btree.h \
106         mythes/mythes.cxx \
107         mythes/mythes.hxx \
108         mythes/license.readme
109
110 #if INSTALL_MACOSX
111 #liblyxsupport_a_SOURCES += \
112 #       AppleSpellChecker.h \
113 #       AppleSpellChecker.mm
114 #endif
115
116 if INSTALL_MACOSX
117 liblyxsupport_a_SOURCES += \
118         AppleSpeller.h \
119         AppleSpeller.m \
120         linkback/LinkBack.h \
121         linkback/LinkBack.m \
122         linkback/LinkBackProxy.h \
123         linkback/LinkBackProxy.m \
124         linkback/LinkBackServer.h \
125         linkback/LinkBackServer.m
126 endif
127
128 ############################## Tests ##################################
129
130 EXTRA_DIST += \
131         tests/test_convert \
132         tests/test_filetools \
133         tests/test_lstrings \
134         tests/regfiles/convert \
135         tests/regfiles/filetools \
136         tests/regfiles/lstrings
137
138
139 TESTS = \
140         tests/test_convert \
141         tests/test_filetools \
142         tests/test_lstrings
143
144 check_PROGRAMS = \
145         check_convert \
146         check_filetools \
147         check_lstrings
148
149 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
150 check_convert_LDFLAGS = $(QT4_LDFLAGS)
151 check_convert_SOURCES = \
152         tests/check_convert.cpp \
153         tests/boost.cpp
154
155 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
156 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
157 check_filetools_SOURCES = \
158         tests/check_filetools.cpp \
159         tests/boost.cpp
160
161 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
162 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
163 check_lstrings_SOURCES = \
164         tests/check_lstrings.cpp \
165         tests/boost.cpp
166
167 makeregfiles: ${check_PROGRAMS}
168         for all in ${check_PROGRAMS} ; do \
169                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
170         done