summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-04-23 11:23:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-26 01:19:52 +0200
commit8e16b376dc531edfdf7b7d8dc13d3d9a15d81c0c (patch)
tree25f1387d41cec1d43b5277db33ca9a5141f9875f /src
parentfb461bbd2b56046933a77f75eb4873c64781064d (diff)
downloadkscope-8e16b376dc531edfdf7b7d8dc13d3d9a15d81c0c.tar.gz
kscope-8e16b376dc531edfdf7b7d8dc13d3d9a15d81c0c.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt123
-rw-r--r--src/makelayout.ui17
-rw-r--r--src/newprojectlayout.ui14
-rw-r--r--src/openprojectlayout.ui10
-rw-r--r--src/preffrontendlayout.ui16
-rw-r--r--src/symbollayout.ui8
-rw-r--r--src/welcomedlg.ui6
7 files changed, 154 insertions, 40 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..12efd27
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,123 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+tde_import( kate )
+
+add_custom_command(
+ OUTPUT dotparse.cpp dotparse.hpp
+ COMMAND ${BISON_EXECUTABLE}
+ ARGS -y --output dotparse.cpp --defines=dotparse.hpp ${CMAKE_CURRENT_SOURCE_DIR}/dotparse.ypp
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dotparse.ypp
+)
+
+add_custom_target(
+ dotparse.bison
+ DEPENDS
+ ${CMAKE_CURRENT_BINARY_DIR}/dotparse.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/dotparse.hpp
+)
+
+add_custom_command(
+ OUTPUT dotscan.cc
+ COMMAND ${FLEX_EXECUTABLE}
+ ARGS ${CMAKE_CURRENT_SOURCE_DIR}/dotscan.lpp
+ COMMAND ${CMAKE_COMMAND}
+ ARGS -E rename lex.yy.c dotscan.cc
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dotscan.lpp
+)
+
+add_custom_target(
+ dotscan.lex
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/dotscan.cc
+)
+
+##### kscope (executable)
+
+tde_add_executable( kscope AUTOMOC
+
+ SOURCES
+ autocompletionlayout.ui bookmarkslayout.ui
+ calltreelayout.ui cscopemsglayout.ui
+ fileviewlayout.ui graphpreflayout.ui
+ makelayout.ui newprojectlayout.ui
+ openprojectlayout.ui prefcolorlayout.ui
+ preffontlayout.ui preffrontendlayout.ui
+ prefoptlayout.ui projectfileslayout.ui
+ queryviewlayout.ui querywidgetlayout.ui
+ scanprogresslayout.ui searchresultslayout.ui
+ symbollayout.ui welcomedlg.ui
+ bookmarksdlg.cpp calltreedlg.cpp
+ calltreemanager.cpp configfrontend.cpp
+ cscopefrontend.cpp cscopemsgdlg.cpp
+ ctagsfrontend.cpp ctagslist.cpp
+ dirscanner.cpp dotfrontend.cpp
+ editormanager.cpp
+ editorpage.cpp editortabs.cpp
+ encoder.cpp filelist.cpp
+ fileview.cpp frontend.cpp
+ graphedge.cpp graphnode.cpp
+ graphprefdlg.cpp graphwidget.cpp
+ historypage.cpp historyview.cpp
+ kscope.cpp kscopeactions.cpp
+ kscopeconfig.cpp kscopepixmaps.cpp
+ main.cpp makedlg.cpp makefrontend.cpp
+ newprojectdlg.cpp openprojectdlg.cpp
+ prefcolor.cpp preferencesdlg.cpp
+ preffont.cpp preffrontend.cpp
+ prefopt.cpp progressdlg.cpp
+ project.cpp projectbase.cpp
+ projectfilesdlg.cpp projectmanager.cpp
+ querypage.cpp querypagebase.cpp
+ queryresultsmenu.cpp queryview.cpp
+ queryviewdlg.cpp queryviewdriver.cpp
+ querywidget.cpp scanprogressdlg.cpp
+ searchlist.cpp searchresultsdlg.cpp
+ symbolcompletion.cpp symboldlg.cpp
+ tabwidget.cpp treewidget.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/dotparse.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/dotscan.cc
+ LINK
+ tdeui-shared
+ tdeio-shared
+ tdecore-shared
+ tdeparts-shared
+ kateinterfaces-shared
+ katepartinterfaces-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+ DEPENDENCIES dotparse.bison dotscan.lex
+)
+
+
+##### icons
+
+tde_install_icons( kscope )
+
+
+##### other data
+
+install(
+ FILES kscopeui.rc kscope_config
+ DESTINATION ${DATA_INSTALL_DIR}/kscope
+)
+
+install(
+ FILES file_ro.png file_rw.png file_save.png query_locked.png
+ query_unlocked.png tab_list.png call_graph.png called_tree.png
+ calling_tree.png bookmark.png
+ DESTINATION ${DATA_INSTALL_DIR}/kscope/pics
+)
+
+install( FILES kscope.desktop
+ DESTINATION ${APPS_INSTALL_DIR}/Development
+)
diff --git a/src/makelayout.ui b/src/makelayout.ui
index d36dae1..eb3dcfd 100644
--- a/src/makelayout.ui
+++ b/src/makelayout.ui
@@ -233,13 +233,12 @@
<slot access="protected">slotMake()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kcombobox.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>ktextbrowser.h</includehint>
- <includehint>queryview.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">ktextbrowser.h</include>
+ <include location="local" impldecl="in implementation">queryview.h</include>
+</includes>
</UI>
diff --git a/src/newprojectlayout.ui b/src/newprojectlayout.ui
index 4374e3c..830579f 100644
--- a/src/newprojectlayout.ui
+++ b/src/newprojectlayout.ui
@@ -767,12 +767,10 @@ path for all source files, but is not required.&lt;/blockquote&gt;</string>
<slot access="protected">slotAvailTypesChanged(const TQString&amp;)</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+</includes>
</UI>
diff --git a/src/openprojectlayout.ui b/src/openprojectlayout.ui
index a1c24b4..a346e15 100644
--- a/src/openprojectlayout.ui
+++ b/src/openprojectlayout.ui
@@ -194,9 +194,9 @@
<slot access="protected">slotProjectSelected(const TQString&amp;)</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+</includes>
</UI>
diff --git a/src/preffrontendlayout.ui b/src/preffrontendlayout.ui
index 71afeed..0487089 100644
--- a/src/preffrontendlayout.ui
+++ b/src/preffrontendlayout.ui
@@ -179,15 +179,9 @@
<tabstops>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+</includes>
</UI>
diff --git a/src/symbollayout.ui b/src/symbollayout.ui
index 4ffe188..a0bf353 100644
--- a/src/symbollayout.ui
+++ b/src/symbollayout.ui
@@ -290,8 +290,8 @@
<tabstop>m_pContainRadio</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kcombobox.h</includehint>
- <includehint>klineedit.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+</includes>
</UI>
diff --git a/src/welcomedlg.ui b/src/welcomedlg.ui
index dde3cdd..09398be 100644
--- a/src/welcomedlg.ui
+++ b/src/welcomedlg.ui
@@ -120,7 +120,7 @@ Enjoy!
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>ktextbrowser.h</includehint>
-</includehints>
+<includes>
+ <include location="global" impldecl="in implementation">ktextbrowser.h</include>
+</includes>
</UI>