Tuesday, May 15, 2007

Visual Studio Project to Makefile for cross platform project

Visual Studio 6

To export a makefile
From the Project menu, select Export Makefile.
In the Export Makefile(s) dialog box, select the project(s) for which you want to create a .mak file.
A separate .mak file is created for each project you select.
If you want Visual C++ to update dependency information, check the Write dependencies when writing makefiles checkbox.
If you know that you want to automatically export the .mak file each time you update this project, use the following procedure.
To automatically export a makefile when the project is updated

1 From the Tools menu, choose Options.
2 On the Build tab, check the Export makefile when saving project file checkbox.
Selecting this option increases the time it takes to save the project.
3 To automatically write dependency information every time you export a makefile
From the Tools menu, choose Options.
4 On the Build tab, check the Always write dependencies when writing makefiles checkbox.
Selecting this option considerably increases the time it takes to write the .mak file.
5 To specify per-configuration dependency information
From the Project menu, choose Settings.
On the General tab, check the Allow per-configuration dependencies checkbox.
Selecting this option increases the time it takes to write the dependency information, according to the number of build configurations in the project.

http://msdn2.microsoft.com/en-us/library/aa233950(VS.60).aspx


Visual Studio .NET

Comvert the project to Visual Studio 6 using
stephane rodriguez prjconverter then export to makefile using Visual Studio 6

http://www.codeproject.com/tools/prjconverter.asp?df=100&forumid=10069&exp=0&select=1288997


WineMaker

The Winelib development toolkit

http://www.winehq.org/site/docs/winelib-guide/winelib-toolkit


Other

would be nice to implement a plugin for Visual Studio 2005.
I am using one to generate doxygen automatically. Merging code from winemaker
into a VS2005 plugin would be a great idea.

What about exporting the project towards those fancy building script as well

SConstruct
ANT
etc...

No comments: