diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
commit | 7ffba8afee76edba6433d97864119501731742e8 (patch) | |
tree | 38b5eb5bd019b77b33f7ad8d7de7ef7666ebe8b1 /kate | |
parent | 0db4822126702d04068c5761e63ed9684a08981b (diff) | |
download | tdelibs-7ffba8afee76edba6433d97864119501731742e8.tar.gz tdelibs-7ffba8afee76edba6433d97864119501731742e8.zip |
[kdelibs] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate')
-rw-r--r-- | kate/CMakeLists.txt | 16 | ||||
-rw-r--r-- | kate/data/CMakeLists.txt | 83 | ||||
-rw-r--r-- | kate/interfaces/CMakeLists.txt | 51 | ||||
-rw-r--r-- | kate/part/CMakeLists.txt | 81 | ||||
-rw-r--r-- | kate/plugins/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kate/plugins/insertfile/CMakeLists.txt | 52 | ||||
-rw-r--r-- | kate/plugins/isearch/CMakeLists.txt | 50 | ||||
-rw-r--r-- | kate/plugins/kdatatool/CMakeLists.txt | 52 | ||||
-rw-r--r-- | kate/plugins/wordcompletion/CMakeLists.txt | 48 | ||||
-rw-r--r-- | kate/scripts/CMakeLists.txt | 21 |
10 files changed, 469 insertions, 0 deletions
diff --git a/kate/CMakeLists.txt b/kate/CMakeLists.txt new file mode 100644 index 000000000..1b920c92d --- /dev/null +++ b/kate/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( interfaces ) +add_subdirectory( part ) +add_subdirectory( data ) +add_subdirectory( scripts ) +add_subdirectory( plugins ) diff --git a/kate/data/CMakeLists.txt b/kate/data/CMakeLists.txt new file mode 100644 index 000000000..212dfafcd --- /dev/null +++ b/kate/data/CMakeLists.txt @@ -0,0 +1,83 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + katepart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + +install( FILES + katepartui.rc katepartreadonlyui.rc + DESTINATION ${DATA_INSTALL_DIR}/katepart ) + +install( FILES + katesyntaxhighlightingrc katefiletyperc + DESTINATION ${CONFIG_INSTALL_DIR} ) + +install( FILES + language.dtd syntax.template cpp.xml c.xml html.xml + kbasic.xml objectivec.xml changelog.xml ada.xml + css.xml perl.xml php.xml xml.xml java.xml rpmspec.xml + sql.xml sql-mysql.xml sql-postgresql.xml vhdl.xml + diff.xml bash.xml latex.xml postscript.xml ruby.xml + rhtml.xml desktop.xml eiffel.xml pascal.xml sather.xml + python.xml makefile.xml ferite.xml scheme.xml matlab.xml + tcl.xml ilerpg.xml verilog.xml javascript.xml sml.xml + winehq.xml cs.xml sgml.xml idconsole.xml xmldebug.xml + fortran.xml haskell.xml literate-haskell.xml r.xml + gnuassembler.xml mab.xml mason.xml idl.xml prolog.xml + rsiidl.xml coldfusion.xml picsrc.xml uscript.xml lpc.xml + velocity.xml sci.xml ldif.xml inform.xml xharbour.xml + yacas.xml component-pascal.xml asm6502.xml gdl.xml + bibtex.xml d.xml vrml.xml rexx.xml cue.xml progress.xml + e.xml sieve.xml modula-2.xml awk.xml cisco.xml doxygen.xml + lua.xml pike.xml debianchangelog.xml debiancontrol.xml + fgl-4gl.xml fgl-per.xml alert.xml gettext.xml commonlisp.xml + clipper.xml povray.xml euphoria.xml mup.xml jsp.xml + ocaml.xml lex.xml yacc.xml cg.xml ahdl.xml ansic89.xml + tibasic.xml purebasic.xml mips.xml logtalk.xml txt2tags.xml + xslt.xml stata.xml glsl.xml lilypond.xml abc.xml asp.xml + asm-avr.xml rib.xml cmake.xml octave.xml javadoc.xml + cgis.xml spice.xml nasm.xml mediawiki.xml apache.xml + m3u.xml ini.xml fstab.xml actionscript.xml abap.xml + ansys.xml asn1.xml asterisk.xml bmethod.xml ddoc.xml + djangotemplate.xml doxygenlua.xml dtd.xml email.xml + erlang.xml freebasic.xml gap.xml json.xml maxima.xml + mergetagtext.xml modelica.xml monobasic.xml nemerle.xml + noweb.xml objectivecpp.xml opal.xml pgn.xml rapidq.xml + scala.xml sisu.xml systemc.xml texinfo.xml xorg.xml + xul.xml yaml.xml zonnon.xml + ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml + ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml + ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml + DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax ) + + +##### generate php headers ###################### + +add_custom_command( OUTPUT html-php.xml + COMMAND perl ARGS generate-php.pl < html.xml > ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml + DEPENDS html.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_command( OUTPUT css-php.xml + COMMAND perl ARGS generate-php.pl < css.xml > ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml + DEPENDS css.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_command( OUTPUT javascript-php.xml + COMMAND perl ARGS generate-php.pl < javascript.xml > ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml + DEPENDS javascript.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_target( php-headers ALL + DEPENDS html-php.xml css-php.xml javascript-php.xml ) diff --git a/kate/interfaces/CMakeLists.txt b/kate/interfaces/CMakeLists.txt new file mode 100644 index 000000000..b7eca5f39 --- /dev/null +++ b/kate/interfaces/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + document.h view.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kate ) + + +##### katepartinterfaces ######################## + +set( target katepartinterfaces ) + +set( ${target}_SRCS + interfaces.cpp katecmd.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK ktexteditor-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kate/part/CMakeLists.txt b/kate/part/CMakeLists.txt new file mode 100644 index 000000000..b73ab51ef --- /dev/null +++ b/kate/part/CMakeLists.txt @@ -0,0 +1,81 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kjs + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kdeprint + ${CMAKE_SOURCE_DIR}/interfaces + ${CMAKE_SOURCE_DIR}/interfaces/kregexpeditor + ${LUA_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${LUA_LIBRARY_DIRS} +) + +##### kate (static library) ##################### + +set( target kate ) + +set( ${target}_SRCS + katesearch.cpp katebuffer.cpp katecmds.cpp + kateundo.cpp katecursor.cpp katedialogs.cpp katedocument.cpp + katefactory.cpp katehighlight.cpp katesyntaxdocument.cpp + katetextline.cpp kateview.cpp kateconfig.cpp kateviewhelpers.cpp + katecodecompletion.cpp katedocumenthelpers.cpp + katecodefoldinghelpers.cpp kateviewinternal.cpp katebookmarks.cpp + kateprinter.cpp katefont.cpp katelinerange.cpp katesupercursor.cpp + katearbitraryhighlight.cpp katerenderer.cpp kateattribute.cpp + kateautoindent.cpp katefiletype.cpp kateschema.cpp katedocument.skel + katetemplatehandler.cpp katejscript.cpp katespell.cpp kateindentscriptabstracts.cpp + kateluaindentscript.cpp +) + +tde_add_lut( katejscript.cpp katejscript.lut.h katejscript.cpp ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} + DEPENDENCIES dcopidl +) + + +##### libkatepart (module) ###################### + +set( target libkatepart ) + +configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_kpart( ${target} + SOURCES dummy.cpp + EMBED kate-static + LINK kjs-shared kdeprint-shared katepartinterfaces-shared kutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/CMakeLists.txt b/kate/plugins/CMakeLists.txt new file mode 100644 index 000000000..dab636d17 --- /dev/null +++ b/kate/plugins/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( isearch ) +add_subdirectory( insertfile ) +add_subdirectory( kdatatool ) +add_subdirectory( wordcompletion ) diff --git a/kate/plugins/insertfile/CMakeLists.txt b/kate/plugins/insertfile/CMakeLists.txt new file mode 100644 index 000000000..c09a2bf2b --- /dev/null +++ b/kate/plugins/insertfile/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_insertfile.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_insertfileui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_insertfile ) + + +##### ktexteditor_insertfile #################### + +set( target ktexteditor_insertfile ) + +set( ${target}_SRCS + insertfileplugin.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/isearch/CMakeLists.txt b/kate/plugins/isearch/CMakeLists.txt new file mode 100644 index 000000000..ad9441072 --- /dev/null +++ b/kate/plugins/isearch/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_isearch.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_isearchui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_isearch ) + + +##### ktexteditor_isearch ####################### + +set( target ktexteditor_isearch ) + +set( ${target}_SRCS + ISearchPlugin.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/kdatatool/CMakeLists.txt b/kate/plugins/kdatatool/CMakeLists.txt new file mode 100644 index 000000000..3eb03ddad --- /dev/null +++ b/kate/plugins/kdatatool/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_kdatatool.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_kdatatoolui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_kdatatool ) + + +##### ktexteditor_kdatatool ##################### + +set( target ktexteditor_kdatatool ) + +set( ${target}_SRCS + kate_kdatatool.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/wordcompletion/CMakeLists.txt b/kate/plugins/wordcompletion/CMakeLists.txt new file mode 100644 index 000000000..11c0dd85a --- /dev/null +++ b/kate/plugins/wordcompletion/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### other data ################################ + +install( FILES ktexteditor_docwordcompletion.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES docwordcompletionui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_docwordcompletion ) + + +##### ktexteditor_docwordcompletion ############# + +set( target ktexteditor_docwordcompletion ) + +set( ${target}_SRCS + docwordcompletion.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/scripts/CMakeLists.txt b/kate/scripts/CMakeLists.txt new file mode 100644 index 000000000..235cedd48 --- /dev/null +++ b/kate/scripts/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + jstest.desktop jstest.js script-indent-c-newline.js + script-indent-c-char.js sort.js + DESTINATION ${DATA_INSTALL_DIR}/katepart/scripts ) + +install( FILES + script-indent-c-test.js script-indent-c1-test.lua + DESTINATION ${DATA_INSTALL_DIR}/katepart/scripts/indent ) |