summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/libxsldbg
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-06-28 15:14:51 +0200
committergregory guy <gregory-tde@laposte.net>2021-03-11 15:04:14 +0100
commit4c43d1fbb66a296958ed1d0dbddf3f8ac4466130 (patch)
treee532b01e8168b2f849f8aaa3266a58b088705726 /kxsldbg/kxsldbgpart/libxsldbg
parent10d21d001e92e653cec6b6d1c05983abd00a1195 (diff)
downloadtdewebdev-4c43d1fbb66a296958ed1d0dbddf3f8ac4466130.tar.gz
tdewebdev-4c43d1fbb66a296958ed1d0dbddf3f8ac4466130.zip
Conversion to the cmake building system.
Delete empty files (dummy.cpp, xsldbgconfig.h). Remove hard-coded path for the kmdr-executor executable. Replaced $TQTDIR/doc/html string path for TQTDOCDIR in kommander. Add man pages taken from the Debian packaging. Signed-off-by: gregory guy <gregory-tde@laposte.net> Fix linking - kxsldbgcommon-static and kimagemapeditorcommon-static needs to be embedded. Move the linking of xml and readline libraries to the appropriate static libraries. Add build option WITH_QUANTA_CVSSERVICE. Add a test whether the readline can be linked standalone or whether ncurses is needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg')
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/CMakeLists.txt54
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/arraylist.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/callstack.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/cmds.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/debug.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/debugXSL.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/files.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/help.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp10
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/options.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/qtnotifier2.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/search.cpp7
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/search.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/utils.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbgconfig.h0
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbgio.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbgmsg.h4
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h4
21 files changed, 138 insertions, 1 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/CMakeLists.txt b/kxsldbg/kxsldbgpart/libxsldbg/CMakeLists.txt
new file mode 100644
index 00000000..056331ce
--- /dev/null
+++ b/kxsldbg/kxsldbgpart/libxsldbg/CMakeLists.txt
@@ -0,0 +1,54 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${LIBXML_INCLUDE_DIRS}
+ ${LIBXSLT_INCLUDE_DIRS}
+ ${READLINE_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+add_compile_options( ${ICU_CXXFLAGS} )
+
+##### xsldbg (static)
+
+tde_add_library( xsldbg STATIC_PIC AUTOMOC
+
+ SOURCES
+ allmoc.cpp
+ xsldbgthread.cpp
+ xsldbg.cpp
+ xsldbgmsg.cpp
+ variable_cmds.cpp
+ utils.cpp
+ trace_cmds.cpp
+ template_cmds.cpp
+ search_cmds.cpp
+ search.cpp
+ param_cmds.cpp
+ os_cmds.cpp
+ options_unix.cpp
+ options.cpp
+ option_cmds.cpp
+ nodeview_cmds.cpp
+ help_unix.cpp
+ files_unix.cpp
+ files.cpp
+ file_cmds.cpp
+ debug.cpp
+ callstack.cpp
+ breakpoint_cmds.cpp
+ breakpoint.cpp
+ arraylist.cpp
+ debugXSL.cpp
+ LINK
+ ${LIBXSLT_LIBRARIES}
+ ${LIBEXSLT_LIBRARIES}
+ ${READLINE_LIBRARIES}
+)
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/arraylist.h b/kxsldbg/kxsldbgpart/libxsldbg/arraylist.h
index 81398459..f6256429 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/arraylist.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/arraylist.h
@@ -20,6 +20,10 @@
#ifndef ARRAYLIST_H
#define ARRAYLIST_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_KDE_DOCS
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h
index fd410366..09002c9c 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint.h
@@ -21,6 +21,10 @@
#ifndef XSLBREAKPOINT_H
#define XSLBREAKPOINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_KDE_DOCS
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/callstack.h b/kxsldbg/kxsldbgpart/libxsldbg/callstack.h
index fd87b9bd..60bf4652 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/callstack.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/callstack.h
@@ -20,6 +20,10 @@
#ifndef XSLCALLSTACK_H
#define XSLCALLSTACK_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/**
* Provide a call stack support
*
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/cmds.h b/kxsldbg/kxsldbgpart/libxsldbg/cmds.h
index f12648c7..ff15bdc7 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/cmds.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/cmds.h
@@ -20,6 +20,10 @@
#ifndef CMDS_H
#define CMDS_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/* See the top of debugXSL.c for a list of command names and thier shortcuts */
#ifndef USE_KDE_DOCS
typedef enum { /* id's for commands of xslDbgShell */
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/debug.h b/kxsldbg/kxsldbgpart/libxsldbg/debug.h
index c38f37eb..f05c50e4 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/debug.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/debug.h
@@ -19,6 +19,10 @@
#ifndef XSL_DEBUG_H
#define XSL_DEBUG_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.h b/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.h
index df50a53b..479448a3 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.h
@@ -34,6 +34,10 @@
#ifndef __DEBUG_XSL__
#define __DEBUG_XSL__
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_XSLDBG_AS_THREAD
#include "xsldbgmsg.h"
#include "xsldbgthread.h"
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/files.h b/kxsldbg/kxsldbgpart/libxsldbg/files.h
index 05e49828..89557e28 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/files.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/files.h
@@ -19,6 +19,10 @@
#ifndef FILES_H
#define FILES_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifndef BUILD_DOCS
#include "search.h"
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/help.h b/kxsldbg/kxsldbgpart/libxsldbg/help.h
index de77a71d..9c1c9a0a 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/help.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/help.h
@@ -19,6 +19,10 @@
#ifndef XSLDBG_HELP_H
#define XSLDBG_HELP_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_KDE_DOCS
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp b/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp
index 8593ab6b..0bcd8edb 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp
+++ b/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp
@@ -20,6 +20,14 @@
* Uses docs/xsldoc.xsl docs/xsldoc.xml and xslproc to generate text
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifndef XSLDBG_BIN
+#define XSLDBG_BIN "xsldbg"
+#endif
+
#include "xsldbg.h"
#include "options.h"
#include "utils.h"
@@ -28,7 +36,7 @@
#include "files.h"
#include <stdlib.h>
#include <tdeglobal.h>
-#include <kstandarddirs.h>
+#include <kstandarddirs.h>
/**
* helpTop:
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/options.h b/kxsldbg/kxsldbgpart/libxsldbg/options.h
index 60ab69d3..4ce99f42 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/options.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/options.h
@@ -19,6 +19,10 @@
#ifndef OPTIONS_H
#define OPTIONS_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "arraylist.h"
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/qtnotifier2.h b/kxsldbg/kxsldbgpart/libxsldbg/qtnotifier2.h
index 6fd7a9f3..e8840234 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/qtnotifier2.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/qtnotifier2.h
@@ -18,6 +18,10 @@
#ifndef TQTNOTIFIER_H
#define TQTNOTIFIER_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#if defined WIN32
#include <libxsldbg/xsldbgwin32config.h>
#endif
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/search.cpp b/kxsldbg/kxsldbgpart/libxsldbg/search.cpp
index 68fcd7e1..6d30193d 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/search.cpp
+++ b/kxsldbg/kxsldbgpart/libxsldbg/search.cpp
@@ -7,6 +7,13 @@
email : k_isdale@tpg.com.au
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifndef XSLDBG_BIN
+#define XSLDBG_BIN "xsldbg"
+#endif
#include "xsldbg.h"
#include "debugXSL.h"
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/search.h b/kxsldbg/kxsldbgpart/libxsldbg/search.h
index 20fc82b4..bc7d082c 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/search.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/search.h
@@ -20,6 +20,10 @@
#ifndef XSLSEARCH_H
#define XSLSEARCH_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_KDE_DOCS
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/utils.h b/kxsldbg/kxsldbgpart/libxsldbg/utils.h
index 28b297b0..ada7b693 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/utils.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/utils.h
@@ -23,6 +23,10 @@
#ifndef XSLDBG_UTILS_H
#define XSLDBG_UTILS_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifndef BUILD_DOCS
#include <stdio.h>
#include <string.h>
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h
index 27250e31..dd9a067e 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h
@@ -20,6 +20,10 @@
#ifndef XSLDEBUGGER_H
#define XSLDEBUGGER_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef USE_KDE_DOCS
/**
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgconfig.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgconfig.h
deleted file mode 100644
index e69de29b..00000000
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgconfig.h
+++ /dev/null
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h
index e75c8419..2b4486e3 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h
@@ -21,6 +21,10 @@
#ifndef XSLDBGEVENT_H
#define XSLDBGEVENT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#if defined WIN32
#include <libxsldbg/xsldbgwin32config.h>
#endif
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgio.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgio.h
index 0e164f0e..81ced500 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgio.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgio.h
@@ -19,6 +19,10 @@
#ifndef XSLDBGIO_H
#define XSLDBGIO_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifndef BUILD_DOCS
#include <libxml/tree.h> /* needed for definition of xmlChar */
#endif
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgmsg.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgmsg.h
index 12b16a3c..9d953d87 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgmsg.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgmsg.h
@@ -19,6 +19,10 @@
#ifndef XSLDBGMSG_H
#define XSLDBGMSG_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef WIN32
# include <libxsldbg/xsldbgwin32config.h>
#else
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h
index d83e71f3..f0c4a56b 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h
+++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgthread.h
@@ -19,6 +19,10 @@
#ifndef XSLDBGTHREAD_H
#define XSLDBGTHREAD_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#if defined WIN32
#include <libxsldbg/xsldbgwin32config.h>
#endif