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 \
16 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
18 CLEANFILES = $(MOCEDFILES)
19 BUILT_SOURCES = $(MOCEDFILES)
24 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
27 ##################################################################
29 AM_CPPFLAGS += -I$(srcdir)/.. \
30 $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) \
31 $(QT_CPPFLAGS) $(QT_INCLUDES)
33 liblyxsupport_a_SOURCES = \
39 ConsoleApplication.cpp \
40 ConsoleApplication.h \
41 ConsoleApplicationPrivate.h \
82 numpunct_lyx_char_type.h \
100 SystemcallPrivate.h \
116 if USE_INCLUDED_MYTHES
117 liblyxsupport_a_SOURCES += \
120 mythes/license.readme
124 #liblyxsupport_a_SOURCES += \
125 # AppleSpellChecker.h \
126 # AppleSpellChecker.mm
130 liblyxsupport_a_SOURCES += \
135 AppleScriptProxy.cpp \
136 linkback/LinkBack.h \
137 linkback/LinkBack.m \
138 linkback/LinkBackProxy.h \
139 linkback/LinkBackProxy.m \
140 linkback/LinkBackServer.h \
141 linkback/LinkBackServer.m
144 ############################## Tests ##################################
148 tests/test_filetools \
149 tests/test_lstrings \
150 tests/test_trivstring \
151 tests/regfiles/convert \
152 tests/regfiles/filetools \
153 tests/regfiles/lstrings \
154 tests/regfiles/trivstring
159 tests/test_filetools \
160 tests/test_lstrings \
161 tests/test_trivstring
170 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
173 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
174 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
175 check_convert_SOURCES = \
176 tests/check_convert.cpp \
177 tests/dummy_functions.cpp \
180 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
181 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
182 check_filetools_SOURCES = \
183 tests/check_filetools.cpp \
184 tests/dummy_functions.cpp \
187 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
188 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
189 check_lstrings_SOURCES = \
190 tests/check_lstrings.cpp \
191 tests/dummy_functions.cpp \
194 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
195 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
196 check_trivstring_SOURCES = \
197 tests/check_trivstring.cpp \
198 tests/dummy_functions.cpp \
201 makeregfiles: ${check_PROGRAMS}
202 for all in ${check_PROGRAMS} ; do \
203 ./$$all > ${srcdir}/tests/regfiles/$$all ; \