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