From: Atanas Gegov <atanas.ge...@bmw-carit.de> Defined a projectType that uses the new project category. It takes the CMake toolchain to build the project in a debug configuration. It is possible to add further configurations (e.g. "Release" with other option settings for the configure tool). --- .../OSGI-INF/l10n/bundle.properties | 4 + plugins/org.yocto.cmake.managedbuilder/plugin.xml | 98 ++++++++++++++++++++ 2 files changed, 102 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 d5d6dfe..b2c067f 100644 --- a/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties +++ b/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties @@ -24,6 +24,10 @@ builder.name=Yocto CMake Environment Builder # Toolchain toolchain=Yocto CMake Build (Toolchain) +# Configuration names +config.debug.name=Debug +config.debug.description=Builds a version of the project which is ready for debugging + # CMake configure cmakeconfigure.name=CMake configure cmakeconfigure.options=CMake Options diff --git a/plugins/org.yocto.cmake.managedbuilder/plugin.xml b/plugins/org.yocto.cmake.managedbuilder/plugin.xml index af26e18..8718ae6 100644 --- a/plugins/org.yocto.cmake.managedbuilder/plugin.xml +++ b/plugins/org.yocto.cmake.managedbuilder/plugin.xml @@ -164,5 +164,103 @@ superClass="cdt.managedbuild.tool.gnu.c.linker"> </tool> </toolChain> + <projectType + buildArtefactType="org.yocto.sdk.ide.buildArtefact.cmake.exe" + id="org.yocto.sdk.ide.projectTypeCMake" + isAbstract="false" + isTest="false"> + <configuration + buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" + buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" + cleanCommand="rm -rf" + description="%config.debug.description" + id="org.yocto.cmake.managedbuilder.configuration.gnu.exe.debug" + name="%config.debug.name" + parent="cdt.managedbuild.config.gnu.base"> + <toolChain + id="org.yocto.cmake.managedbuilder.toolchain.gnu.exe.debug" + superClass="org.yocto.cmake.managedbuilder.toolchain.gnu.exe" + supportsManagedBuild="true"> + <targetPlatform + id="org.yocto.cmake.managedbuilder.target.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.target.gnu.exe"> + </targetPlatform> + <builder + cleanBuildTarget="clean" + id="org.yocto.cmake.managedbuilder.builder.gnu.exe.debug" + isVariableCaseSensitive="false" + superClass="org.yocto.cmake.managedbuilder.builder.gnu.exe"> + </builder> + <tool + commandLinePattern="${COMMAND} ${FLAGS} " + id="org.yocto.cmake.managedbuilder.cmakeconfigure.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.gnu.exe"> + <option + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.sourcepath.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.sourcepath"> + </option> + <option + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.toolchaincmakefilepath.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.toolchaincmakefilepath"> + </option> + <option + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.debugsymbols.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.debugsymbols"> + </option> + <option + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.verbosemakefile.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.verbosemakefile"> + </option> + <option + defaultValue="FALSE" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.enabledevwarn.gnu.exe.debug" + isAbstract="false" + resourceFilter="all" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.enabledevwarn" + valueType="boolean"> + </option> + <option + defaultValue="TRUE" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.suppressdevwarn.gnu.exe.debug" + isAbstract="false" + resourceFilter="all" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.suppressdevwarn" + valueType="boolean"> + </option> + <option + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.otherflags.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.cmakeconfigure.options.otherflags"> + </option> + </tool> + <tool + id="org.yocto.cmake.managedbuilder.compiler.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.compiler.gnu.exe"> + </tool> + <tool + id="org.yocto.cmake.managedbuilder.linker.gnu.exe.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.linker.gnu.exe"> + </tool> + <tool + id="org.yocto.cmake.managedbuilder.compiler.gnu.exe.c.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.compiler.gnu.c.exe"> + </tool> + <tool + id="org.yocto.cmake.managedbuilder.linker.gnu.exe.c.debug" + isAbstract="false" + superClass="org.yocto.cmake.managedbuilder.linker.gnu.c.exe"> + </tool> + </toolChain> + </configuration> + </projectType> </extension> </plugin> -- 1.7.9.5 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto