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 = \
43 ConsoleApplication.cpp \
44 ConsoleApplication.h \
45 ConsoleApplicationPrivate.h \
85 numpunct_lyx_char_type.h \
103 SystemcallPrivate.h \
121 #liblyxsupport_a_SOURCES += \
122 # AppleSpellChecker.h \
123 # AppleSpellChecker.mm
127 liblyxsupport_a_SOURCES += \
132 AppleScriptProxy.cpp \
133 linkback/LinkBack.h \
134 linkback/LinkBack.m \
135 linkback/LinkBackProxy.h \
136 linkback/LinkBackProxy.m \
137 linkback/LinkBackServer.h \
138 linkback/LinkBackServer.m
141 ############################## Tests ##################################
145 tests/test_filetools \
146 tests/test_lstrings \
147 tests/test_trivstring \
148 tests/regfiles/convert \
149 tests/regfiles/filetools \
150 tests/regfiles/lstrings \
151 tests/regfiles/trivstring
156 tests/test_filetools \
157 tests/test_lstrings \
158 tests/test_trivstring
167 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
170 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
171 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
172 check_convert_SOURCES = \
173 tests/check_convert.cpp \
174 tests/dummy_functions.cpp \
177 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
178 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
179 check_filetools_SOURCES = \
180 tests/check_filetools.cpp \
181 tests/dummy_functions.cpp \
184 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
185 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
186 check_lstrings_SOURCES = \
187 tests/check_lstrings.cpp \
188 tests/dummy_functions.cpp \
191 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
192 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
193 check_trivstring_SOURCES = \
194 tests/check_trivstring.cpp \
195 tests/dummy_functions.cpp \
198 makeregfiles: ${check_PROGRAMS}
199 for all in ${check_PROGRAMS} ; do \
200 ./$$all > ${srcdir}/tests/regfiles/$$all ; \