[yocto] [PATCH 09/13] plugins/cmake: Added a new category for CMake projects

Atanas Gegov atanas.gegov.oss at gmail.com
Thu May 23 01:39:48 PDT 2013


From: Atanas Gegov <atanas.gegov at bmw-carit.de>

Yocto CMake template projects should use this
category. It appears in the new project wizard
additionally to the existing category "Yocto
Project ADT CMake Project".
---
 .../OSGI-INF/l10n/bundle.properties                |    3 +++
 plugins/org.yocto.cmake.managedbuilder/plugin.xml  |    8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties b/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties
index e5db35f..d5d6dfe 100644
--- a/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties
+++ b/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties
@@ -12,6 +12,9 @@
 Bundle-Vendor = yoctoproject.org
 Bundle-Name = Yocto CMake Plugin
 
+# Artefact type
+yocto.cmake.artefactType=Yocto Project ADT CMake Project
+
 # Extension name
 extension.name=Yocto CMake Managed Builder
 
diff --git a/plugins/org.yocto.cmake.managedbuilder/plugin.xml b/plugins/org.yocto.cmake.managedbuilder/plugin.xml
index df1963b..af26e18 100644
--- a/plugins/org.yocto.cmake.managedbuilder/plugin.xml
+++ b/plugins/org.yocto.cmake.managedbuilder/plugin.xml
@@ -2,6 +2,14 @@
 <?eclipse version="3.4"?>
 <plugin>
     <extension
+        point="org.eclipse.cdt.managedbuilder.core.buildProperties">
+        <propertyValue
+            id="org.yocto.sdk.ide.buildArtefact.cmake.exe"
+            name="%yocto.cmake.artefactType"
+            property="org.eclipse.cdt.build.core.buildArtefactType">
+        </propertyValue>
+    </extension>
+    <extension
         id="org.yocto.cmake.managedbuilder"
         name="%extension.name"
         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
-- 
1.7.9.5




More information about the yocto mailing list