From: Atanas Gegov <atanas.ge...@bmw-carit.de> Defined a tool using the cmake command with some options and a free text-field for custom options. This tool will become part of the builder toolchain for building CMake projects. --- .../OSGI-INF/l10n/bundle.properties | 14 +++ plugins/org.yocto.cmake.managedbuilder/plugin.xml | 102 ++++++++++++++++++++ 2 files changed, 116 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 86125e4..ff9b374 100644 --- a/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties +++ b/plugins/org.yocto.cmake.managedbuilder/OSGI-INF/l10n/bundle.properties @@ -11,3 +11,17 @@ Bundle-Vendor = yoctoproject.org Bundle-Name = Yocto CMake Plugin + +# Extension name +extension.name=Yocto CMake Managed Builder + +# CMake configure +cmakeconfigure.name=CMake configure +cmakeconfigure.options=CMake Options +cmakeconfigure.sourcepath=Relative source path +cmakeconfigure.toolchaincmakefilepath=Relative toolchain.cmake path +cmakeconfigure.debugsymbols=Compile with debug symbols +cmakeconfigure.verbosemakefile=Generate verbose Makefiles +cmakeconfigure.wdev=Enable developer warnings (-Wdev) +cmakeconfigure.wnodev=Suppress developer warnings (-Wno-dev) +cmakeconfigure.otherflags=Other flags diff --git a/plugins/org.yocto.cmake.managedbuilder/plugin.xml b/plugins/org.yocto.cmake.managedbuilder/plugin.xml index f422d55..5b56628 100644 --- a/plugins/org.yocto.cmake.managedbuilder/plugin.xml +++ b/plugins/org.yocto.cmake.managedbuilder/plugin.xml @@ -1,4 +1,106 @@ <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> + <extension + id="org.yocto.cmake.managedbuilder" + name="%extension.name" + point="org.eclipse.cdt.managedbuilder.core.buildDefinitions"> + <managedBuildRevision + fileVersion="4.0.0"> + </managedBuildRevision> + <tool + id="org.yocto.cmake.managedbuilder.cmakeconfigure" + name="%cmakeconfigure.name" + command="cmake" + commandLinePattern="${COMMAND} ${FLAGS} " + natureFilter="both"> + <optionCategory + id="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + name="%cmakeconfigure.options"> + </optionCategory> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + defaultValue="${OECMAKE_SOURCEPATH}" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.sourcepath" + isAbstract="false" + name="%cmakeconfigure.sourcepath" + resourceFilter="all" + valueType="string"> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + defaultValue="-DCMAKE_TOOLCHAIN_FILE=${OECMAKE_SOURCEPATH}/toolchain.cmake" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.toolchaincmakefilepath" + isAbstract="false" + name="%cmakeconfigure.toolchaincmakefilepath" + resourceFilter="all" + valueType="string"> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.debugsymbols" + name="%cmakeconfigure.debugsymbols" + isAbstract="false" + resourceFilter="all" + valueType="enumerated"> + <enumeratedOptionValue + command="-DCMAKE_BUILD_TYPE=DEBUG" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.debugsymbols.eOV1" + isDefault="true" + name="Yes (-DCMAKE_BUILD_TYPE=DEBUG)"> + </enumeratedOptionValue> + <enumeratedOptionValue + command="" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.debugsymbols.eOV2" + name="No"> + </enumeratedOptionValue> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.verbosemakefile" + name="%cmakeconfigure.verbosemakefile" + isAbstract="false" + resourceFilter="all" + valueType="enumerated"> + <enumeratedOptionValue + command="-DCMAKE_VERBOSE_MAKEFILE=1" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.verbosemakefile.eOV1" + isDefault="true" + name="Yes (-DCMAKE_VERBOSE_MAKEFILE=1)"> + </enumeratedOptionValue> + <enumeratedOptionValue + command="-DCMAKE_VERBOSE_MAKEFILE=0" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.verbosemakefile.eOV2" + name="No (-DCMAKE_VERBOSE_MAKEFILE=0)"> + </enumeratedOptionValue> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + command="-Wdev" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.enabledevwarn" + isAbstract="false" + name="%cmakeconfigure.wdev" + resourceFilter="all" + valueType="boolean"> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + command="-Wno-dev" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.suppressdevwarn" + isAbstract="false" + name="%cmakeconfigure.wnodev" + resourceFilter="all" + valueType="boolean"> + </option> + <option + category="org.yocto.cmake.managedbuilder.cmakeconfigure.category.options" + id="org.yocto.cmake.managedbuilder.cmakeconfigure.options.otherflags" + isAbstract="false" + name="%cmakeconfigure.otherflags" + resourceFilter="all" + tip="e.g.: --warn-unused-vars --debug-output -DCMAKE_SOME_OPTION=something" + valueType="string"> + </option> + </tool> + </extension> </plugin> -- 1.7.9.5 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto