summaryrefslogtreecommitdiffstats
path: root/src/modules/editor
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-04 10:14:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-05 21:05:02 +0900
commit7dd6e31b9864a4c294530d9f52dea8e8da987778 (patch)
tree0e7fe09321a00102694d85ad82d498079c09f871 /src/modules/editor
parente440292127a54bffc02b000bd983540fe75bbec9 (diff)
downloadkvirc-7dd6e31b9864a4c294530d9f52dea8e8da987778.tar.gz
kvirc-7dd6e31b9864a4c294530d9f52dea8e8da987778.zip
Include moc files directly from the related source files (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/Makefile.am5
-rw-r--r--src/modules/editor/scripteditor.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/editor/Makefile.am b/src/modules/editor/Makefile.am
index 11a48111..55d96437 100644
--- a/src/modules/editor/Makefile.am
+++ b/src/modules/editor/Makefile.am
@@ -9,12 +9,13 @@ pluglib_LTLIBRARIES = libkvieditor.la
libkvieditor_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS)
-nodist_libkvieditor_la_SOURCES = moc_scripteditor.cpp
libkvieditor_la_SOURCES = libkvieditor.cpp scripteditor.cpp
+
libkvieditor_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la
noinst_HEADERS= scripteditor.h
-moc_%.cpp: %.h
+%.moc: %.h
$(SS_QT_MOC) $< -o $@
+scripteditor.cpp: scripteditor.moc
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp
index 62a49307..185c2115 100644
--- a/src/modules/editor/scripteditor.cpp
+++ b/src/modules/editor/scripteditor.cpp
@@ -1178,3 +1178,5 @@ void KviScriptEditorReplaceDialog::slotNextFind()
{
emit nextFind(m_pFindlineedit->text());
}
+
+#include "scripteditor.moc"