From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../cpp/app_templates/generichello/.kdev_ignore | 0 .../cpp/app_templates/generichello/Makefile.am | 19 +++++ .../cpp/app_templates/generichello/app.kdevelop | 61 ++++++++++++++ languages/cpp/app_templates/generichello/app.prj | 8 ++ .../cpp/app_templates/generichello/cpphello.png | Bin 0 -> 10118 bytes .../generichello/generichello.kdevtemplate | 92 +++++++++++++++++++++ languages/cpp/app_templates/generichello/main.cpp | 17 ++++ 7 files changed, 197 insertions(+) create mode 100644 languages/cpp/app_templates/generichello/.kdev_ignore create mode 100644 languages/cpp/app_templates/generichello/Makefile.am create mode 100644 languages/cpp/app_templates/generichello/app.kdevelop create mode 100644 languages/cpp/app_templates/generichello/app.prj create mode 100644 languages/cpp/app_templates/generichello/cpphello.png create mode 100644 languages/cpp/app_templates/generichello/generichello.kdevtemplate create mode 100644 languages/cpp/app_templates/generichello/main.cpp (limited to 'languages/cpp/app_templates/generichello') diff --git a/languages/cpp/app_templates/generichello/.kdev_ignore b/languages/cpp/app_templates/generichello/.kdev_ignore new file mode 100644 index 00000000..e69de29b diff --git a/languages/cpp/app_templates/generichello/Makefile.am b/languages/cpp/app_templates/generichello/Makefile.am new file mode 100644 index 00000000..b558eecd --- /dev/null +++ b/languages/cpp/app_templates/generichello/Makefile.am @@ -0,0 +1,19 @@ +dataFiles = main.cpp cpphello.png app.kdevelop app.prj +templateName = cppgenerichello + +# BELOW is not the GENERIC Template-Template; +# png-filename differs from archive file name + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz cpphello.png + +CLEANFILES = *.tar.gz \ No newline at end of file diff --git a/languages/cpp/app_templates/generichello/app.kdevelop b/languages/cpp/app_templates/generichello/app.kdevelop new file mode 100644 index 00000000..c0b6cc1e --- /dev/null +++ b/languages/cpp/app_templates/generichello/app.kdevelop @@ -0,0 +1,61 @@ + + + + %{AUTHOR} + %{EMAIL} + %{VERSION} + KDevGenericProject + C++ + + C++ + Code + + + + ShellScript + %{APPNAMELC}.prj + + src/%{APPNAMELC} + debug + + + src/%{APPNAMELC} + true + + + + optimized + GccOptions + GppOptions + G77Options + -O2 -g0 + + + --enable-debug=full + debug + GccOptions + GppOptions + G77Options + -O0 -g3 + + + + + + + + + + + + + + + + + + Doxygen Documentation Collection + %{APPNAMELC}.tag + + + diff --git a/languages/cpp/app_templates/generichello/app.prj b/languages/cpp/app_templates/generichello/app.prj new file mode 100644 index 00000000..a1eeca82 --- /dev/null +++ b/languages/cpp/app_templates/generichello/app.prj @@ -0,0 +1,8 @@ + + + + + gcc -o %{APPNAMELC} %{APPNAMELC}.cpp + + + diff --git a/languages/cpp/app_templates/generichello/cpphello.png b/languages/cpp/app_templates/generichello/cpphello.png new file mode 100644 index 00000000..888d4f13 Binary files /dev/null and b/languages/cpp/app_templates/generichello/cpphello.png differ diff --git a/languages/cpp/app_templates/generichello/generichello.kdevtemplate b/languages/cpp/app_templates/generichello/generichello.kdevtemplate new file mode 100644 index 00000000..787140ff --- /dev/null +++ b/languages/cpp/app_templates/generichello/generichello.kdevtemplate @@ -0,0 +1,92 @@ +# KDE Config File +[General] +Name=C++ program (shell script build system) +Name[ca]=Programa C++ (sistema de construcció basat en scripts de shell) +Name[da]=C++ program (skalscript byggesystem) +Name[de]=C++-Programm (Shell-Skript basiertes Erstellungssystem) +Name[el]=Πρόγραμμα C++ (σύστημα κατασκευής σενάριο κελύφους) +Name[es]=Programa en C++ (con sistema de construcción basado en guión de órdenes) +Name[et]=C++ programm (shelliskripti ehitussüsteem) +Name[eu]=C++ programa (shell script-en bidez eraikia) +Name[fa]=برنامۀ ++C )سیستم ساخت دست‌نوشتۀ پوسته( +Name[fr]=Programme C++ (système de construction en script shell) +Name[ga]=Ríomhchlár C++ (córas tógála bunaithe ar scripteanna blaoisce +Name[gl]=Programa C++ (sistema de compilación shell script) +Name[hu]=C++-program (parancssoros fordítási szkripttel) +Name[it]=Programma C++ (sistema di compilazione con script di shell) +Name[ja]=C++ プログラム (シェルスクリプトベースのビルドシステム) +Name[nds]=C++-Programm (Konsoolskript-Opstellsystem) +Name[ne]=C++ कार्यक्रम (शेल स्क्रिप्ट निर्माण प्रणाली) +Name[nl]=C++-programma (shellscript build system) +Name[pl]=Program w C++ (system budowania za pomocą skryptów powłoki) +Name[pt]=Programa em C++ (sistema de compilação em 'shell script') +Name[pt_BR]=Programa em C++ (sistema de compilação em 'shell script') +Name[ru]=Приложение C++ (сборка на скриптах командной оболочки) +Name[sk]=C++ program (shell skript build system) +Name[sl]=Program v C++ (sistem grajenja lupinskega skripta) +Name[sr]=C++ програм (скрипта шкољке као систем за градњу) +Name[sr@Latn]=C++ program (skripta školjke kao sistem za gradnju) +Name[sv]=C++ program (skalskript byggsystem) +Name[tr]=C++ programı (kabuk betiği kurulum sistemi) +Name[zh_CN]=C++ 程序(Shell 脚本创建系统) +Name[zh_TW]=C++ 程式(shell 文稿建立系統) +Icon=cpphello.png +Category=C++/Generic +Comment=Generates a simple Hello world program in C++ +Comment[ca]=Genera un simple programa de Hello world en C++ +Comment[da]=Genererer et simpelt Goddag verden program in C++ +Comment[de]=Erstellt ein einfaches "Hello World"-Programm in C++ +Comment[el]=Δημιουργεί ένα απλό πρόγραμμα Γεια σου Κόσμε σε C++ +Comment[es]=Genera un sencillo programa «Hola mundo» en C++ +Comment[et]=Lihtsa "Tere, maailm" programmi loomine C++-s +Comment[eu]="Kaixo mundua" programa sinple bat sortzen du C++ lengoaian +Comment[fa]=یک برنامۀ سادۀ Hello world در C++ تولید می‌کند +Comment[fr]=Génère un programme « Bonjour monde » simple en C++ +Comment[ga]=Cruthaíonn sé seo ríomhchlár simplí "Hello World" i C++ +Comment[gl]=Xera un programa sinxelo Ola mundo en C++ +Comment[hu]=Létrehoz egy egyszerű Hello world programot C++-ban +Comment[it]=Genera un semplice programma di "Hello world" in C++ +Comment[ja]=簡単な Hello World プログラムを C++ で作成します +Comment[nds]=Stellt en eenfach "Moin Welt"-Programm in C++ op +Comment[ne]=C++ मा एउटा साधारण हेल्लो वोल्ड कार्यक्रम उत्पन्न गर्दछ +Comment[nl]=Genereert een eenvoudig Hello World-programma in C++ +Comment[pl]=Generuje prosty program 'Witaj świecie' w języku C++ +Comment[pt]=Gera um programa simples Olá Mundo em C++ +Comment[pt_BR]=Gera um programa simples Olá Mundo em C++ +Comment[ru]=Создание простого приложения Hello world на C++ +Comment[sk]=Vygeneruje jednoduchý "Ahoj svet" program v C++ +Comment[sl]=Ustvari preprost program Hello world v C++ +Comment[sr]=Прави једноставан „Здраво свете“ програм у C++-у +Comment[sr@Latn]=Pravi jednostavan „Zdravo svete“ program u C++-u +Comment[sv]=Skapar ett enkelt Hello world-program i C++ +Comment[tr]=C++'da basit bir Merhaba Dünya programı yaratır. +Comment[zh_CN]=生成 C++ 的 Hello world 程序 +Comment[zh_TW]=產生一個簡單的 C++ 的 Hello world 程式 +FileTemplates=h,CStyle,cpp,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.cpp +Archive=generichello.tar.gz + +[GNU] +Type=include +File=%{kdevelop}/template-common/gnu.kdevtemplate + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/app.prj +Dest=%{dest}/%{APPNAMELC}.prj + +[MkDir1] +Type=mkdir +Dir=%{dest}/src + +[FILE3] +Type=install +Source=%{src}/main.cpp +Dest=%{dest}/src/%{APPNAMELC}.cpp + diff --git a/languages/cpp/app_templates/generichello/main.cpp b/languages/cpp/app_templates/generichello/main.cpp new file mode 100644 index 00000000..f97c8417 --- /dev/null +++ b/languages/cpp/app_templates/generichello/main.cpp @@ -0,0 +1,17 @@ +%{CPP_TEMPLATE} + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include + +using namespace std; + +int main(int argc, char *argv[]) +{ + cout << "Hello, world!" << endl; + + return EXIT_SUCCESS; +} -- cgit v1.2.1