From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Hiroshi Saito <hiroshi@winpg.jp>
Cc: Dave Page <dpage@pgadmin.org>
Subject: Re: Building psqlODBC installers
Date: Wed, 18 Jun 2014 15:20:55 +0300
Message-ID: <53A18427.9050508@vmware.com> (raw)
In-Reply-To: <53A181BC.6030400@tpf.co.jp>
References: <539AEFAF.1070708@vmware.com>
<539CC768.2070803@tpf.co.jp>
<539E6EEA.4020207@2ndquadrant.com>
<539F14B5.80408@vmware.com>
<53A06CE0.2070907@vmware.com>
<53A181BC.6030400@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 06/18/2014 03:10 PM, Hiroshi Inoue wrote:
> (2014/06/17 22:14), Heikki Linnakangas wrote:
>> On 06/16/2014 07:00 PM, Heikki Linnakangas wrote:
>>> I'll try to whip the MSbuild system into shape, so that it can build all
>>> the installers in one command. I'd also like to remove the dependency to
>>> PowerShell. Surely plain MSBuild can do what we want, so let's avoid the
>>> extra dependency if we can.
>
> Unfortunately I don't prefer to pack all into one command(tool).
> Though I chose instead of nmake, I don't love it so much.
>
> Though I don't have much time to confirm the patch, I noticed
> the followings for the time being.
>
> 1. The default target seems to build installers. Do we have to
> build installers so often? I have never built installers for
> a long time for purposes other than testing themselves.
Ok, how about making BuildDriverBoth the default then? That builds the
Unicode and ANSI drivers in the current Debug/Release configuration, for
the current target Platform.
> 2. ISTM there's no target which builds x86 and x64 drivers.
> Is it right?
No separate target, but you can pass the TARGET_CPU property:
msbuild /t:BuildDriver /p:TARGET_CPU=x86
Or at least with Windows SDK 7.1, you can also use "setenv /x86" or
"setenv /x64" to change the current target.
> 3. Why does the patch remove installer/psqlodbc-setup together?
>
>> One notable change over the existing powershell system is that the this
>> extracts the driver's version number from version.h, while the
>> powershell scripts did it the other way 'round.
>> This is better, because
>> now you don't need to modify both files when bumping the version number.
>
> I left version.h for nmake build. There's no need to maintain it when
> switching to MSBuild is done.
version.h is also used by Unix builds. That's why I think we should also
use version.h with the Windows builds - otherwise we end up with two
different ways to derive the version number, which is bad.
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: hlinnakangas@vmware.com, inoue@tpf.co.jp, craig@2ndquadrant.com, hiroshi@winpg.jp, dpage@pgadmin.org
Subject: Re: Building psqlODBC installers
In-Reply-To: <53A18427.9050508@vmware.com>
References: <539AEFAF.1070708@vmware.com> <539CC768.2070803@tpf.co.jp> <539E6EEA.4020207@2ndquadrant.com> <539F14B5.80408@vmware.com> <53A06CE0.2070907@vmware.com> <53A181BC.6030400@tpf.co.jp> <53A18427.9050508@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox