summaryrefslogtreecommitdiffstats
path: root/languages/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby')
-rw-r--r--languages/ruby/CMakeLists.txt51
-rw-r--r--languages/ruby/app_templates/CMakeLists.txt23
-rw-r--r--languages/ruby/app_templates/dcopservice/CMakeLists.txt27
-rw-r--r--languages/ruby/app_templates/kapp/CMakeLists.txt27
-rw-r--r--languages/ruby/app_templates/kxt/CMakeLists.txt28
-rw-r--r--languages/ruby/app_templates/qtruby/CMakeLists.txt25
-rw-r--r--languages/ruby/app_templates/qtruby4app/CMakeLists.txt28
-rw-r--r--languages/ruby/app_templates/qtrubyapp/CMakeLists.txt27
-rw-r--r--languages/ruby/app_templates/rails/CMakeLists.txt37
-rw-r--r--languages/ruby/app_templates/rubyhello/CMakeLists.txt25
-rw-r--r--languages/ruby/debugger/CMakeLists.txt48
-rw-r--r--languages/ruby/doc/CMakeLists.txt14
-rw-r--r--languages/ruby/file_templates/CMakeLists.txt14
13 files changed, 358 insertions, 16 deletions
diff --git a/languages/ruby/CMakeLists.txt b/languages/ruby/CMakeLists.txt
new file mode 100644
index 00000000..2f1a231e
--- /dev/null
+++ b/languages/ruby/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( app_templates )
+add_subdirectory( file_templates )
+add_subdirectory( doc )
+add_subdirectory( debugger )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/languages/lib/designer_integration
+ ${CMAKE_SOURCE_DIR}/languages/lib/designer_integration
+ ${CMAKE_SOURCE_DIR}/lib/interfaces
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/extensions
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/external
+ ${CMAKE_SOURCE_DIR}/lib/util
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kdevrubysupport.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES rubytemplates DESTINATION ${DATA_INSTALL_DIR}/kdevabbrev/templates )
+install( FILES kdevrubysupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevrubysupport )
+install( FILES ruby_config.png ruby_run.png DESTINATION ${DATA_INSTALL_DIR}/kdevrubysupport/pics )
+
+
+##### libkdevrubysupport (module) ###############
+
+tde_add_kpart( libkdevrubysupport AUTOMOC
+ SOURCES
+ rubysupport_part.cpp rubyconfigwidgetbase.ui
+ rubyconfigwidget.cpp qtdesignerrubyintegration.cpp
+ rubyimplementationwidget.cpp
+ LINK designerintegration-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/languages/ruby/app_templates/CMakeLists.txt b/languages/ruby/app_templates/CMakeLists.txt
new file mode 100644
index 00000000..9e07d2c5
--- /dev/null
+++ b/languages/ruby/app_templates/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( rubyhello )
+add_subdirectory( qtruby )
+add_subdirectory( qtrubyapp )
+add_subdirectory( dcopservice )
+add_subdirectory( kapp )
+add_subdirectory( kxt )
+add_subdirectory( rails )
+add_subdirectory( qtruby4app )
+
+install( FILES
+ ruby.appwizard
+ DESTINATION ${DATA_INSTALL_DIR}/kdevelop/profiles/IDE/ScriptingLanguageIDE/RubyIDE )
diff --git a/languages/ruby/app_templates/dcopservice/CMakeLists.txt b/languages/ruby/app_templates/dcopservice/CMakeLists.txt
new file mode 100644
index 00000000..3e6b459b
--- /dev/null
+++ b/languages/ruby/app_templates/dcopservice/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( dcopserviceruby.tar.gz ALL
+ COMMAND tar zcf dcopserviceruby.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ dcopservice.desktop app.cpp app-configure.in.in
+ src-Makefile.am main.rb dcopservice.rb dcopservice.kdevelop
+ subdirs
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/dcopserviceruby.tar.gz dcopserviceruby.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ dcopserviceruby.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/kapp/CMakeLists.txt b/languages/ruby/app_templates/kapp/CMakeLists.txt
new file mode 100644
index 00000000..41c2de16
--- /dev/null
+++ b/languages/ruby/app_templates/kapp/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( kappruby.tar.gz ALL
+ COMMAND tar zcf kappruby.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ app_client.rb appiface.rb app.rb appview.rb main.rb pref.rb
+ app.cpp appui.rc app.desktop app.kdevelop app-Makefile.am
+ app-configure.in.in src-Makefile.am subdirs README
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/kappruby.tar.gz kappruby.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ kappruby.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/kxt/CMakeLists.txt b/languages/ruby/app_templates/kxt/CMakeLists.txt
new file mode 100644
index 00000000..2543047d
--- /dev/null
+++ b/languages/ruby/app_templates/kxt/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( kxtruby.tar.gz ALL
+ COMMAND tar zcf kxtruby.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ app.rb main.rb prefs.rb app.cpp appview.rb appview_base.ui
+ prefs-base.ui appui.rc app.desktop kxtruby.png app.kdevelop
+ app-Makefile.am app-configure.in.in app.kcfg settings.kcfgc
+ src-Makefile.am subdirs README
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/kxtruby.tar.gz kxtruby.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ kxtruby.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/qtruby/CMakeLists.txt b/languages/ruby/app_templates/qtruby/CMakeLists.txt
new file mode 100644
index 00000000..476f6c65
--- /dev/null
+++ b/languages/ruby/app_templates/qtruby/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( qtruby.tar.gz ALL
+ COMMAND tar zcf qtruby.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ app.rb app.kdevelop app-Makefile app.filelist README
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/qtruby.tar.gz qtruby.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ qtruby.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/qtruby4app/CMakeLists.txt b/languages/ruby/app_templates/qtruby4app/CMakeLists.txt
new file mode 100644
index 00000000..8408f69a
--- /dev/null
+++ b/languages/ruby/app_templates/qtruby4app/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( qtruby4app.tar.gz ALL
+ COMMAND tar zcf qtruby4app.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.rb qtruby4app.rb qtruby4app.png qtruby4app.kdevelop
+ application.qrc ReadMe filesave.xpm fileopen.xpm
+ filenew.xpm editcopy.xpm editpaste.xpm editcut.xpm
+ app-Makefile app.filelist
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/qtruby4app.tar.gz qtruby4app.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ qtruby4app.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt b/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt
new file mode 100644
index 00000000..299ac911
--- /dev/null
+++ b/languages/ruby/app_templates/qtrubyapp/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( qtrubyapp.tar.gz ALL
+ COMMAND tar zcf qtrubyapp.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.rb qtrubyapp.rb qtrubyapp.png qtrubyapp.kdevelop
+ filesave.xpm fileopen.xpm fileprint.xpm app.filelist
+ app-Makefile README
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/qtrubyapp.tar.gz qtrubyapp.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ qtrubyapp.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/rails/CMakeLists.txt b/languages/ruby/app_templates/rails/CMakeLists.txt
index 34da0fde..75948f30 100644
--- a/languages/ruby/app_templates/rails/CMakeLists.txt
+++ b/languages/ruby/app_templates/rails/CMakeLists.txt
@@ -1,20 +1,25 @@
-
-
-#original Makefile.am contents follow:
-
-#dataFiles = app.rb app.kdevelop
-#templateName= rubyhello
+#################################################
#
-#### no need to change below:
-#template_DATA = $(templateName).kdevtemplate
-#templatedir = ${appwizarddatadir}/templates
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
#
-#appwizarddatadir = ${kde_datadir}/kdevappwizard
-#$(templateName).tar.gz:
-# $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles}
-# $(GZIP) -9 $(templateName).tar
+# Improvements and feedback are welcome
#
-#archivedir = ${appwizarddatadir}
-#archive_DATA = $(templateName).tar.gz ${templateName}.png
+# This file is released under GPL >= 2
#
-#CLEANFILES = *.tar.gz \ No newline at end of file
+#################################################
+
+add_custom_target( rails.tar.gz ALL
+ COMMAND tar zcf rails.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/rails.tar.gz rails.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ rails.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/app_templates/rubyhello/CMakeLists.txt b/languages/ruby/app_templates/rubyhello/CMakeLists.txt
new file mode 100644
index 00000000..3aeb22f1
--- /dev/null
+++ b/languages/ruby/app_templates/rubyhello/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( rubyhello.tar.gz ALL
+ COMMAND tar zcf rubyhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ app.rb app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/rubyhello.tar.gz rubyhello.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ rubyhello.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/ruby/debugger/CMakeLists.txt b/languages/ruby/debugger/CMakeLists.txt
new file mode 100644
index 00000000..36655f65
--- /dev/null
+++ b/languages/ruby/debugger/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/languages/lib/debugger
+ ${CMAKE_SOURCE_DIR}/lib/interfaces
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/extensions
+ ${CMAKE_SOURCE_DIR}/lib/util
+ ${CMAKE_SOURCE_DIR}/lib/widgets
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( )
+install( FILES kdevrbdebugger.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES debuggee.rb DESTINATION ${DATA_INSTALL_DIR}/kdevrbdebugger )
+install( FILES kdevrbdebugger.rc DESTINATION ${DATA_INSTALL_DIR}/kdevrbdebugger )
+
+
+##### libkdevrbdebugger (module) ################
+
+tde_add_kpart( libkdevrbdebugger AUTOMOC
+ SOURCES
+ debuggerpart.cpp dbgcontroller.cpp rdbcontroller.cpp
+ dbgcommand.cpp rdbcommand.cpp rdbparser.cpp stty.cpp
+ breakpoint.cpp variablewidget.cpp rdbbreakpointwidget.cpp
+ framestackwidget.cpp dbgpsdlg.cpp dbgtoolbar.cpp
+ rdboutputwidget.cpp rdbtable.cpp
+ LINK lang_debugger-shared kdevwidgets-shared kdevelop-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/languages/ruby/doc/CMakeLists.txt b/languages/ruby/doc/CMakeLists.txt
new file mode 100644
index 00000000..781fa2ba
--- /dev/null
+++ b/languages/ruby/doc/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ ruby.toc ruby_bugs.toc qtruby.toc rails.toc
+ DESTINATION ${DATA_INSTALL_DIR}/kdevdocumentation/tocs )
diff --git a/languages/ruby/file_templates/CMakeLists.txt b/languages/ruby/file_templates/CMakeLists.txt
new file mode 100644
index 00000000..617e829c
--- /dev/null
+++ b/languages/ruby/file_templates/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ rb rhtml rxml rjs js css html.erb xml.builder js.rjs
+ DESTINATION ${DATA_INSTALL_DIR}/kdevfilecreate/file-templates )