Author Topic: One approach to building the same source files on both Windows and Linux.  (Read 2671 times)

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 252
  • Hero Points: 23
//This macro has been posted for other SlickEdit users to use and explore.
//Depending on the version of SlickEdit that you are running, this macro may or may not load.
//Please note that these macros are NOT supported by SlickEdit and is not responsible for user submitted macros.

This project shows one approach to building the same source files on both Windows and Linux.

The project file (Reverb.vpj) contains all the build configurations for both Windows and Linux. The Linux configurations are set up to use the gcc compiler. The Windows configurations use the environment variables defined in the Windows-specific workspace file (Reverb-win.vpw) in order to find and execute cl.exe with the proper environment set up. This way we can edit and build the executable on Windows without creating and using a Visual Studio workspace file.

If you have the gcc compiler installed on Windows, you can also build the gcc variants of the project.
« Last Edit: April 08, 2010, 09:06:23 pm by SlickEdit Support »