From 2bda8f7717adf28da4af0d34fb82f63d2868c31d Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kregexpeditor/Makefile.am | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 kregexpeditor/Makefile.am (limited to 'kregexpeditor/Makefile.am') diff --git a/kregexpeditor/Makefile.am b/kregexpeditor/Makefile.am new file mode 100644 index 0000000..6f8a4e4 --- /dev/null +++ b/kregexpeditor/Makefile.am @@ -0,0 +1,65 @@ +SUBDIRS = KWidgetStreamer KMultiFormListBox picts predefined + +KDE_ICON=AUTO + +AM_CPPFLAGS = -DQT_NO_CAST_ASCII -I$(srcdir)/KWidgetStreamer -I$(srcdir)/KMultiFormListBox $(all_includes) + +# (useless) +noinst_HEADERS = \ + kregexpeditorgui.h editorwindow.h regexpwidget.h drag.h limitedcharlineedit.h regexp.h selectablelineedit.h \ + dragaccepter.h repeatwidget.h concwidget.h textwidget.h characterswidget.h zerowidgets.h multicontainerwidget.h \ + scrollededitorwindow.h compoundwidget.h singlecontainerwidget.h widgetfactory.h dcbutton.h charselector.h \ + lookaheadwidget.h textregexp.h textrangeregexp.h repeatregexp.h lookaheadregexp.h concregexp.h altnregexp.h \ + positionregexp.h dotregexp.h infopage.h kregexpeditorprivate.h compoundregexp.h pair.h triple.h myfontmetrics.h \ + regexpbuttons.h userdefinedregexps.h auxbuttons.h verifier.h verifybuttons.h errormap.h qtregexphighlighter.h \ + regexpconverter.h qtregexpconverter.h emacsregexpconverter.h regexphighlighter.h util.h + +# The library contains all the code that is shared between the module and the app +lib_LTLIBRARIES = libkregexpeditorcommon.la +libkregexpeditorcommon_la_SOURCES = \ + kregexpeditorgui.cpp editorwindow.cpp regexpwidget.cpp drag.cpp concwidget.cpp zerowidgets.cpp dragaccepter.cpp \ + repeatwidget.cpp characterswidget.cpp altnwidget.cpp limitedcharlineedit.cpp textregexp.cpp textrangeregexp.cpp \ + concregexp.cpp altnregexp.cpp positionregexp.cpp dotregexp.cpp repeatregexp.cpp textwidget.cpp \ + selectablelineedit.cpp multicontainerwidget.cpp scrollededitorwindow.cpp compoundwidget.cpp \ + singlecontainerwidget.cpp widgetfactory.cpp dcbutton.cpp gen_qregexplexer.cpp gen_qregexpparser.cc \ + charselector.cpp lookaheadregexp.cpp lookaheadwidget.cpp regexp.cpp infopage.cpp kregexpeditorprivate.cpp \ + compoundregexp.cpp auxbuttons.cpp myfontmetrics.cpp regexpbuttons.cpp userdefinedregexps.cpp verifier.cpp \ + verifybuttons.cpp errormap.cpp qtregexphighlighter.cpp regexpconverter.cpp qtregexpconverter.cpp \ + emacsregexpconverter.cpp regexphighlighter.cpp util.cpp + +libkregexpeditorcommon_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -no-undefined +libkregexpeditorcommon_la_LIBADD = KMultiFormListBox/libkmultiformlistbox.la \ + KWidgetStreamer/libkwidgetstreamer.la $(LIB_KIO) + +METASOURCES = AUTO + +service_DATA = kregexpeditorgui.desktop +servicedir = $(kde_servicesdir) + +#### The dynamically-loadable module (its interface is defined in kdelibs) +kde_module_LTLIBRARIES = libkregexpeditorgui.la +libkregexpeditorgui_la_SOURCES = kregexpeditorfactory.cpp +libkregexpeditorgui_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module +libkregexpeditorgui_la_LIBADD = libkregexpeditorcommon.la + +#### Binary + +bin_PROGRAMS = kregexpeditor +kregexpeditor_SOURCES = main.cpp +kregexpeditor_LDFLAGS = $(all_libraries) $(KDE_RPATH) +kregexpeditor_LDADD = libkregexpeditorcommon.la $(LIB_KIO) +kregexpeditor_INCLUDES = $(all_includes) + +xdg_apps_DATA = kregexpeditor.desktop + + +##### Build rules for the parser + +.PHONY: parser +parser: + cd $(srcdir) && flex -Pqregexp -ogen_qregexplexer.cpp qregexpparser.l + cd $(srcdir) && bison -d -p qregexp -o gen_qregexpparser.cc qregexpparser.y + +messages: + perl extractrc-from-regexp `find . -name "*.regexp"` > predefined-regexps.cpp + $(XGETTEXT) *.cpp *.h */*.cpp */*.h -o $(podir)/kregexpeditor.pot -- cgit v1.2.1