Re: forward vs backward slashes in msvc build code

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: forward vs backward slashes in msvc build code
Date: 2015-04-27 14:59:16
Message-ID: 553E4EC4.9060303@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 04/27/2015 08:46 AM, Michael Paquier wrote:
> On Mon, Apr 27, 2015 at 9:25 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>> On 4/27/15 2:09 AM, Michael Paquier wrote:
>>> 2) I noticed that VC builds do not like *at all* file paths with
>>> forward slashes, perhaps it could be possible to use a Condition like
>>> hasForwardSlashes but it seems safer to simply enforce the file paths
>>> to use backslashes in the vcproj files. That's inconsistent with the
>>> vcxproj files, but it works and Mkvcbuild.pm works as before.
>>> 3) I found why chkpass was needed as a dependency with libpgport and
>>> libpgcommon, actually crypt.c needs to be listed as a unique file, so
>>> it needs a fake entry in vcproj and vcxproj files.
>>> All those things are corrected in the patch attached, tested with both
>>> MS and VC.
>> What's the difference between MS and VC?
> MS uses vcxproj specs, and VC vcproj specs...
>
>> If VC doesn't accept forward slashes, doesn't that invalidate the
>> premise of this patch?
> I don't think so. The point of the patch is to be able to run the
> Windows build script in a non-Windows environment to check that
> modifications in the Makefile stucture does not break some basics of
> the Windows build script, and this is not impacted.
>
>> Is it worth attempting to maintain it?
> vcbuild (~2008) has been replaced by msbuild in MS 2010. Hence I
> imagine that it is still used a lot.
> Regards,

Yeah. I've pushed this with tiny fixes to avoid Leaning Toothpick
Syndrome (man perlop for definition).

Thanks for your work on this.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2015-04-27 15:49:27 Re: Sequence Access Method WIP
Previous Message Sawada Masahiko 2015-04-27 14:31:12 Re: Proposal: knowing detail of config files via SQL