1 include $(top_srcdir)/config/common.am
3 EXTRA_DIST = os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h \
4 CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake
6 noinst_LIBRARIES = liblyxsupport.a
9 ######################### Qt stuff #############################
13 ConsoleApplicationPrivate.h \
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
19 CLEANFILES = $(MOCEDFILES)
20 BUILT_SOURCES = $(MOCEDFILES)
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
28 ##################################################################
30 AM_CPPFLAGS += -I$(srcdir)/.. \
31 $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) \
32 $(QT_CPPFLAGS) $(QT_INCLUDES)
34 liblyxsupport_a_SOURCES = \
41 ConsoleApplication.cpp \
42 ConsoleApplication.h \
43 ConsoleApplicationPrivate.h \
83 numpunct_lyx_char_type.h \
101 SystemcallPrivate.h \
119 #liblyxsupport_a_SOURCES += \
120 # AppleSpellChecker.h \
121 # AppleSpellChecker.mm
125 liblyxsupport_a_SOURCES += \
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
139 ############################## Tests ##################################
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
154 tests/test_filetools \
155 tests/test_lstrings \
156 tests/test_trivstring
165 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
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 \
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 \
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 \
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 \
196 makeregfiles: ${check_PROGRAMS}
197 for all in ${check_PROGRAMS} ; do \
198 ./$$all > ${srcdir}/tests/regfiles/$$all ; \