[geos-devel] Windows Build

Mateusz Loskot mateusz at loskot.net
Thu Sep 6 05:56:02 EDT 2007


Charlie Savage wrote:
>> Perhaps macros in VC++ Property Sheets will work for this.
>> It's possible to define macros like RUBY_DIR in a common Property Sheet
>> file (.vcprops) and then share this file among all projects.
>>
>> Here is example of .vcprops:
>>
>> http://svn.osgeo.org/gdal/trunk/gdal/wince/msvc80/
>>
>> The sheet is editable from View -> Property Manager in the IDE.
>
> That's very interesting.  Is a user supposed to change the settings as
> needed then?

Yes, I use .vsprops for that purpose, so users can edit a macro value
ie. specifying their own path to some dependency.

Here is more complex example.
In soci.vsprops I many *_DIR macros and values of these macros are
supposed to be edited according user's environment:

http://soci.cvs.sourceforge.net/soci/build/msvc80/

> I was thinking it would be clever to just try to run Ruby/Python
> directly and ask the interpreters themselves where they are.  That does
> assume they are on the execution path though.  And it assumes you can
> recover from errors if they aren't.  Can you work such magic in a batch
> file?

I think it should be possible to run it in prebuild actions,
defined in .vcproj projects. I've not tried, but I suppose it's
possible to assign values to new macro during prebuild.

I can't check it ATM, but if you have problems, I'll play with it tonight.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the geos-devel mailing list