summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/GenBuild
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Java/Source/GenBuild')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
index 7ce975a60a..9a847172f8 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
@@ -543,6 +543,28 @@ public class GenBuildTask extends Ant {
} else {
getProject().setProperty(cmd[m] + "_DPATH", "");
}
+
+ //
+ // Set CC_LIBPATH
+ //
+ key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_LIBPATH;
+ String libpath = GlobalData.getCommandSetting(key, fpdModuleId);
+ if (libpath != null) {
+ getProject().setProperty(cmd[m] + "_LIBPATH", libpath.replaceAll("(\\\\)", "/"));
+ } else {
+ getProject().setProperty(cmd[m] + "_LIBPATH", "");
+ }
+
+ //
+ // Set CC_INCLUDEPATH
+ //
+ key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_INCLUDEPATH;
+ String includepath = GlobalData.getCommandSetting(key, fpdModuleId);
+ if (dpath != null) {
+ getProject().setProperty(cmd[m] + "_INCLUDEPATH", includepath.replaceAll("(\\\\)", "/"));
+ } else {
+ getProject().setProperty(cmd[m] + "_INCLUDEPATH", "");
+ }
}
}