Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxErW-0008U9-SA for pgsql-odbc@arkaria.postgresql.org; Wed, 18 Jun 2014 12:21:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxErW-0000Os-CF for pgsql-odbc@arkaria.postgresql.org; Wed, 18 Jun 2014 12:21:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxErV-0000Om-Op for pgsql-odbc@postgresql.org; Wed, 18 Jun 2014 12:21:09 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WxErM-0002m3-Di for pgsql-odbc@postgresql.org; Wed, 18 Jun 2014 12:21:06 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id B732C2863F; Wed, 18 Jun 2014 05:20:58 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id B21D342A32; Wed, 18 Jun 2014 05:20:58 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id ABECCC005D; Wed, 18 Jun 2014 05:21:12 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Wed, 18 Jun 2014 05:21:11 -0700 (PDT) Message-ID: <53A18427.9050508@vmware.com> Date: Wed, 18 Jun 2014 15:20:55 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Hiroshi Inoue CC: Craig Ringer , "pgsql-odbc@postgresql.org" , Hiroshi Saito , Dave Page Subject: Re: Building psqlODBC installers 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> In-Reply-To: <53A181BC.6030400@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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