Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 2510 invoked from network); 7 Nov 2007 07:20:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2007 07:20:55 -0000 Received: (qmail 42913 invoked by uid 500); 7 Nov 2007 07:20:43 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 42875 invoked by uid 500); 7 Nov 2007 07:20:43 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 42864 invoked by uid 99); 7 Nov 2007 07:20:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 23:20:43 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 07:21:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2436E1A9832; Tue, 6 Nov 2007 23:20:32 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r592642 - /apr/apr/trunk/README.dev Date: Wed, 07 Nov 2007 07:20:31 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071107072032.2436E1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Tue Nov 6 23:20:30 2007 New Revision: 592642 URL: http://svn.apache.org/viewvc?rev=592642&view=rev Log: The four most common win32 apr questions, answered. Modified: apr/apr/trunk/README.dev Modified: apr/apr/trunk/README.dev URL: http://svn.apache.org/viewvc/apr/apr/trunk/README.dev?rev=592642&r1=592641&r2=592642&view=diff ============================================================================== --- apr/apr/trunk/README.dev (original) +++ apr/apr/trunk/README.dev Tue Nov 6 23:20:30 2007 @@ -50,6 +50,37 @@ ./testall -v +Configuring and Building APR on Windows +======================================= + +Using Visual Studio, you can build and run the test validation of APR. +The Makefile.win make file has a bunch of documentation about it's +options, but a trivial build is simply; + + nmake -f Makefile.win + nmake -f Makefile.win PREFIX=c:\desired\path\of\apr install + +Note you must manually modify the include\apr.hw file before you +build to change default options, see the #define APR_HAS_... or the +#define APR_HAVE_... statements. Be careful, many of these aren't +appropriate to be modified. The most common change is + +#define APR_HAVE_IPV6 1 + +rather than 0 if this build of APR will be used strictly on machines +with the IPv6 adapter support installed. + +It's trivial to include the apr.dsp (for a static library) or the +libapr.dsp (for a dynamic library) in your own build project, or you +can load apr.dsw in Visual Studio 2002 (.NET) or later, which will +convert these for you into apr.sln and associated .vcproj files. + +When using APR as a dynamic library, nothing special is required, +simply link to libapr.lib. To use it as a static library, simply +define APR_DECLARE_STATIC before you include any apr header files +in your source, and link to apr.lib instead. + + Generating Test Coverage information with gcc =============================================