From: Aaron L. <fir...@ho...> - 2005-08-17 01:09:41
|
And right on cue, I wind up finding a solution as soon as I ask. In Eclipse you can set any environment variables you want for the Ant task: o Right-click on your build.xml o Run As > 2 Ant Build... o Click on Environment tab o If necessary select "Separate JRE" in the JRE tab to enable setting Environment variables. o Add the following three variables (adjusting for your environment): PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB o Apply and Run. If you're also using PlatformSDK, DirectX, etc. you'll need to add those as well. This info appears to get stored in the top level .metadata folder, so this may or may not be the best solution. Having discovered that, however, I'm still very eager to hear other's opinions on using cpptask/ant with eclipse and msvc vs going with SCons or some other alternative. ----- Original Message ----- From: "Aaron Leiby" <fir...@ho...> To: <ant...@li...> Sent: Tuesday, August 16, 2005 5:30 PM Subject: [Ant-contrib-developers] cpptasks in eclipse using msvc > Being fed up with the current state and direction of dev studio's c++ > support, I've recently started investigating alternatives. > > I very much like Eclipse and the direction they are heading, but still > need to use microsoft's tools for compiling. > > That leaves me in search of something to bridge that gap. > > Make files still give me nightmares, and nmake only makes them worse. > > I tend to use python a bunch - often to generate c++ code, etc. which > makes solutions like SCons quite appealing. SCons even has a handy > Eclipse plug-in. > > But before going that route, I wanted to give Ant a fair swing since it's > so integral to Eclipse. Enter cpptasks. > > My question is: what's the best way to get all the fancy settings in > vcvars32.bat applied so that cpptasks can do its thang? Can this be done > within the build script? Should it? Has anyone here gone down this path? > Maybe this is a question more suited for an Eclipse mailing list, but I > thought I'd ping the more specialized group first before opening it up to > that jungle. > > Thanks! > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Ant-contrib-developers mailing list > Ant...@li... > https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers > |