diff options
Diffstat (limited to 'languages/cpp/app_templates/chello')
-rw-r--r-- | languages/cpp/app_templates/chello/.kdev_ignore | 0 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/Makefile.am | 18 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/app.kdevelop | 107 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/c-Makefile.am | 5 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/c-Makefile.cvs | 8 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/chello.kdevtemplate | 253 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/chello.png | bin | 0 -> 10118 bytes | |||
-rw-r--r-- | languages/cpp/app_templates/chello/configure.in | 10 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/main.c | 15 | ||||
-rw-r--r-- | languages/cpp/app_templates/chello/src-Makefile.am | 8 |
10 files changed, 424 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/chello/.kdev_ignore b/languages/cpp/app_templates/chello/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/app_templates/chello/.kdev_ignore diff --git a/languages/cpp/app_templates/chello/Makefile.am b/languages/cpp/app_templates/chello/Makefile.am new file mode 100644 index 00000000..f7c9742a --- /dev/null +++ b/languages/cpp/app_templates/chello/Makefile.am @@ -0,0 +1,18 @@ +dataFiles = main.c src-Makefile.am c-Makefile.am c-Makefile.cvs \ + configure.in chello.png app.kdevelop + +templateName = chello + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} ${dataFiles} ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz
\ No newline at end of file diff --git a/languages/cpp/app_templates/chello/app.kdevelop b/languages/cpp/app_templates/chello/app.kdevelop new file mode 100644 index 00000000..521c9f89 --- /dev/null +++ b/languages/cpp/app_templates/chello/app.kdevelop @@ -0,0 +1,107 @@ +<?xml version="1.0"?> +<kdevelop> + <general> + <author>%{AUTHOR}</author> + <email>%{EMAIL}</email> + <version>%{VERSION}</version> + <projectmanagement>KDevAutoProject</projectmanagement> + <primarylanguage>C</primarylanguage> + <keywords> + <keyword>C</keyword> + <keyword>Code</keyword> + </keywords> + </general> + <kdevautoproject> + <general> + <activetarget>src/%{APPNAMELC}</activetarget> + <useconfiguration>debug</useconfiguration> + </general> + <run> + <mainprogram>src/%{APPNAMELC}</mainprogram> + <terminal>true</terminal> + </run> + <configurations> + <optimized> + <builddir>optimized</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cflags>-O2 -g0 %{CFLAGS}</cflags> + </optimized> + <debug> + <configargs>--enable-debug=full</configargs> + <builddir>debug</builddir> + <ccompiler>kdevgccoptions</ccompiler> + <cxxcompiler>kdevgppoptions</cxxcompiler> + <f77compiler>kdevg77options</f77compiler> + <cflags>-O0 -g3 %{CFLAGS}</cflags> + </debug> + </configurations> + </kdevautoproject> + <kdevdoctreeview> + <ignoretocs> + <toc>ada</toc> + <toc>ada_bugs_gcc</toc> + <toc>bash</toc> + <toc>bash_bugs</toc> + <toc>clanlib</toc> + <toc>w3c-dom-level2-html</toc> + <toc>fortran_bugs_gcc</toc> + <toc>gnome1</toc> + <toc>gnustep</toc> + <toc>gtk</toc> + <toc>gtk_bugs</toc> + <toc>haskell</toc> + <toc>haskell_bugs_ghc</toc> + <toc>java_bugs_gcc</toc> + <toc>java_bugs_sun</toc> + <toc>kde2book</toc> + <toc>libstdc++</toc> + <toc>opengl</toc> + <toc>pascal_bugs_fp</toc> + <toc>php</toc> + <toc>php_bugs</toc> + <toc>perl</toc> + <toc>perl_bugs</toc> + <toc>python</toc> + <toc>python_bugs</toc> + <toc>qt-kdev3</toc> + <toc>ruby</toc> + <toc>ruby_bugs</toc> + <toc>sdl</toc> + <toc>stl</toc> + <toc>w3c-svg</toc> + <toc>sw</toc> + <toc>w3c-uaag10</toc> + <toc>wxwidgets_bugs</toc> + </ignoretocs> + <ignoreqt_xml> + <toc>Guide to the Qt Translation Tools</toc> + <toc>Qt Assistant Manual</toc> + <toc>Qt Designer Manual</toc> + <toc>Qt Reference Documentation</toc> + <toc>qmake User Guide</toc> + </ignoreqt_xml> + <ignoredoxygen> + <toc>KDE Libraries (Doxygen)</toc> + </ignoredoxygen> + </kdevdoctreeview> + <kdevfilecreate> + <useglobaltypes> + <type ext="c"/> + <type ext="h"/> + </useglobaltypes> + </kdevfilecreate> + <kdevfileview> + <groups> + <group pattern="*.h" name="Header files" /> + <group pattern="*.c" name="Source files" /> + </groups> + </kdevfileview> + <kdevdocumentation> + <projectdoc> + <docsystem>Doxygen Documentation Collection</docsystem> + <docurl>%{APPNAMELC}.tag</docurl> + </projectdoc> + </kdevdocumentation> +</kdevelop> diff --git a/languages/cpp/app_templates/chello/c-Makefile.am b/languages/cpp/app_templates/chello/c-Makefile.am new file mode 100644 index 00000000..02520f20 --- /dev/null +++ b/languages/cpp/app_templates/chello/c-Makefile.am @@ -0,0 +1,5 @@ +# not a GNU package. You can remove this line, if +# have all needed files, that a GNU package needs +AUTOMAKE_OPTIONS = foreign 1.4 + +SUBDIRS = src diff --git a/languages/cpp/app_templates/chello/c-Makefile.cvs b/languages/cpp/app_templates/chello/c-Makefile.cvs new file mode 100644 index 00000000..d1607023 --- /dev/null +++ b/languages/cpp/app_templates/chello/c-Makefile.cvs @@ -0,0 +1,8 @@ +default: all + +all: + aclocal + autoheader + automake + autoconf + diff --git a/languages/cpp/app_templates/chello/chello.kdevtemplate b/languages/cpp/app_templates/chello/chello.kdevtemplate new file mode 100644 index 00000000..8f2ea5dc --- /dev/null +++ b/languages/cpp/app_templates/chello/chello.kdevtemplate @@ -0,0 +1,253 @@ +# KDE Config File +[General] +Name=Simple Hello world program +Name[ca]=Simple programa Hello world +Name[da]=Simpelt Goddag verden program +Name[de]=Ein einfaches "Hello World"-Programm +Name[el]=Απλό πρόγραμμα Γεια σου Κόσμε +Name[es]=Programa «Hola mundo» sencillo +Name[et]=Lihtne "Tere, maailm" programm +Name[eu]="Kaixo mundua" programa sinplea +Name[fa]=برنامۀ سادۀ Hello world +Name[fr]=Programme « Bonjour monde » simple +Name[ga]=Ríomhchlár simplí "Hello World" +Name[gl]=Programa sinxelo Ola mundo +Name[hu]=Egyszerű Hello world program +Name[it]=Semplice programma di "Hello world" +Name[ja]=簡単な Hello world プログラム +Name[ms]=Program Hello World mudah +Name[nds]=En eenfach "Moin Welt"-Programm +Name[ne]=साधारण हेल्लो वोल्ड कार्यक्रम +Name[nl]=Eenvoudig 'Hello World' programma +Name[pl]=Prosty program witaj świecie +Name[pt]=Programa simples Olá Mundo +Name[pt_BR]=Programa simples Olá Mundo +Name[ru]=Простая программа Hello world +Name[sk]=Jednoduchý "Ahoj svet" program +Name[sl]=Preprost program Hello world +Name[sr]=Једноставан „Здраво свете“ програм +Name[sr@Latn]=Jednostavan „Zdravo svete“ program +Name[sv]=Enkelt Hello world-program +Name[tr]=Basit Merhaba dünya programı +Name[zh_CN]=简单的 Hello world 程序 +Name[zh_TW]=簡單的 Hello world 程式 +Icon=chello.png +Category=C +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 i 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 sinplea bat sortzen du C lengoaian +Comment[fa]=یک برنامۀ سادۀ Hello world در سی تولید میکند +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 nyelven +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]=सी मा साधारण हेल्लो वोल्ड कार्यक्रम उत्पन्न गर्दछ +Comment[nl]=Genereert een eenvoudig Hello World programma in C +Comment[pl]=Tworzy prosty program 'Witaj świecie' w języku C +Comment[pt]=Gera um programa simples de Olá mundo em C +Comment[pt_BR]=Gera um programa simples de 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-ju +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'de basit bir Merhaba Dünya programı yaratır. +Comment[zh_CN]=生成 C 语言的 Hello world 程序 +Comment[zh_TW]=產生 C 語言的 Hello world 程式 +FileTemplates=h,CStyle,c,CStyle +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.c +Archive=chello.tar.gz + +[LIBS] +Type = value +ValueType=QString +Value= OPT_LIBS +Comment= Optional libraries to link to. +Comment[ca]= Biblioteques opcionals per enllaçar. +Comment[da]= Mulige biblioteker at linke til. +Comment[de]= Optionale Bibliotheken, die eingebunden werden sollen. +Comment[el]= Προαιρετικές βιβλιοθήκες για σύνδεση με αυτές. +Comment[es]=Bibliotecas opcionales para enlazar. +Comment[et]=Täiendavad lingitavad teegid. +Comment[eu]= Estekatzeko aukerako liburutegiak. +Comment[fa]= کتابخانههای اختیاری برای پیوند کردن. +Comment[fr]=Bibliothèques optionnelles à lier. +Comment[ga]= Comhadlanna roghnacha ar féidir nascadh leo. +Comment[gl]= Librerías opcionais a enlazar. +Comment[hu]=Linkelési programkönyvtárak (opcionális). +Comment[it]= librerie opzionali da collegare. +Comment[ja]=リンクする他のライブラリ +Comment[nds]= Optschonaal Bibliotheken, na de linkt warrn schall +Comment[ne]= लिङ्क सिर्जना गर्न वैकल्पिक लाइब्रेरी +Comment[nl]=Optionele bibliotheken om naar te linken +Comment[pl]= Opcjonalne biblioteki, z którymi ma być łączony. +Comment[pt]= Bibliotecas opcionais com as quais compilar. +Comment[pt_BR]= Bibliotecas opcionais com as quais compilar. +Comment[ru]=Дополнительные библиотеки для сборки. +Comment[sk]=Voliteľné knižnice pre linkovanie. +Comment[sl]=Dodatne knjižnice, do katerih se naj poveže. +Comment[sr]=Опционе библиотеке за повезивање. +Comment[sr@Latn]=Opcione biblioteke za povezivanje. +Comment[sv]= Valfria bibliotek att länka till. +Comment[tr]=Bağlanılacak isteğe bağlı kütüphaneler. +Comment[zh_CN]=可选的链接库。 +Comment[zh_TW]=要連結的函式庫 +Default= -lm + +[INCLUDES] +Type = value +ValueType=QString +Value= OPT_INCS +Comment= Optional include path. +Comment[ca]= Ruta opcional per a incloure. +Comment[da]= Mulig include-sti. +Comment[de]= Optionaler Include-Pfad. +Comment[el]= Προαιρετική διαδρομή ενσωμάτωσης. +Comment[es]=Ruta opcional para incluir. +Comment[et]=Täiendavate päisefailide asukoht. +Comment[eu]= Aukerako goiburuen bide-izena. +Comment[fa]=include path اختیاری. +Comment[fr]=Chemin d'inclusion optionnel. +Comment[ga]= Conair roghnach ceanntásca. +Comment[gl]= Ruta opcional de cabeceiras. +Comment[hu]=Include fájlok könyvtárai (opcionális). +Comment[it]= percorso opzionale di inclusione. +Comment[ja]=ヘッダファイルを読み込む他のパス +Comment[nds]= Optschonaal Koppdatei-Padd +Comment[ne]= मार्ग सहितको विकल्प +Comment[nl]=Optioneel Include-pad +Comment[pl]= Opcjonalna ścieżka do plików dołączanych. +Comment[pt]= Localização opcional dos ficheiros de inclusão. +Comment[pt_BR]= Localização opcional dos ficheiros de inclusão. +Comment[ru]=Дополнительные пути для заголовочных файлов. +Comment[sk]=Voliteľná cesta pre include. +Comment[sl]=Neobvezna pot za vstavke. +Comment[sr]=Опциона путања за укључивања. +Comment[sr@Latn]=Opciona putanja za uključivanja. +Comment[sv]= Valfri sökväg till deklarationsfiler. +Comment[tr]=İsteğe bağlı include yolu. +Comment[zh_CN]=可选的包含路径。 +Comment[zh_TW]=引入檔路徑 +Default= -I/usr/include + +[CFLAGS] +Type = value +ValueType=QString +Value= CFLAGS +Comment= Optional CFLAGS to define in the makefile. +Comment[ca]= CFLAGS opcionals per a definir en el fitxer de make. +Comment[da]= Mulige CFLAGS at definere i makefile. +Comment[de]= Optionale CFLAGS, die im Makefile definiert werden. +Comment[el]= Προαιρετικές CFLAGS για ορισμό μέσα στο makefile. +Comment[es]=CFLAGS opcionales a definir en el makefile. +Comment[et]=Täiendavad Makefile'is defineeritavad CFLAGS'id. +Comment[eu]= Aukerako makefile-ean definitzeko CFLAGS-ak. +Comment[fa]= CFLAGS اختیاری برای تعریف در makefile. +Comment[fr]=CFLAGS optionnels à définir dans le Makefile. +Comment[ga]= CFLAGS roghnacha le socrú sa makefile. +Comment[gl]= CFLAGS opcionais a definir no makefile. +Comment[hu]=A Makefile-hoz definiálható CFLAGS információ (opcionális). +Comment[it]= CFLAGS opzionale da definire nel makefile. +Comment[ja]=Makefile に定義する他の CFLAGS +Comment[nds]= Optschonaal CFLAGS, de in de "Make"-Datei fastleggt warrt. +Comment[ne]= मेकफाइलमा परिभाषित गर्न CFLAGS विकल्प +Comment[nl]=Optionele CFLAGS om te definiëren in het makefile. +Comment[pl]= Opcjonalna wartość zmiennej CFLAGS do zdefiniowania w pliku makefile. +Comment[pt]= CFLAGS opcionais a definir na Makefile. +Comment[pt_BR]= CFLAGS opcionais a definir na Makefile. +Comment[ru]=Дополнительные параметры CFLAGS для Makefile. +Comment[sk]=Voliteľné nastavenie CFLAGS v makefile. +Comment[sl]=Dodaten CFLAGS za definicijo v datoteki makefile. +Comment[sr]=Опциона CFLAGS дефинисана у справифајлу. +Comment[sr@Latn]=Opciona CFLAGS definisana u spravifajlu. +Comment[sv]= Valfria CFLAGS att definiera i byggfilen. +Comment[tr]=Makefile'da tanımlanacak isteğe bağlı CFLAGS değerleri +Comment[zh_CN]=在 Makefile 中定义的可选 CFLAGS。 +Comment[zh_TW]=makefile 中定義的 CFLAGS +Default= + +[MGS] +Type=message +Comment=A simple C project was created in %{dest}. +Comment[ca]=A simple projecte en C ha estat creat en %{dest}. +Comment[da]=Et simpelt C projekt blev oprette i %{dest}. +Comment[de]=Ein einfaches C-Project wurde in %{dest} erstellt. +Comment[el]=Ένα απλό έργο C δημιουργήθηκε στο %{dest}. +Comment[es]=Un sencillo proyecto de C ha sido creado en %{dest}. +Comment[et]=Lihtne C-projekt loodi asukohta %{dest}. +Comment[eu]=C proiektu sinple bat sortu da hemen: %{dest}. +Comment[fa]=یک پروژۀ سادۀ سی در %{dest} ایجاد شد. +Comment[fr]=Un projet en langage C simple a été créé dans %{dest}. +Comment[ga]=Cruthaíodh tionscadal simplí C i %{dest} +Comment[gl]=Creouse un proxecto sinxelo en C en %{dest}. +Comment[hu]=Létrejött egy egyszerű C-projekt itt: %{dest}. +Comment[it]=È stato creato un semplice progetto C in %{dest}. +Comment[ja]=簡単な C プロジェクトを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en eenfach C-Projekt opstellt. +Comment[ne]=एउटा साधारण सी परियोजना %{dest} मा सिर्जना गरियो +Comment[nl]=Een eenvoudig C-project is aangemaakt in %{dest}. +Comment[pl]=Prosty projekt w języku C został utworzony w %{dest}. +Comment[pt]=Foi criado um programa simples "Olá mundo" em C em %{dest}. +Comment[pt_BR]=Foi criado um programa simples "Olá mundo" em C em %{dest}. +Comment[ru]=Простое приложение "Hello world" на C создано в %{dest} +Comment[sk]=Jednoduchý C projekt bol vytvorený v %{dest}. +Comment[sl]=Preprost projekt v C-ju je bil ustvarjen v %{dest}. +Comment[sr]=Једноставан пројекат у C-у направљен је у %{dest}. +Comment[sr@Latn]=Jednostavan projekat u C-u napravljen je u %{dest}. +Comment[sv]=Ett enkelt C-projekt skapades i %{dest}. +Comment[tr]=Basit bir C projesi %{dest} içinde oluşturuldu. +Comment[zh_CN]=在 %{dest} 中创建了简单的 C 工程。 +Comment[zh_TW]=一個簡單的 C 專案已建立在 %{dest}。 +Archive=chello.tar.gz + +[INCADMIN] +Type=include +File=%{kdevelop}/template-common/incadmin.kdevtemplate + +[GNU] +Type=include +File=%{kdevelop}/template-common/gnu.kdevtemplate + +[FILE1] +Type=install +Source=%{src}/app.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/c-Makefile.am +Dest=%{dest}/Makefile.am + +[FILE3] +Type=install +Source=%{src}/c-Makefile.cvs +Dest=%{dest}/Makefile.cvs + +[FILE4] +Type=install +Source=%{src}/configure.in +Dest=%{dest}/configure.in + +[MkDir1] +Type=mkdir +Dir=%{dest}/src + +[FILE5] +Type=install +Source=%{src}/src-Makefile.am +Dest=%{dest}/src/Makefile.am + +[FILE6] +Type=install +Source=%{src}/main.c +Dest=%{dest}/src/%{APPNAMELC}.c + diff --git a/languages/cpp/app_templates/chello/chello.png b/languages/cpp/app_templates/chello/chello.png Binary files differnew file mode 100644 index 00000000..888d4f13 --- /dev/null +++ b/languages/cpp/app_templates/chello/chello.png diff --git a/languages/cpp/app_templates/chello/configure.in b/languages/cpp/app_templates/chello/configure.in new file mode 100644 index 00000000..3715e0c8 --- /dev/null +++ b/languages/cpp/app_templates/chello/configure.in @@ -0,0 +1,10 @@ +AC_INIT(configure.in) + +AM_CONFIG_HEADER(config.h) +AM_INIT_AUTOMAKE(%{APPNAMELC}, %{VERSION}) + +AC_LANG_C +AC_PROG_CC +AM_PROG_LIBTOOL + +AC_OUTPUT(Makefile src/Makefile) diff --git a/languages/cpp/app_templates/chello/main.c b/languages/cpp/app_templates/chello/main.c new file mode 100644 index 00000000..3ac8c330 --- /dev/null +++ b/languages/cpp/app_templates/chello/main.c @@ -0,0 +1,15 @@ +%{C_TEMPLATE} + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <stdio.h> +#include <stdlib.h> + +int main(int argc, char *argv[]) +{ + printf("Hello, world!\n"); + + return EXIT_SUCCESS; +} diff --git a/languages/cpp/app_templates/chello/src-Makefile.am b/languages/cpp/app_templates/chello/src-Makefile.am new file mode 100644 index 00000000..51e7609f --- /dev/null +++ b/languages/cpp/app_templates/chello/src-Makefile.am @@ -0,0 +1,8 @@ +bin_PROGRAMS = %{APPNAMELC} +%{APPNAMELC}_SOURCES = %{APPNAMELC}.c + +# set the include path found by configure +INCLUDES= $(all_includes) + +# the library search path. +%{APPNAMELC}_LDFLAGS = $(all_libraries) |