outtype="static"\r
optimize="speed">\r
\r
+ <compilerarg value="-fPIC" if="x86_64_linux"/>\r
+\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
\r
<fileset dir="${basedir}/Common" \r
includes="*.c" />\r
>\r
<fileset dir="${ToolName}" includes="${LibFileSet}" defaultexcludes="TRUE" excludes="*.xml *.inf"/>\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<includepath path="${env.JAVA_HOME}/include"/>\r
<includepath path="${env.JAVA_HOME}/include/win32" if="windows"/>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
includes="${FileSet}"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
</cc>\r
<os family="mac"/>\r
</condition>\r
\r
+ <condition property="syslibdirs" value="/lib64">\r
+ <istrue value="${x86_64_linux}"/>\r
+ </condition>\r
+ \r
<condition property="syslibdirs" value="${env.CYGWIN_HOME}/lib/e2fsprogs">\r
<os family="windows"/>\r
</condition>\r
\r
<includepath path="${PACKAGE_DIR}/${ToolName}"/>\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
// Include processor specific binding\r
//\r
#include <ProcessorBind.h>\r
+#include <stdarg.h>\r
\r
#define MEMORY_FENCE() MemoryFence ()\r
#define BREAKPOINT() CpuBreakpoint ()\r
//\r
#ifndef VA_START\r
\r
-typedef CHAR8 *VA_LIST;\r
-#define VA_START(ap, v) (ap = (VA_LIST) & (v) + _INT_SIZE_OF (v))\r
-#define VA_ARG(ap, t) (*(t *) ((ap += _INT_SIZE_OF (t)) - _INT_SIZE_OF (t)))\r
-#define VA_END(ap) (ap = (VA_LIST) 0)\r
+// typedef CHAR8 *VA_LIST;\r
+// #define VA_START(ap, v) (ap = (VA_LIST) & (v) + _INT_SIZE_OF (v))\r
+// #define VA_ARG(ap, t) (*(t *) ((ap += _INT_SIZE_OF (t)) - _INT_SIZE_OF (t)))\r
+// #define VA_END(ap) (ap = (VA_LIST) 0)\r
+// Use the native arguments for tools.\r
+#define VA_START va_start\r
+#define VA_ARG va_arg\r
+#define VA_END va_end\r
+#define VA_LIST va_list\r
\r
#endif\r
\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
</cc>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools String"/>\r
</cc>\r
<cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
outfile="${LIB_DIR}/${LibName}"\r
outtype="static"\r
+ debug="true"\r
optimize="speed">\r
\r
<compilerarg value="-fshort-wchar" if="gcc"/>\r
\r
<includepath path="${PACKAGE_DIR}/${LibName}"/>\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
</cc>\r
</target>\r
\r
<includepath path="${PACKAGE_DIR}/Pccts/h"/>\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
<syslibset libs="${gxx_extra_libs}" if="gcc"/>\r
excludes="*.xml *.inf"/>\r
\r
<includepath path="${PACKAGE_DIR}/Include"/>\r
- <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
</cc>\r
</target>\r
\r
<taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
<property environment="env" />\r
+ <condition property="HostArch" value="x64">\r
+ <os arch="amd64"/>\r
+ </condition>\r
+ <condition property="HostArch" value="Ia32">\r
+ <os arch="x86"/>\r
+ </condition>\r
+ <condition property="HostArch" value="Ia32">\r
+ <os arch="i386"/>\r
+ </condition>\r
<property name="WORKSPACE" value="${env.WORKSPACE}" />\r
<property name="WORKSPACE_DIR" value="${WORKSPACE}" />\r
<property name="PACKAGE" value="Tools" />\r
<os name="Linux"/>\r
</condition>\r
\r
+ <condition property="x86_64_linux">\r
+ <and>\r
+ <os name="Linux"/>\r
+ <equals arg1="${HostArch}" arg2="x64"/>\r
+ </and>\r
+ </condition>\r
+ \r
<condition property="windows" value="true">\r
<os family="Windows"/>\r
</condition>\r