Hi Tom,

This should be working fine in the next nightly build (thanks to Hani Atassi for the patch !!!), which should be available here in  about 20 minutes : http://nant.sourceforge.net/nightly/latest.

Gert



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom McAnnally
Sent: vrijdag 3 december 2004 17:00
To: Tom McAnnally; [EMAIL PROTECTED]
Subject: RE: [nant-dev] solution target and vcproj support for MIDL compiler

Here is a zipped up example project that exhibits this issue.  Please remove “removethisextension” from the zip file name before you try to extract it.  I have also included a simple NANT build file midltest.build.

 

Here is the output from the build.  MIDLTest_i.c doesn’t exist because it is generated from the MIDL complier which is not being run by NANT.

 

NAnt 0.85 (Build 0.85.1793.0; rc1; 11/28/2004)

Copyright (C) 2001-2004 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///D:/code/MIDLTest/midltest.build

Target(s) specified: debug

 

 

debug:

 

 [solution] Starting solution build.

 [solution] Loading projects...

 [solution] Loading project 'D:\code\MIDLTest\MIDLTest.vcproj'.

 [solution] Loading project 'D:\code\MIDLTest\MIDLTestPS.vcproj'.

 [solution] Gathering additional dependencies...

 [solution] Fixing up references...

 [solution] Building 'MIDLTest' [debug] ...

               [attrib] No matching files or directories found.

                   [cl] 'D:\code\MIDLTest\Debug\stdafx.obj' does not exist, reco

mpiling.

                   [cl] Compiling 1 files to 'D:\code\MIDLTest\Debug'.

                   [cl] Contents of C:\DOCUME~1\tomm\LOCALS~1\Temp\tmp217C.tmp.

                   [cl] /c

                   [cl] /Fd"D:\code\MIDLTest\Debug/"

                   [cl] /Fo"D:\code\MIDLTest\Debug/"

                   [cl] ".\stdafx.cpp"

                   [cl] /D "_MBCS"

                   [cl]

                   [cl] Starting 'cl (@"C:\DOCUME~1\tomm\LOCALS~1\Temp\tmp217C.t

mp" /D WIN32 /D _WINDOWS /D _DEBUG /D _USRDLL /D WIN32 /D _WINDOWS /D _DEBUG /D

_USRDLL /EHsc /D _WINDLL /Yc"StdAfx.h" /Fp"Debug/MIDLTest.pch" /MDd /W3 /ZI /Od

/nologo)' in 'D:\code\MIDLTest'

                   [cl] stdafx.cpp

                   [cl] 'D:\code\MIDLTest\Debug\MIDLTest_i.obj' does not exist,

recompiling.

                   [cl] Compiling 1 files to 'D:\code\MIDLTest\Debug'.

                   [cl] Contents of C:\DOCUME~1\tomm\LOCALS~1\Temp\tmp217D.tmp.

                   [cl] /c

                   [cl] /Fd"D:\code\MIDLTest\Debug/"

                   [cl] /Fo"D:\code\MIDLTest\Debug/"

                   [cl] ".\MIDLTest_i.c"

                   [cl] /D "_MBCS"

                   [cl]

                   [cl] Starting 'cl (@"C:\DOCUME~1\tomm\LOCALS~1\Temp\tmp217D.t

mp" /D WIN32 /D _WINDOWS /D _DEBUG /D _USRDLL /D WIN32 /D _WINDOWS /D _DEBUG /D

_USRDLL /EHsc /D _WINDLL /MDd /W3 /ZI /Od /nologo)' in 'D:\code\MIDLTest'

                   [cl] MIDLTest_i.c

                   [cl] c1 : fatal error C1083: Cannot open source file: '.\MIDL

Test_i.c': No such file or directory

 

BUILD FAILED

 

External Program Failed: cl (return code was 2)

 

Total time: 4 seconds.

 

-Tom

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom McAnnally
Sent: Friday, December 03, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: [nant-dev] solution target and vcproj support for MIDL compiler

 

Has anyone tried to build a COM based vc project.  It seems to me that NANT doesn’t run the MIDL compile and therefore cannot build a COM based vc project.

 

-Tom

 

Reply via email to