<typedef resource="cpptasks.types"/>\r
<taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
\r
- <property environment="env"/>\r
-\r
<property name="LINK_OUTPUT_TYPE" value="static"/>\r
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
\r
</then>\r
</elseif>\r
</if>\r
- <condition property="CheckDepends">\r
- <uptodate targetfile="${WORKSPACE}/Tools/bin/VfrCompile${ext_exe}">\r
- <srcfiles dir="${WORKSPACE}/Tools/Source/TianoTools/VfrCompile" \r
+ <condition property="CheckDepends">\r
+ <uptodate targetfile="${WORKSPACE}/Tools/bin/VfrCompile${ext_exe}">\r
+ <srcfiles dir="${WORKSPACE}/Tools/Source/TianoTools/VfrCompile" \r
includes="EfiVfrParser.cpp DLGLexer.cpp VfrCompile.cpp VfrCompile.g VfrServices.cpp parser.dlg"/>\r
- </uptodate>\r
- </condition>\r
+ </uptodate>\r
+ </condition>\r
+\r
+ <condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">\r
+ <os family="mac"/>\r
+ </condition>\r
+ \r
+ <condition property="gxx_extra_libs" value="stdc++">\r
+ <os name="linux"/>\r
+ </condition>\r
+ \r
+ <condition property="gxx_extra_libs" value="stdc++">\r
+ <os family="windows"/>\r
+ </condition>\r
+ \r
</target>\r
\r
<target name="Antlr" depends="init" unless="CheckDepends">\r
- <exec dir="${basedir}/${ToolName}" executable="antlr" failonerror="TRUE">\r
+ <exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/antlr" failonerror="TRUE">\r
<arg line="-CC -e3 -ck 3 -o . VfrCompile.g"/>\r
</exec>\r
</target>\r
\r
<target name="Dlg" depends="Antlr" unless="CheckDepends">\r
- <exec dir="${basedir}/${ToolName}" executable="dlg" failonerror="TRUE">\r
+ <exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/dlg" failonerror="TRUE">\r
<arg line="-C2 -i -CC -o . parser.dlg"/>\r
</exec>\r
</target>\r
<fileset dir="${basedir}/Pccts/h" \r
includes="${FileSetPccts}" />\r
\r
- <includepath path="${env.WORKSPACE}/Tools/Source/TianoTools/Pccts/h"/>\r
- <includepath path="${env.WORKSPACE}/MdePkg/Include"/>\r
- <includepath path="${env.WORKSPACE}/MdePkg/Include/Ia32"/>\r
- <includepath path="${env.WORKSPACE}/MdePkg/Include/Common"/>\r
- <includepath path="${env.WORKSPACE}/MdePkg/Include/Protocol"/>\r
+ <includepath path="${PACKAGE_DIR}/Pccts/h"/>\r
+ <includepath path="${PACKAGE_DIR}/Include"/>\r
+ <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
<includepath path="${PACKAGE_DIR}/Common"/>\r
<libset dir="${LIB_DIR}" libs="CommonTools"/>\r
- <syslibset libs="stdc++" if="gcc"/>\r
+ <syslibset libs="${gxx_extra_libs}" if="gcc"/>\r
</cc>\r
</target>\r
\r