From: Arnold, C. <Cur...@hy...> - 2002-04-23 22:07:10
|
>I don't know, I'm just copying the arguments from the VS project file. >This is the compile line from the project file >/O2 /Ob1 /I "d:\jdk1.3.1\include" /I "d:\jdk1.3.1\include\win32" /D >"WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /GF /FD /EHsc /MT /Gy >/Fp".\Release/TokenManager.pch" /Fo".\Release/" /Fd".\Release/" /W3 >/nologo /c /TP Sorry, I had a brain freeze. If you add a runtime="static" to your <cc> element, it should generate the /MT for you. By default, it assumes that you want to use a dynamic C RTL. I'm working on support for precompiled headers right at this moment (the /Fp option). >It doesn't look like I will be able to use the CC task here though, >because the resource file (.res) has relative paths in it, and since the >CC working directory is the "objdir" The resources are not found. If you specify a <includepath> for the resource compiler, you should be able to find the resources. <cc> <compiler name="msrc"> <!-- resource compiler specific include path will also inherit include path from <cc> element unless you set inherit="false" --> <includepath location="wherever"/> <fileset dir="wherever" includes="whatever.rc"/> </compiler> </cc> |