1. Removed the unnecessary #include statements and include files
2. Removed the unnecessary library and include path from MSA files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@541 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -32,14 +32,14 @@ JNIEXPORT jbyteArray JNICALL Java_org_tianocore_framework_tasks_Compress_CallCo
|
||||
//
|
||||
|
||||
Result = Compress (
|
||||
(char*) InputBuffer,
|
||||
SourceSize,
|
||||
DestBuffer,
|
||||
&DestSize
|
||||
);
|
||||
(char*) InputBuffer,
|
||||
SourceSize,
|
||||
DestBuffer,
|
||||
&DestSize
|
||||
);
|
||||
|
||||
if (Result = EFI_BUFFER_TOO_SMALL) {
|
||||
DestBuffer = malloc (DestSize);
|
||||
DestBuffer = malloc (DestSize);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -47,10 +47,10 @@ JNIEXPORT jbyteArray JNICALL Java_org_tianocore_framework_tasks_Compress_CallCo
|
||||
//
|
||||
Result = Compress(
|
||||
(char*) InputBuffer,
|
||||
SourceSize,
|
||||
DestBuffer,
|
||||
&DestSize
|
||||
);
|
||||
SourceSize,
|
||||
DestBuffer,
|
||||
&DestSize
|
||||
);
|
||||
|
||||
//
|
||||
// new a MV array to store the return compressed buffer
|
||||
@@ -80,7 +80,7 @@ DllMainCRTStartup(
|
||||
void* Reserved
|
||||
)
|
||||
{
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
#else
|
||||
#ifdef __GNUC__
|
||||
|
@@ -10,22 +10,29 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
-->
|
||||
<project default="GenTool" basedir=".">
|
||||
<!--EDK GenDepex Tool
|
||||
Copyright (c) 2006, Intel Corporation-->
|
||||
<!--
|
||||
EDK GenDepex Tool
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
-->
|
||||
|
||||
<property environment="env"/>
|
||||
<property name="WORKSPACE" value="${env.WORKSPACE}"/>
|
||||
<property name="ToolName" value="CompressDll"/>
|
||||
<property name="LibName" value="CompressDll"/>
|
||||
<property name="FileSet" value="CompressDll.c CompressDll.h"/>
|
||||
<property name="LibFileSet" value="CompressDll.c DepexParser.h"/>
|
||||
|
||||
<taskdef resource="cpptasks.tasks"/>
|
||||
<typedef resource="cpptasks.types"/>
|
||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||
|
||||
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
||||
<property name="BUILD_DIR" value="${WORKSPACE}/Tools/Source/TianoTools/${ToolName}/tmp"/>
|
||||
|
||||
<target name="GenTool" depends="init,Lib" >
|
||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||
</target>
|
||||
|
||||
<target name="init">
|
||||
<echo message="The EDK Tool: ${ToolName}"/>
|
||||
<mkdir dir="${BUILD_DIR}"/>
|
||||
@@ -83,7 +90,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
<fileset dir="${ToolName}" includes="${LibFileSet}" defaultexcludes="TRUE" excludes="*.xml *.inf"/>
|
||||
<includepath path="${PACKAGE_DIR}/Include"/>
|
||||
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
||||
<includepath path="${PACKAGE_DIR}/Include/Common"/>
|
||||
<includepath path="${PACKAGE_DIR}/Common"/>
|
||||
<includepath path="${env.JAVA_HOME}/include"/>
|
||||
<includepath path="${env.JAVA_HOME}/include/win32" if="windows"/>
|
||||
@@ -94,12 +100,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
<copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
|
||||
<chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="init">
|
||||
<echo message="Removing Intermediate Files Only"/>
|
||||
<delete>
|
||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="cleanall" depends="init">
|
||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||
<delete dir="${BUILD_DIR}">
|
||||
|
Reference in New Issue
Block a user