]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/VfrCompile/build.xml
Remove the dependence to MdePkg
[mirror_edk2.git] / Tools / Source / TianoTools / VfrCompile / build.xml
index f6a08c83b2db0d0da4ba9542e552f69269bd140b..26d07878f7b411f48137a4a43da46adf37fc3f1f 100644 (file)
@@ -83,6 +83,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         includes="EfiVfrParser.cpp DLGLexer.cpp VfrCompile.cpp VfrCompile.g VfrServices.cpp parser.dlg"/>\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
@@ -93,7 +106,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
   <target name="Dlg" depends="Antlr" unless="CheckDepends">\r
     <exec dir="${basedir}/${ToolName}" executable="dlg" failonerror="TRUE">\r
-      <arg line="-C2 -i -CC -o . Parser.dlg"/>\r
+      <arg line="-C2 -i -CC -o . parser.dlg"/>\r
     </exec>\r
   </target>\r
 \r
@@ -110,13 +123,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         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}/Include"/>\r
+      <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
+      <includepath path="${PACKAGE_DIR}/Include/Common"/>\r
+      <includepath path="${PACKAGE_DIR}/Include/Protocol"/>\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