From 41ac47d732eed8392d60d0f6773e5a279d49b999 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 13:36:50 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../HelloWorldCCMakeProject/src/CMakeLists.txt | 34 ++++++++++++ .../HelloWorldCCMakeProject/src/main.c | 21 ++++++++ .../HelloWorldCCMakeProject/template.properties | 31 +++++++++++ .../HelloWorldCCMakeProject/template.xml | 61 ++++++++++++++++++++++ .../HelloWorldCPPCMakeProject/src/CMakeLists.txt | 34 ++++++++++++ .../HelloWorldCPPCMakeProject/src/main.cpp | 21 ++++++++ .../HelloWorldCPPCMakeProject/template.properties | 31 +++++++++++ .../HelloWorldCPPCMakeProject/template.xml | 61 ++++++++++++++++++++++ 8 files changed, 294 insertions(+) create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/CMakeLists.txt create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/main.c create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.properties create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.xml create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/CMakeLists.txt create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/main.cpp create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.properties create mode 100644 plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.xml (limited to 'plugins/org.yocto.cmake.managedbuilder/templates') diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/CMakeLists.txt b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/CMakeLists.txt new file mode 100644 index 0000000..e6482a7 --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/CMakeLists.txt @@ -0,0 +1,34 @@ +cmake_minimum_required (VERSION 2.8.1) + +######## Project settings ######## +PROJECT($(projectName)) +SET(LICENSE "TBD") + +######## Build and include settings ######## +include_directories( + inc +) + +link_directories( + ${LINK_DIRECTORIES} +) + + +file(GLOB SOURCES + "src/*.c" +) + +add_executable( + $(projectName) + + ${SOURCES} +) + +TARGET_LINK_LIBRARIES( + $(projectName) +) + +######## Install targets ######## +INSTALL(TARGETS $(projectName) + RUNTIME DESTINATION usr/bin +) diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/main.c b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/main.c new file mode 100644 index 0000000..78b4e23 --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/src/main.c @@ -0,0 +1,21 @@ +/** @mainpage $(projectName) - $(vendor) + * + * @author $(author) <$(email)> + * @version $(projectVersion) +**/ + + +#include +/** + * Main class of project $(projectName) + * + * @param argc the number of arguments + * @param argv the arguments from the commandline + * @returns exit code of the application + */ +int main(int argc, char **argv) { + // print a greeting to the console + printf("Hello World!\n"); + + return 0; +} diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.properties b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.properties new file mode 100644 index 0000000..bc37c1c --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.properties @@ -0,0 +1,31 @@ +#/******************************************************************************* +# * Copyright (c) 2013 BMW Car IT GmbH. +# * All rights reserved. This program and the accompanying materials +# * are made available under the terms of the Eclipse Public License v1.0 +# * which accompanies this distribution, and is available at +# * http://www.eclipse.org/legal/epl-v10.html +# * +# * Contributors: +# * BMW Car IT - initial implementation +# *******************************************************************************/ + +# Template +template.vendor=Yocto Project +template.name=Hello World C CMake Project +template.description=A simple C hello world project based on CMake + +# General Settings +general.name=General settings +general.description=Author properties of the project +general.author.name=Author +general.author.description=The author of the project +general.author.default=anonymous +general.email.name=Email address +general.email.description=The email address of the project's author +general.email.default=anony@mo.us +general.vendor.name=Vendor +general.vendor.description=The vendor of the project +general.vendor.default=None +general.projectVersion.name=Version +general.projectVersion.description=The version of the project +general.projectVersion.default=1.0.0 diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.xml b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.xml new file mode 100644 index 0000000..7c3774e --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCCMakeProject/template.xml @@ -0,0 +1,61 @@ + + diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/CMakeLists.txt b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/CMakeLists.txt new file mode 100644 index 0000000..0436959 --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/CMakeLists.txt @@ -0,0 +1,34 @@ +cmake_minimum_required (VERSION 2.8.1) + +######## Project settings ######## +PROJECT($(projectName)) +SET(LICENSE "TBD") + +######## Build and include settings ######## +include_directories( + inc +) + +link_directories( + ${LINK_DIRECTORIES} +) + + +file(GLOB SOURCES + "src/*.cpp" +) + +add_executable( + $(projectName) + + ${SOURCES} +) + +TARGET_LINK_LIBRARIES( + $(projectName) +) + +######## Install targets ######## +INSTALL(TARGETS $(projectName) + RUNTIME DESTINATION usr/bin +) diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/main.cpp b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/main.cpp new file mode 100644 index 0000000..78b4e23 --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/src/main.cpp @@ -0,0 +1,21 @@ +/** @mainpage $(projectName) - $(vendor) + * + * @author $(author) <$(email)> + * @version $(projectVersion) +**/ + + +#include +/** + * Main class of project $(projectName) + * + * @param argc the number of arguments + * @param argv the arguments from the commandline + * @returns exit code of the application + */ +int main(int argc, char **argv) { + // print a greeting to the console + printf("Hello World!\n"); + + return 0; +} diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.properties b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.properties new file mode 100644 index 0000000..99e7047 --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.properties @@ -0,0 +1,31 @@ +#/******************************************************************************* +# * Copyright (c) 2013 BMW Car IT GmbH. +# * All rights reserved. This program and the accompanying materials +# * are made available under the terms of the Eclipse Public License v1.0 +# * which accompanies this distribution, and is available at +# * http://www.eclipse.org/legal/epl-v10.html +# * +# * Contributors: +# * BMW Car IT - initial implementation +# *******************************************************************************/ + +# Template +template.vendor=Yocto Project +template.name=Hello World C++ CMake Project +template.description=A simple C++ hello world project based on CMake + +# General Settings +general.name=General settings +general.description=Author properties of the project +general.author.name=Author +general.author.description=The author of the project +general.author.default=anonymous +general.email.name=Email address +general.email.description=The email address of the project's author +general.email.default=anony@mo.us +general.vendor.name=Vendor +general.vendor.description=The vendor of the project +general.vendor.default=None +general.projectVersion.name=Version +general.projectVersion.description=The version of the project +general.projectVersion.default=1.0.0 diff --git a/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.xml b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.xml new file mode 100644 index 0000000..a664d8a --- /dev/null +++ b/plugins/org.yocto.cmake.managedbuilder/templates/projecttemplates/HelloWorldCPPCMakeProject/template.xml @@ -0,0 +1,61 @@ + + -- cgit v1.2.3-54-g00ecf