summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2021-10-07 15:17:57 +0200
committergregory guy <[email protected]>2021-11-30 11:04:08 +0100
commita69b55c674b0528c00598bea54b7a661f4e49f27 (patch)
tree93ab3c9c6a8c3be0d8e0da81391904a07f515a57 /qt
parent0896465ce705beabf8562afbabd49f8b92bf3412 (diff)
downloadtqscintilla-a69b55c674b0528c00598bea54b7a661f4e49f27.tar.gz
tqscintilla-a69b55c674b0528c00598bea54b7a661f4e49f27.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'qt')
-rw-r--r--qt/CMakeLists.txt88
-rw-r--r--qt/SciListBox.cpp3
-rw-r--r--qt/qextscintilla.cpp2
-rw-r--r--qt/qextscintillabase.cpp2
-rw-r--r--qt/qextscintillalexer.cpp2
-rw-r--r--qt/qextscintillalexerbash.cpp2
-rw-r--r--qt/qextscintillalexerbatch.cpp2
-rw-r--r--qt/qextscintillalexercpp.cpp2
-rw-r--r--qt/qextscintillalexercsharp.cpp2
-rw-r--r--qt/qextscintillalexercss.cpp2
-rw-r--r--qt/qextscintillalexerdiff.cpp2
-rw-r--r--qt/qextscintillalexerhtml.cpp2
-rw-r--r--qt/qextscintillalexeridl.cpp2
-rw-r--r--qt/qextscintillalexerjava.cpp2
-rw-r--r--qt/qextscintillalexerjavascript.cpp2
-rw-r--r--qt/qextscintillalexerlua.cpp2
-rw-r--r--qt/qextscintillalexermakefile.cpp2
-rw-r--r--qt/qextscintillalexerperl.cpp2
-rw-r--r--qt/qextscintillalexerpov.cpp2
-rw-r--r--qt/qextscintillalexerproperties.cpp2
-rw-r--r--qt/qextscintillalexerpython.cpp2
-rw-r--r--qt/qextscintillalexerruby.cpp2
-rw-r--r--qt/qextscintillalexersql.cpp2
-rw-r--r--qt/qextscintillalexertex.cpp2
-rw-r--r--qt/qextscintillamacro.cpp2
25 files changed, 135 insertions, 2 deletions
diff --git a/qt/CMakeLists.txt b/qt/CMakeLists.txt
new file mode 100644
index 0000000..fb30034
--- /dev/null
+++ b/qt/CMakeLists.txt
@@ -0,0 +1,88 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/include
+ ${CMAKE_SOURCE_DIR}/src
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions( -DQT )
+
+##### qscintilla (shared)
+
+tde_add_library( qscintilla SHARED AUTOMOC
+
+ SOURCES
+ qextscintilla.cpp
+ qextscintillaapis.cpp
+ qextscintillabase.cpp
+ qextscintillacommand.cpp
+ qextscintillacommandset.cpp
+ qextscintilladocument.cpp
+ qextscintillalexer.cpp
+ qextscintillalexerbash.cpp
+ qextscintillalexerbatch.cpp
+ qextscintillalexercpp.cpp
+ qextscintillalexercsharp.cpp
+ qextscintillalexercss.cpp
+ qextscintillalexerdiff.cpp
+ qextscintillalexerhtml.cpp
+ qextscintillalexeridl.cpp
+ qextscintillalexerjava.cpp
+ qextscintillalexerjavascript.cpp
+ qextscintillalexerlua.cpp
+ qextscintillalexermakefile.cpp
+ qextscintillalexerperl.cpp
+ qextscintillalexerpov.cpp
+ qextscintillalexerproperties.cpp
+ qextscintillalexerpython.cpp
+ qextscintillalexerruby.cpp
+ qextscintillalexersql.cpp
+ qextscintillalexertex.cpp
+ qextscintillamacro.cpp
+ qextscintillaprinter.cpp
+ SciListBox.cpp
+ PlatQt.cpp
+ ScintillaQt.cpp
+ LINK
+ ${TQT_LIBRARIES}
+ src-static
+
+ VERSION 7.0.1
+
+ DESTINATION ${TQT_LIBDIR}
+)
+
+
+###### other data
+# translations
+
+file( GLOB _translations RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} qscintilla_*.qm )
+
+install(
+ FILES ${_translations}
+ DESTINATION ${TQT_TRANSLATIONS_DIR}
+)
+
+
+# headers
+
+file( GLOB _includes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} qextscintilla*.h )
+
+install(
+ FILES ${_includes}
+ DESTINATION ${TQT_INCLUDES_DIR}
+)
+
+file( GLOB _privates ${CMAKE_SOURCE_DIR}/include/*.h )
+
+install(
+ FILES ${_privates}
+ DESTINATION ${TQT_INCLUDES_DIR}/private
+)
+
diff --git a/qt/SciListBox.cpp b/qt/SciListBox.cpp
index f873d7c..2d504e5 100644
--- a/qt/SciListBox.cpp
+++ b/qt/SciListBox.cpp
@@ -20,7 +20,6 @@
// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
#include <stdlib.h>
#include <string.h>
@@ -326,3 +325,5 @@ void SciListBox::handleDoubleClick(TQListBoxItem *)
if (lbx && lbx -> cb_action)
lbx -> cb_action(lbx -> cb_data);
}
+
+#include "SciListBox.moc"
diff --git a/qt/qextscintilla.cpp b/qt/qextscintilla.cpp
index 308a8c2..615fc00 100644
--- a/qt/qextscintilla.cpp
+++ b/qt/qextscintilla.cpp
@@ -3029,3 +3029,5 @@ void QextScintilla::handleUserListSelection(const char *text, int id)
{
emit userListActivated(id, TQString(text));
}
+
+#include "qextscintilla.moc"
diff --git a/qt/qextscintillabase.cpp b/qt/qextscintillabase.cpp
index 5aaa7b1..4e033d6 100644
--- a/qt/qextscintillabase.cpp
+++ b/qt/qextscintillabase.cpp
@@ -19,7 +19,7 @@
// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
+#include "qextscintillabase.moc"
#include <tqapplication.h>
#include <tqclipboard.h>
#include <tqscrollbar.h>
diff --git a/qt/qextscintillalexer.cpp b/qt/qextscintillalexer.cpp
index 20a1c22..3623c1a 100644
--- a/qt/qextscintillalexer.cpp
+++ b/qt/qextscintillalexer.cpp
@@ -442,3 +442,5 @@ void QextScintillaLexer::setPaper(const TQColor &c,int style)
emit paperChanged(c,QextScintillaBase::STYLE_DEFAULT);
}
}
+
+#include "qextscintillalexer.moc"
diff --git a/qt/qextscintillalexerbash.cpp b/qt/qextscintillalexerbash.cpp
index ec798a5..c646340 100644
--- a/qt/qextscintillalexerbash.cpp
+++ b/qt/qextscintillalexerbash.cpp
@@ -367,3 +367,5 @@ void QextScintillaLexerBash::setCompactProp()
{
emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
+
+#include "qextscintillalexerbash.moc"
diff --git a/qt/qextscintillalexerbatch.cpp b/qt/qextscintillalexerbatch.cpp
index c1c51a3..bc4e9e9 100644
--- a/qt/qextscintillalexerbatch.cpp
+++ b/qt/qextscintillalexerbatch.cpp
@@ -196,3 +196,5 @@ TQColor QextScintillaLexerBatch::paper(int style) const
return QextScintillaLexer::paper(style);
}
+
+#include "qextscintillalexerbatch.moc"
diff --git a/qt/qextscintillalexercpp.cpp b/qt/qextscintillalexercpp.cpp
index 1343dd8..9be21d9 100644
--- a/qt/qextscintillalexercpp.cpp
+++ b/qt/qextscintillalexercpp.cpp
@@ -513,3 +513,5 @@ void QextScintillaLexerCPP::setStylePreprocProp()
{
emit propertyChanged("style.within.preprocessor",(style_preproc ? "1" : "0"));
}
+
+#include "qextscintillalexercpp.moc"
diff --git a/qt/qextscintillalexercsharp.cpp b/qt/qextscintillalexercsharp.cpp
index 03e5ad1..fa68e45 100644
--- a/qt/qextscintillalexercsharp.cpp
+++ b/qt/qextscintillalexercsharp.cpp
@@ -116,3 +116,5 @@ TQColor QextScintillaLexerCSharp::paper(int style) const
return QextScintillaLexer::paper(style);
}
+
+#include "qextscintillalexercsharp.moc"
diff --git a/qt/qextscintillalexercss.cpp b/qt/qextscintillalexercss.cpp
index aad84b1..fb32de4 100644
--- a/qt/qextscintillalexercss.cpp
+++ b/qt/qextscintillalexercss.cpp
@@ -374,3 +374,5 @@ void QextScintillaLexerCSS::setCompactProp()
{
emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
+
+#include "qextscintillalexercss.moc"
diff --git a/qt/qextscintillalexerdiff.cpp b/qt/qextscintillalexerdiff.cpp
index 0f901bb..ba4c8d5 100644
--- a/qt/qextscintillalexerdiff.cpp
+++ b/qt/qextscintillalexerdiff.cpp
@@ -121,3 +121,5 @@ TQString QextScintillaLexerDiff::description(int style) const
return TQString();
}
+
+#include "qextscintillalexerdiff.moc"
diff --git a/qt/qextscintillalexerhtml.cpp b/qt/qextscintillalexerhtml.cpp
index e84ca7a..f29bfbf 100644
--- a/qt/qextscintillalexerhtml.cpp
+++ b/qt/qextscintillalexerhtml.cpp
@@ -1130,3 +1130,5 @@ void QextScintillaLexerHTML::setPreprocProp()
{
emit propertyChanged("fold.html.preprocessor",(fold_preproc ? "1" : "0"));
}
+
+#include "qextscintillalexerhtml.moc"
diff --git a/qt/qextscintillalexeridl.cpp b/qt/qextscintillalexeridl.cpp
index 51c8eb7..91577dd 100644
--- a/qt/qextscintillalexeridl.cpp
+++ b/qt/qextscintillalexeridl.cpp
@@ -100,3 +100,5 @@ TQString QextScintillaLexerIDL::description(int style) const
return QextScintillaLexerCPP::description(style);
}
+
+#include "qextscintillalexeridl.moc"
diff --git a/qt/qextscintillalexerjava.cpp b/qt/qextscintillalexerjava.cpp
index 3b08246..e8fcef4 100644
--- a/qt/qextscintillalexerjava.cpp
+++ b/qt/qextscintillalexerjava.cpp
@@ -57,3 +57,5 @@ const char *QextScintillaLexerJava::keywords(int set) const
"super switch synchronized this throw throws transient try var "
"void volatile while";
}
+
+#include "qextscintillalexerjava.moc"
diff --git a/qt/qextscintillalexerjavascript.cpp b/qt/qextscintillalexerjavascript.cpp
index 4d67dfb..f2cfe46 100644
--- a/qt/qextscintillalexerjavascript.cpp
+++ b/qt/qextscintillalexerjavascript.cpp
@@ -118,3 +118,5 @@ TQColor QextScintillaLexerJavaScript::paper(int style) const
return QextScintillaLexer::paper(style);
}
+
+#include "qextscintillalexerjavascript.moc"
diff --git a/qt/qextscintillalexerlua.cpp b/qt/qextscintillalexerlua.cpp
index eedc21e..958e827 100644
--- a/qt/qextscintillalexerlua.cpp
+++ b/qt/qextscintillalexerlua.cpp
@@ -344,3 +344,5 @@ void QextScintillaLexerLua::setCompactProp()
{
emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
+
+#include "qextscintillalexerlua.moc"
diff --git a/qt/qextscintillalexermakefile.cpp b/qt/qextscintillalexermakefile.cpp
index aad1a39..5397370 100644
--- a/qt/qextscintillalexermakefile.cpp
+++ b/qt/qextscintillalexermakefile.cpp
@@ -154,3 +154,5 @@ TQColor QextScintillaLexerMakefile::paper(int style) const
return QextScintillaLexer::paper(style);
}
+
+#include "qextscintillalexermakefile.moc"
diff --git a/qt/qextscintillalexerperl.cpp b/qt/qextscintillalexerperl.cpp
index 6c4dcd1..04df454 100644
--- a/qt/qextscintillalexerperl.cpp
+++ b/qt/qextscintillalexerperl.cpp
@@ -480,3 +480,5 @@ void QextScintillaLexerPerl::setCompactProp()
{
emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
+
+#include "qextscintillalexerperl.moc"
diff --git a/qt/qextscintillalexerpov.cpp b/qt/qextscintillalexerpov.cpp
index 5f7cdee..a4d6ae3 100644
--- a/qt/qextscintillalexerpov.cpp
+++ b/qt/qextscintillalexerpov.cpp
@@ -486,3 +486,5 @@ void QextScintillaLexerPOV::setDirectiveProp()
{
emit propertyChanged("fold.directive",(fold_directives ? "1" : "0"));
}
+
+#include "qextscintillalexerpov.moc"
diff --git a/qt/qextscintillalexerproperties.cpp b/qt/qextscintillalexerproperties.cpp
index 137f5e1..219b767 100644
--- a/qt/qextscintillalexerproperties.cpp
+++ b/qt/qextscintillalexerproperties.cpp
@@ -202,3 +202,5 @@ void QextScintillaLexerProperties::setCompactProp()
{
emit propertyChanged("fold.compact",(fold_compact ? "1" : "0"));
}
+
+#include "qextscintillalexerproperties.moc"
diff --git a/qt/qextscintillalexerpython.cpp b/qt/qextscintillalexerpython.cpp
index c644b68..84e31b1 100644
--- a/qt/qextscintillalexerpython.cpp
+++ b/qt/qextscintillalexerpython.cpp
@@ -405,3 +405,5 @@ void QextScintillaLexerPython::setTabWhingeProp()
{
emit propertyChanged("tab.timmy.whinge.level",TQString::number(indent_warn));
}
+
+#include "qextscintillalexerpython.moc"
diff --git a/qt/qextscintillalexerruby.cpp b/qt/qextscintillalexerruby.cpp
index 7972d50..132b93f 100644
--- a/qt/qextscintillalexerruby.cpp
+++ b/qt/qextscintillalexerruby.cpp
@@ -378,3 +378,5 @@ TQColor QextScintillaLexerRuby::paper(int style) const
return QextScintillaLexer::paper(style);
}
+
+#include "qextscintillalexerruby.moc"
diff --git a/qt/qextscintillalexersql.cpp b/qt/qextscintillalexersql.cpp
index b934cda..a6a468a 100644
--- a/qt/qextscintillalexersql.cpp
+++ b/qt/qextscintillalexersql.cpp
@@ -450,3 +450,5 @@ void QextScintillaLexerSQL::setBackslashEscapesProp()
{
emit propertyChanged("sql.backslash.escapes",(backslash_escapes ? "1" : "0"));
}
+
+#include "qextscintillalexersql.moc"
diff --git a/qt/qextscintillalexertex.cpp b/qt/qextscintillalexertex.cpp
index 4502400..5729d43 100644
--- a/qt/qextscintillalexertex.cpp
+++ b/qt/qextscintillalexertex.cpp
@@ -204,3 +204,5 @@ TQString QextScintillaLexerTeX::description(int style) const
return TQString();
}
+
+#include "qextscintillalexertex.moc"
diff --git a/qt/qextscintillamacro.cpp b/qt/qextscintillamacro.cpp
index 767717a..5cbc7f0 100644
--- a/qt/qextscintillamacro.cpp
+++ b/qt/qextscintillamacro.cpp
@@ -327,3 +327,5 @@ static int fromHex(unsigned char ch)
return -1;
}
+
+#include "qextscintillamacro.moc"