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/cmakelibc/CMakeLists.txt | 7 ++ .../cpp/app_templates/cmakelibc/CMakeLists.txt.src | 19 +++ languages/cpp/app_templates/cmakelibc/Makefile.am | 16 +++ languages/cpp/app_templates/cmakelibc/cmakelibc | 7 ++ .../app_templates/cmakelibc/cmakelibc.kdevtemplate | 139 +++++++++++++++++++++ .../cpp/app_templates/cmakelibc/cmakelibc.png | Bin 0 -> 10060 bytes languages/cpp/app_templates/cmakelibc/lib.c | 13 ++ languages/cpp/app_templates/cmakelibc/lib.h | 7 ++ languages/cpp/app_templates/cmakelibc/test.c | 8 ++ 9 files changed, 216 insertions(+) create mode 100644 languages/cpp/app_templates/cmakelibc/CMakeLists.txt create mode 100644 languages/cpp/app_templates/cmakelibc/CMakeLists.txt.src create mode 100644 languages/cpp/app_templates/cmakelibc/Makefile.am create mode 100644 languages/cpp/app_templates/cmakelibc/cmakelibc create mode 100644 languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate create mode 100644 languages/cpp/app_templates/cmakelibc/cmakelibc.png create mode 100644 languages/cpp/app_templates/cmakelibc/lib.c create mode 100644 languages/cpp/app_templates/cmakelibc/lib.h create mode 100644 languages/cpp/app_templates/cmakelibc/test.c (limited to 'languages/cpp/app_templates/cmakelibc') diff --git a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt new file mode 100644 index 00000000..fad51df5 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt @@ -0,0 +1,7 @@ +PROJECT(%{APPNAMELC}) + +#if you don't want the full compiler output, remove the following line +SET(CMAKE_VERBOSE_MAKEFILE ON) + +SUBDIRS(src) + diff --git a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt.src b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt.src new file mode 100644 index 00000000..d2fabc7a --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt.src @@ -0,0 +1,19 @@ +#this is just a basic CMakeLists.txt, for more information see the cmake manpage + +#add definitions, compiler switches, etc. +ADD_DEFINITIONS(-Wall -O2) + +#build a shared library +ADD_LIBRARY(%{APPNAMELC} SHARED %{APPNAMELC}.c) + +#for testing the shared library you probably need some test app too +ADD_EXECUTABLE(%{APPNAMELC}test %{APPNAMELC}test.c) + +#need to link to some other libraries ? just add them here +TARGET_LINK_LIBRARIES(%{APPNAMELC}test %{APPNAMELC}) + +#add an install target here +#INSTALL_FILES(...) +#INSTALL_PROGRAMS(...) +#INSTALL_TARGET(...) + diff --git a/languages/cpp/app_templates/cmakelibc/Makefile.am b/languages/cpp/app_templates/cmakelibc/Makefile.am new file mode 100644 index 00000000..c10e704a --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/Makefile.am @@ -0,0 +1,16 @@ +dataFiles = test.c lib.h lib.c cmakelibc.png CMakeLists.txt CMakeLists.txt.src +templateName = cmakelibc + +### 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 ${templateName}.png + +CLEANFILES = *.tar.gz diff --git a/languages/cpp/app_templates/cmakelibc/cmakelibc b/languages/cpp/app_templates/cmakelibc/cmakelibc new file mode 100644 index 00000000..ae927b61 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/cmakelibc @@ -0,0 +1,7 @@ +# KDE Config File +[General] +Name=A shared library template +Icon=cmakelibc.png +Category=C/CMake based projects +Comment=Generates a shared library template including a test application in C. It compiles using the CMake build tool instead of the automake/autoconf/libtool combination. It requires cmake 2.1 (available from cmake cvs) or the upcoming cmake 2.2 release. +ShowFilesAfterGeneration=src/%{APPNAMELC}.c diff --git a/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate b/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate new file mode 100644 index 00000000..cd3783f7 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/cmakelibc.kdevtemplate @@ -0,0 +1,139 @@ +# KDE Config File +[General] +Name=A shared library template +Name[ca]=Una plantilla de biblioteca compartida +Name[da]=En delt biblitekskabelon +Name[de]=Vorlage für eine Shared Library +Name[el]=Ένα πρότυπο κοινόχρηστης βιβλιοθήκης +Name[es]=Una plantilla de biblioteca compartida +Name[et]=Jagatud teegi mall +Name[eu]=Liburutegi partekatu baten txantiloia +Name[fa]=قالب کتابخانۀ مشترک +Name[fr]=Un modèle de bibliothèque partagée +Name[ga]=Teimpléad comhleabharlainne +Name[gl]=Plantilla de biblioteca compartida +Name[hu]=Osztott programkönyvtár-sablon +Name[it]=Un modello di libreria condivisa +Name[ja]=共有ライブラリのテンプレート +Name[nds]=Vörlaag för deelt Bibliotheek +Name[ne]=साझेदारी गरिएको लाइब्रेरी टेम्प्लेट +Name[nl]=Een gedeelde-bibliotheek-sjabloon +Name[pl]=Szablon współdzielonej biblioteki +Name[pt]=Um modelo de uma biblioteca dinâmica +Name[pt_BR]=Um modelo de uma biblioteca dinâmica +Name[ru]=Шаблон разделяемой библиотеки +Name[sk]=Šablóna pre zdieľanú knižnicu +Name[sl]=Predloga deljene knjižnice +Name[sr]=Шаблон дељене библиотеке +Name[sr@Latn]=Šablon deljene biblioteke +Name[sv]=En mall för ett delat bibliotek +Name[tr]=Bir paylaşılan kütüphane şablonu +Name[zh_CN]=共享库模板 +Name[zh_TW]=共享函式庫樣本 +Icon=cmakelibc.png +Category=C/CMake based projects +FileTemplates=h,CStyle,c,CStyle +Comment=Generates a shared library template including a test application in C. It compiles using the CMake build tool instead of the automake/autoconf/libtool combination. It requires cmake 2.1 (available from cmake cvs) or the upcoming cmake 2.2 release. +Comment[ca]=Genera una plantilla de biblioteca compartida incloguen una aplicació de prova en C. Es compila usant l'eina de construcció CMake en comptes de la combinació automake/autoconf/libtool. Requereix cmake 2.1 (disponible en el cvs de cmake) o la propera versió 2.2. +Comment[da]=Genererer en delt skabelon for et bibliotek inklusive et testprogram i C. Det kompilerer ved brug af CMake's byggeværktøj i stedet for automake/autoconf/libtool kombinationen. Det kræver cmake 2.1 (tilgængelig fra cmake cvs) eller den fremtidige cmake 2.2 udgivelse. +Comment[de]=Erstellt eine Vorlage für eine Shared Library inklusive einer Testanwendung in C. Der Kompiliervorgang wird mit CMake anstelle der Kombination automake/autoconf/libtool durchgeführt und erfordert CMake 2.1 (das über das CVS-Archiv von CMake verfügbar ist) oder die kommende Version 2.2 von CMake. +Comment[el]=Δημιουργεί ένα πρότυπο κοινόχρηστης βιβλιοθήκης που περιλαμβάνει και μια εφαρμογή δοκιμής σε C. Μεταγλωττίζεται χρησιμοποιώντας το εργαλείο κατασκευής CMake στη θέση του συνδυασμού automake/autoconf/libtool. Χρειάζεται το cmake 2.1 (διαθέσιμο από το cmake cvs) ή την επερχόμενη έκδοση cmake 2.2. +Comment[es]=Genera una plantilla de biblioteca compartida incluyendo una aplicación de prueba en C. Se compila usando la herramienta CMake en lugar de la combinación automake/autoconf/libtool. Requiere cmake 2.1 (disponible en el cvs de cmake) o la próxima cmake 2.2. +Comment[et]=Jagatud teegi malli loomine, kaasa arvatud testrakendus C-s. See kompileeritakse CMake'i ehitamistööriistaga, mitte automake/autoconf/libtool'i kombinatsiooniga. Selleks on vajalik CMake 2.1 (saadaval CMake'i CVSis) või peatne CMake'i versioon 2.2. +Comment[eu]=Liburutegi partekatu baten txantiloia sortzen du C lengoaian idatzitako probarako aplikazio batekin. CMake tresna erabiliz konpilatzen du automake/autoconf/libtool taldea erabili ordez. cmake 2.1 behar du (cmake cvs-an eskuragarri) edo hurrengo cmake 2.2. +Comment[fa]=یک قالب کتابخانۀ مشترک شامل کاربرد آزمایشی در سی تولید می‌کند. با استفاده از ابزار ساختن CMake به جای ترکیب automake/autoconf/libtool، ترجمه می‌کند. به cmake 2.1 )از cmake cvs قابل دسترس است( یا نشر cmake 2.2 در آیندۀ نزدیک، نیاز دارد. +Comment[fr]=Génère un modèle de bibliothèque partagée comprenant une application de test en C. La compilation s'effectue à l'aide de l'outil de construction CMake au lieu de la combinaison automake / autoconf / libtool. Nécessite CMake 2.1 (disponible sur le CVS de CMake) ou la version 2.2 de CMake à venir. +Comment[ga]=Cruthaigh teimpléad comhleabharlainne le feidhmchlár tástála i C. Tiomsaítear é le huirlis tógála CMake in ionad automake/autoconf/libtool. Tá cmake 2.1 de dhíth (ar fáil ó cmake cvs) nó leagan 2.2 cmake atá le teacht. +Comment[gl]=Xera unha plantilla de biblioteca compartida e máis unha aplicación de proba en C. Compílase usando a ferramenta CMake no lugar da combinación automake/autoconf/libtool. Require cmake 2.1 (dispoñíbel no cvs de cmake) ou a próxima versión cmake 2.2. +Comment[hu]=Létrehoz egy alap osztott programkönyvtárat és egy hozzá tartozó tesztprogramot C nyelven. A fordítási környezet a CMake-re fog alapulni (az automake/autoconf/libtool kombináció helyett). A CMake 2.1 (elérhető a CMake CVS-ben) vagy a rövidesen megjelenő CMake 2.2 szükséges hozzá. +Comment[it]=Genera un modello di libreria condivisa includente un'applicazione test in C. Compila usando CMake invece della combinazione automake/autoconf/libtool. Richiede cmake 2.1 (disponibile dal CVS di cmake) o la versione a venire di cmake 2.2. +Comment[ja]=共有ライブラリのテンプレートを作成します。同時に C でテストアプリケーションも作成します。コンパイルには、automake/autoconf/libtool ではなく CMake (2.1 または 2.2) が必要です。 +Comment[nds]=Stellt en Vörlaag för en deelt Bibliotheek mit en Testprogramm in C op. Dat Kompileren bruukt ansteed vun de "automake/autoconf/libtool"-Kombinatschoon "CMake" in de Verschoon 2.1 (ut dat cmake-CVS) oder 2.2 (de tokamen Utgaav). +Comment[ne]=C मा परीक्षण अनुप्रयोग सहितको साझेदारी टेम्प्लेट उत्पन्न गर्दछ । यसले automake/autoconf/libtool संयोजनको सट्टामा CMake निर्माण उपकरण प्रयोग गरेर कम्पाइल गर्दछ । यसका लागि cmake 2.1 (cmake cvs बाट उपलब्ध हुन्छ) वा अब आउने cmake 2.2 उत्पादन आवश्यक पर्दछ । +Comment[nl]=Genereert een gedeelde-bibliotheek-sjabloon inclusief een testtoepassing in C. Het compileert met behulp van de CMake build tool in plaats van de combinatie automake/autoconf/libtool. Het vereist cmake 2.1 (beschikbaar in het cvs van cmake) of de aankomende cmake 2.2-uitgave. +Comment[pl]=Generuje szablon współdzielonej biblioteki zawierający także program testowy w języku C. Kompilacja odbywa sie za pomocą narzędzia CMake zamiast kombinacji automake/autoconf/libtool. Wymaga cmake 2.1 (dostępnego z cvs-u cmake) lub nadchodzącej wersji 2.2. +Comment[pt]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2. +Comment[pt_BR]=Gera um modelo de uma biblioteca dinâmica, que inclui uma aplicação de testes em C. Ele é compilado com a ferramenta CMake em vez da combinação automake/autoconf/libtool. Necessita do cmake 2.1 (disponível no CVS do 'cmake') ou da próxima versão cmake 2.2. +Comment[ru]=Создание шаблона разделяемой библиотеки, включая тестовую программу на C. Для сборки потребуется CMake вместо комбинации automake/autoconf/libtool. Потребуется cmake 2.1 (из CVS cmake) или релиз cmake 2.2. +Comment[sk]=Vygeneruje šablónu pre zdieľanú knižnicu vrátane testovacej aplikácie v C.Kompiluje sa pomocou nástroja CMake namiesto kombinácie automake/autoconf/libtool.Vyžaduje cmake 2.1 (dostupné v cmake cvs) alebo nadchádzajúci cmake 2.2 release. +Comment[sl]=Ustvari predlogo za deljeno knjižnico in testni program v C. Za prevajanje se namesto kombinacije automake/autoconf/libtool uporabi orodje za gradnjo CMake. Potreben je CMake 2.1 ali CMake 2.2. +Comment[sr]=Прави шаблон дељене библиотеке, укључујући и пробни програм у C-у. Преводи се помоћу алата CMake уместо комбинације Automake/Autoconf/Libtool. Захтева CMake 2.1 (доступан у CVS-у CMake-а) или надолазеће издање CMake 2.2. +Comment[sr@Latn]=Pravi šablon deljene biblioteke, uključujući i probni program u C-u. Prevodi se pomoću alata CMake umesto kombinacije Automake/Autoconf/Libtool. Zahteva CMake 2.1 (dostupan u CVS-u CMake-a) ili nadolazeće izdanje CMake 2.2. +Comment[sv]=Skapar en mall för ett delat bibliotek inklusive ett testprogram i C. Det kompileras med byggverktyget CMake istället för kombinationen automake/autoconf/libtool. Det kräver cmake 2.1 (tillgängligt från cmake CVS-arkiv) eller den förestående utgåvan av cmake 2.2. +Comment[tr]=C'de bir test uygulaması içeren bir paylaşılan kütüphane uygulaması yaratır. automake/autoconf/libtool birleşimini değil, CMake aracını kullanarak derlenir. cmake 2.1( cmake cvs'inden edinilebilir) veya yakında gelecek olan 2.2 sürümüne ihtiyaç duyar. +Comment[zh_CN]=生成一个共享库模板,其中包含一个 C 的测试应用程序。该模板使用 CMake 编译工具编译,而不是使用 automake/autoconf/libtool 的组合。该模板需要 cmake 2.1 (可从 cmake cvs 中获得)或即将发布的 cmake 2.2 版本。 +Comment[zh_TW]=產生一個共享函式庫樣本,包括一個 C 的測試程式。它要用 CMake 建立工具來編譯,而不是用 automake/autoconf/libtool 等。它需要 cmake 2.1(可以從 cmake cvs 中取得),或是以後的版本。 +ShowFilesAfterGeneration=%{dest}/src/%{APPNAMELC}.c +Archive=cmakelibc.tar.gz + +[MkDir1] +Type=mkdir +Dir=%{dest}/src + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/CMakeLists.txt +Dest=%{dest}/CMakeLists.txt + +[FILE2] +Type=install +EscapeXML=true +Source=%{src}/CMakeLists.txt.src +Dest=%{dest}/src/CMakeLists.txt + +[FILE3] +Type=install +EscapeXML=true +Source=%{src}/test.c +Dest=%{dest}/src/%{APPNAMELC}test.c + +[FILE4] +Type=install +EscapeXML=true +Source=%{src}/lib.h +Dest=%{dest}/src/%{APPNAMELC}.h + +[FILE5] +Type=install +EscapeXML=true +Source=%{src}/lib.c +Dest=%{dest}/src/%{APPNAMELC}.c + +[CMAKE] +Type=finishcmd +Command=cmake ./ -GKDevelop3 +Directory=%{dest} + +[MSG] +Type=message +Comment=A CMake based shared library template was created in %{dest} +Comment[ca]=Una plantilla de biblioteca compartida basada en CMake ha estat creada en %{dest} +Comment[da]=En CMake baseret skabelon for et delt bibliotek blev oprettet i %{dest} +Comment[de]=Eine auf CMake basierende Vorlage für eine Shared Library wurde in %{dest} erstellt. +Comment[el]=Ένα πρότυπο κοινόχρηστης βιβλιοθήκης βασισμένο στο CMake δημιουργήθηκε στο %{dest} +Comment[es]=Una plantilla de biblioteca compartida basada en CMake ha sido creada en %{dest} +Comment[et]=Jagatud teegi mall CMake'i põhjal loodi asukohta %{dest} +Comment[eu]=CMake-en oinarritutako liburutegi partekatu baten txantiloia sortu da hemen: %{dest} +Comment[fa]=یک قالب کتابخانۀ مشترک بر مبنای CMake در %{dest} ایجاد شد +Comment[fr]=Un modèle de bibliothèque partagée basée sur CMake a été créé dans %{dest} +Comment[ga]=Cruthaíodh teimpléad comhleabharlainne bunaithe ar CMake i %{dest} +Comment[gl]=Creouse una plantilla de biblioteca compartida baseada en CMake en %{dest} +Comment[hu]=Létrejött egy CMake-alapú osztott programkönyvtár-sablon itt: %{dest} +Comment[it]=È stato creato un modello di librerie condivise basate su CMake in %{dest} +Comment[ja]=CMake ベースの共有ライブラリテンプレートを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en op CMake opbuut Vörlaag för en deelt Bibliotheek opstellt +Comment[ne]=एउटा CMake आधारित साझेदारी लाइब्रेरी टेम्प्लेट %{dest} मा सिर्जना गरियो +Comment[nl]=Een op Cmake gebaseerde bibliotheeksjabloon is aangemaakt in %{dest} +Comment[pl]=Używający CMake szablon biblioteki współdzielonej został utworzony w %{dest} +Comment[pt]=Foi criado um modelo de uma biblioteca dinâmica do CMake em %{dest} +Comment[pt_BR]=Foi criado um modelo de uma biblioteca dinâmica do CMake em %{dest} +Comment[ru]=Основанный на CMake шаблон разделяемой библиотеки создан в %{dest} +Comment[sk]=Šablóna zdieľanej knižnice založenej na CMake bola vytvorená v %{dest} +Comment[sl]=Predloga deljene knjižnice, ki uporablja CMake, je bila ustvarjena v %{dest} +Comment[sr]=Шаблон дељене библиотеке на основу CMake-а направљен је у %{dest} +Comment[sr@Latn]=Šablon deljene biblioteke na osnovu CMake-a napravljen je u %{dest} +Comment[sv]=En CMake-baserad mall för ett delat bibliotek skapades i %{dest} +Comment[tr]=CMake tabanlı paylaşılan kütüphane şablonu %{dest} içinde yaratılmıştır. +Comment[zh_CN]=在 %{dest} 中创建了基于 CMake 的共享库 +Comment[zh_TW]=以 CMake 為基礎的共享函式庫樣本已建立在 %{dest} diff --git a/languages/cpp/app_templates/cmakelibc/cmakelibc.png b/languages/cpp/app_templates/cmakelibc/cmakelibc.png new file mode 100644 index 00000000..158d3ce7 Binary files /dev/null and b/languages/cpp/app_templates/cmakelibc/cmakelibc.png differ diff --git a/languages/cpp/app_templates/cmakelibc/lib.c b/languages/cpp/app_templates/cmakelibc/lib.c new file mode 100644 index 00000000..4d285882 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/lib.c @@ -0,0 +1,13 @@ + +#include +#include + +#include "%{APPNAMELC}.h" + + +void do_something() +{ + printf("Hello world !\n"); +} + + diff --git a/languages/cpp/app_templates/cmakelibc/lib.h b/languages/cpp/app_templates/cmakelibc/lib.h new file mode 100644 index 00000000..1b326544 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/lib.h @@ -0,0 +1,7 @@ +#ifndef %{APPNAMELC}_H +#define %{APPNAMELC}_H + +void do_something(); + + +#endif diff --git a/languages/cpp/app_templates/cmakelibc/test.c b/languages/cpp/app_templates/cmakelibc/test.c new file mode 100644 index 00000000..fb13e866 --- /dev/null +++ b/languages/cpp/app_templates/cmakelibc/test.c @@ -0,0 +1,8 @@ + +#include "%{APPNAMELC}.h" + +int main(int argc, char** argv) +{ + do_something(); + return 0; +} -- cgit v1.2.1