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