X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsupport%2FMakefile.am;h=ed6af579d18f2204306fce362fcd49db24517652;hb=f16b2cab75752e7b0fbec5520e231b068eb29072;hp=cb6c5b9ec24ef8cb922d1cfdf7080c051fbf5a47;hpb=b0fbc29aa34345e1ffa54f6fd9193d7c42e577f2;p=lyx.git diff --git a/src/support/Makefile.am b/src/support/Makefile.am index cb6c5b9ec2..ed6af579d1 100644 --- a/src/support/Makefile.am +++ b/src/support/Makefile.am @@ -1,102 +1,200 @@ include $(top_srcdir)/config/common.am -noinst_LTLIBRARIES = libsupport.la +EXTRA_DIST = os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h \ + CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake -CLEANFILES = path_defines.C +noinst_LIBRARIES = liblyxsupport.a -INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES) -EXTRA_DIST = path_defines.C.in os_unix.C os_win32.C os_os2.C +######################### Qt stuff ############################# +# -if USE_COMPRESSION -COMPRESSION = gzstream.C gzstream.h -endif +MOCHEADER = \ + ConsoleApplicationPrivate.h \ + SystemcallPrivate.h + +MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp) + +CLEANFILES = $(MOCEDFILES) +BUILT_SOURCES = $(MOCEDFILES) -BUILT_SOURCES = path_defines.C +moc_%.cpp: %.h + $(QT_MOC) -o $@ $< -AM_CXXFLAGS = $(PCH_FLAGS) +liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES) -libsupport_la_SOURCES = \ - $(PCH_FILE) FileInfo.C \ - FileInfo.h \ +# +################################################################## + +AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) $(QT_CPPFLAGS) $(QT_INCLUDES) + +liblyxsupport_a_SOURCES = \ FileMonitor.h \ - FileMonitor.C \ - abort.C \ - atoi.C \ - chdir.C \ - copy.C \ + FileMonitor.cpp \ + RandomAccessList.h \ + bind.h \ + ConsoleApplication.cpp \ + ConsoleApplication.h \ + ConsoleApplicationPrivate.h \ + convert.cpp \ + convert.h \ copied_ptr.h \ - cow_ptr.h \ - debugstream.h \ - filename.C \ - filename.h \ - filetools.C \ + debug.cpp \ + debug.h \ + docstream.cpp \ + docstream.h \ + docstring.cpp \ + docstring.h \ + docstring_list.h \ + environment.h \ + environment.cpp \ + ExceptionMessage.h \ + FileName.cpp \ + FileName.h \ + FileNameList.h \ + filetools.cpp \ filetools.h \ - forkedcall.C \ - forkedcall.h \ - forkedcallqueue.C \ - forkedcallqueue.h \ - forkedcontr.C \ - forkedcontr.h \ - getcwd.C \ - globbing.C \ - globbing.h \ - $(COMPRESSION) kill.C \ + foreach.h \ + ForkedCalls.cpp \ + ForkedCalls.h \ + functional.h \ + gettext.cpp \ + gettext.h \ + gzstream.cpp \ + gzstream.h \ + kill.cpp \ + lassert.h \ + lassert.cpp \ limited_stack.h \ - lstrings.C \ + lstrings.cpp \ lstrings.h \ lyxalgo.h \ - lyxfunctional.h \ lyxlib.h \ - lyxmanip.h \ - lyxtime.C \ + lyxtime.cpp \ lyxtime.h \ - lyxsum.C \ - mkdir.C \ - os.C \ + mutex.h \ + mutex.cpp \ + Messages.cpp \ + Messages.h \ + numpunct_lyx_char_type.h \ + os.cpp \ os.h \ - os2_defines.h \ - os2_errortable.h \ - path.C \ - path.h \ - path_defines.C \ - path_defines.h \ - putenv.C \ - rename.C \ - rmdir.C \ - snprintf.h \ - snprintf.c \ - socktools.C \ + PathChanger.cpp \ + PathChanger.h \ + Package.cpp \ + Package.h \ + ProgressInterface.h \ + pmprof.h \ + qstring_helpers.cpp \ + qstring_helpers.h \ + regex.h \ + socktools.cpp \ socktools.h \ - std_istream.h \ - std_ostream.h \ - systemcall.C \ - systemcall.h \ - tempname.C \ + strfwd.h \ + Systemcall.cpp \ + Systemcall.h \ + SystemcallPrivate.h \ + shared_ptr.h \ + TempFile.cpp \ + TempFile.h \ textutils.h \ - tostr.h \ - tostr.C \ - translator.h \ + Translator.h \ + Timeout.cpp \ + Timeout.h \ + trivstring.cpp \ + trivstring.h \ types.h \ - userinfo.C \ + userinfo.cpp \ userinfo.h \ - unlink.C - - -path_defines.C: build_path_defines - -build_path_defines: path_defines.C.in - @rm -f tmp_path_defines ;\ - ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\ - ABS_BUILDDIR=`cd ../.. && pwd` ;\ - sed "s,%LYX_DIR%,$(pkgdatadir), ;\ - s,%LOCALEDIR%,$(datadir)/locale, ;\ - s,%BUILDDIR%,$${ABS_BUILDDIR}, ;\ - s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \ - $(srcdir)/path_defines.C.in > tmp_path_defines ;\ - if cmp -s tmp_path_defines path_defines.C ; then \ - rm -f tmp_path_defines ;\ - else \ - rm -f path_defines.C ;\ - mv tmp_path_defines path_defines.C ;\ - fi + unicode.cpp \ + unicode.h \ + weighted_btree.h +if USE_INCLUDED_MYTHES +liblyxsupport_a_SOURCES += \ + mythes/mythes.cxx \ + mythes/mythes.hxx \ + mythes/license.readme +endif + +#if INSTALL_MACOSX +#liblyxsupport_a_SOURCES += \ +# AppleSpellChecker.h \ +# AppleSpellChecker.mm +#endif + +if INSTALL_MACOSX +liblyxsupport_a_SOURCES += \ + AppleSpeller.h \ + AppleSpeller.m \ + AppleScript.h \ + AppleScript.m \ + AppleScriptProxy.cpp \ + linkback/LinkBack.h \ + linkback/LinkBack.m \ + linkback/LinkBackProxy.h \ + linkback/LinkBackProxy.m \ + linkback/LinkBackServer.h \ + linkback/LinkBackServer.m +endif + +############################## Tests ################################## + +EXTRA_DIST += \ + tests/test_convert \ + tests/test_filetools \ + tests/test_lstrings \ + tests/test_trivstring \ + tests/regfiles/convert \ + tests/regfiles/filetools \ + tests/regfiles/lstrings \ + tests/regfiles/trivstring + + +TESTS = \ + tests/test_convert \ + tests/test_filetools \ + tests/test_lstrings \ + tests/test_trivstring + +check_PROGRAMS = \ + check_convert \ + check_filetools \ + check_lstrings \ + check_trivstring + +if INSTALL_MACOSX +ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices +endif + +check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@ +check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS) +check_convert_SOURCES = \ + tests/check_convert.cpp \ + tests/dummy_functions.cpp \ + tests/boost.cpp + +check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@ +check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS) +check_filetools_SOURCES = \ + tests/check_filetools.cpp \ + tests/dummy_functions.cpp \ + tests/boost.cpp + +check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@ +check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS) +check_lstrings_SOURCES = \ + tests/check_lstrings.cpp \ + tests/dummy_functions.cpp \ + tests/boost.cpp + +check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@ +check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS) +check_trivstring_SOURCES = \ + tests/check_trivstring.cpp \ + tests/dummy_functions.cpp \ + tests/boost.cpp + +makeregfiles: ${check_PROGRAMS} + for all in ${check_PROGRAMS} ; do \ + ./$$all > ${srcdir}/tests/regfiles/$$all ; \ + done