Using ${OBJECTS} instead of fileset to trace all obj files. Add a new Macro named Build_Init to provide a way to initial some properties for user.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1252 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -285,7 +285,6 @@ public class GenBuildTask extends Ant {
|
||||
// MODULE or BASE_NAME, GUID or FILE_GUID, VERSION, MODULE_TYPE
|
||||
// MODULE_DIR, MODULE_RELATIVE_DIR
|
||||
// SUBSYSTEM, ENTRYPOINT, EBC_TOOL_LIB_PATH
|
||||
// LIBS, OBJECTS, SDB_FILES
|
||||
//
|
||||
setModuleCommonProperties(archList[k]);
|
||||
|
||||
@@ -429,12 +428,7 @@ public class GenBuildTask extends Ant {
|
||||
getProject().setProperty("ENTRYPOINT", "_ModuleEntryPoint");
|
||||
}
|
||||
|
||||
//
|
||||
// LIBS, OBJECTS, SDB_FILES
|
||||
//
|
||||
getProject().setProperty("OBJECTS", "");
|
||||
getProject().setProperty("SDB_FILES", "");
|
||||
getProject().setProperty("LIBS", "");
|
||||
}
|
||||
|
||||
private void getCompilerFlags(String target, String toolchain, FpdModuleIdentification fpdModuleId) throws EdkException {
|
||||
|
@@ -414,6 +414,12 @@ public class ModuleBuildFileGenerator {
|
||||
|
||||
FileProcess fileProcess = new FileProcess();
|
||||
fileProcess.init(project, includes, document);
|
||||
|
||||
//
|
||||
// Initialize some properties by user
|
||||
//
|
||||
Element initEle = document.createElement("Build_Init");
|
||||
root.appendChild(initEle);
|
||||
|
||||
String moduleDir = project.getProperty("MODULE_DIR");
|
||||
//
|
||||
|
Reference in New Issue
Block a user