]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Add acmart template
[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         lyxtime.cpp \
78         lyxtime.h \
79         mutex.h \
80         mutex.cpp \
81         Messages.cpp \
82         Messages.h \
83         numpunct_lyx_char_type.h \
84         os.cpp \
85         os.h \
86         PathChanger.cpp \
87         PathChanger.h \
88         Package.cpp \
89         Package.h \
90         ProgressInterface.h \
91         pmprof.h \
92         qstring_helpers.cpp \
93         qstring_helpers.h \
94         regex.h \
95         RefChanger.h \
96         socktools.cpp \
97         socktools.h \
98         strfwd.h \
99         Systemcall.cpp \
100         Systemcall.h \
101         SystemcallPrivate.h \
102         TempFile.cpp \
103         TempFile.h \
104         textutils.h \
105         Translator.h \
106         Timeout.cpp \
107         Timeout.h \
108         trivstring.cpp \
109         trivstring.h \
110         types.h \
111         unique_ptr.h \
112         userinfo.cpp \
113         userinfo.h \
114         unicode.cpp \
115         unicode.h \
116         weighted_btree.h
117
118 #if INSTALL_MACOSX
119 #liblyxsupport_a_SOURCES += \
120 #       AppleSpellChecker.h \
121 #       AppleSpellChecker.mm
122 #endif
123
124 if INSTALL_MACOSX
125 liblyxsupport_a_SOURCES += \
126         AppleSpeller.h \
127         AppleSpeller.m \
128         AppleScript.h \
129         AppleScript.m \
130         AppleScriptProxy.cpp \
131         linkback/LinkBack.h \
132         linkback/LinkBack.m \
133         linkback/LinkBackProxy.h \
134         linkback/LinkBackProxy.m \
135         linkback/LinkBackServer.h \
136         linkback/LinkBackServer.m
137 endif
138
139 ############################## Tests ##################################
140
141 EXTRA_DIST += \
142         tests/test_convert \
143         tests/test_filetools \
144         tests/test_lstrings \
145         tests/test_trivstring \
146         tests/regfiles/convert \
147         tests/regfiles/filetools \
148         tests/regfiles/lstrings \
149         tests/regfiles/trivstring
150
151
152 TESTS = \
153         tests/test_convert \
154         tests/test_filetools \
155         tests/test_lstrings \
156         tests/test_trivstring
157
158 check_PROGRAMS = \
159         check_convert \
160         check_filetools \
161         check_lstrings \
162         check_trivstring
163
164 if INSTALL_MACOSX
165 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
166 endif
167
168 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
169 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
170 check_convert_SOURCES = \
171         tests/check_convert.cpp \
172         tests/dummy_functions.cpp \
173         tests/boost.cpp
174
175 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
176 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
177 check_filetools_SOURCES = \
178         tests/check_filetools.cpp \
179         tests/dummy_functions.cpp \
180         tests/boost.cpp
181
182 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
183 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
184 check_lstrings_SOURCES = \
185         tests/check_lstrings.cpp \
186         tests/dummy_functions.cpp \
187         tests/boost.cpp
188
189 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
190 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
191 check_trivstring_SOURCES = \
192         tests/check_trivstring.cpp \
193         tests/dummy_functions.cpp \
194         tests/boost.cpp
195
196 makeregfiles: ${check_PROGRAMS}
197         for all in ${check_PROGRAMS} ; do \
198                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
199         done