[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] Environment variables in tool definition
|
Hi,
I have a plugin which extends "org.eclipse.cdt.managedbuilder.core.buildDefinitions". In there I have defined a new project type which has a compiler similar to the GCC compiler except for a few include header paths extra. Earlier, I used an "option" with value type "includePath" to define a directory. This directory contained the extra header files. In the "option", I specify the path to the directory as the default value.
<option
browseType="directory" category="gnu.c.compiler.exe.debug.optioncategory.includeRecordHeaders"
command="-I"
defaultValue="${workspace_loc}/Replay" id="gnu.c.compiler.exe.debug.option.includePathRecord"
isAbstract="false"
name="Include Record Headers" resourceFilter="all"
valueType="includePath">
</option>
In here I have used $workspace_loc, which is a variable used inside Eclipse.
However, now instead of all this, I want to specify the environment variable which points to the directory of header files. After reading through the Managed Build System Extensibility Document, I found that I need to use envVarBuildPath. I removed the above mentioned "option" from the plugin.
<envVarBuildPath
pathType="buildpathInclude"
variableList="REPLAY_INCLUDE">
</envVarBuildPath>
In here REPLAY_INCLUDE is the environment variable that I specified in my ~/.profile file. Typing echo $REPLAY_INCLUDE gives me the correct directory.
However this does not work. What am I missing out ? Are there any other options ?
--
Thanks & Regards,
Rohit Girme