cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: specifying protocols for Windows LibCurl Build

From: JonathonS <thejunkjon_at_gmail.com>
Date: Tue, 13 Dec 2011 15:32:54 -0800

Found it. For completeness, I'll specify it here.

------------------------------

Disabling Specific Protocols in Win32 builds
   --------------------------------------------

   The configure utility, unfortunately, is not available for the Windows
   environment, therefore, you cannot use the various disable-protocol
   options of the configure utility on this platform.

   However, you can use the following defines to disable specific
   protocols:

   HTTP_ONLY disables all protocols except HTTP
   CURL_DISABLE_FTP disables FTP
   CURL_DISABLE_LDAP disables LDAP
   CURL_DISABLE_TELNET disables TELNET
   CURL_DISABLE_DICT disables DICT
   CURL_DISABLE_FILE disables FILE
   CURL_DISABLE_TFTP disables TFTP
   CURL_DISABLE_HTTP disables HTTP

   If you want to set any of these defines you have the following
   possibilities:

   - Modify lib/config-win32.h
   - Modify lib/setup.h
   - Modify lib/Makefile.vc6
   - Add defines to Project/Settings/C/C++/General/Preprocessor Definitions
     in the vc6libcurl.dsw/vc6libcurl.dsp Visual C++ 6 IDE project.

---------------------

On Tue, Dec 13, 2011 at 2:07 PM, JonathonS <thejunkjon_at_gmail.com> wrote:
> Hi,
>
> How would I specify which protocols to enable/disable when building
> libcurl for Windows?
>
> In the provided build instructions, it looks like the Windows build
> script only allows for:
>
> -----------------------------
> nmake /f makefile.vc mode=<static or dll> <options>
> where <options> is one or many of:
>  VC=<6,7,8,9,10>              - VC versions
>  WITH_DEVEL=<path>            - Paths for the development files (SSL,
> zlib, etc.)
>                                 Default to sibbling directory deps: ../deps
>                                 Libraries can be fetched at
> http://pecl2.php.net/downloads/php-windows-builds/
>                                 Uncompress them into the deps folder.
>  WITH_SSL=<dll or static>     - Enable OpenSSL support, DLL or static
>  WITH_ZLIB=<dll or static>    - Enable ZLib support, DLL or static
>  WITH_SSH2=<dll or static>    - Enable LIbSSH2 support, DLL or static
>  USE_SSSPI=<yes or no>        - Enable SSPI support, default to yes
>  USE_IPV6=<yes or no>         - Enable IPV6, default to yes
>  DEBUG=<yes or no>            - Debug builds
>  USE_IDN=<yes or no>          - Wheter or not to use IDN Windows
> APIs. Requires Windows Vista or later.
>                                 or to install
> http://www.microsoft.com/downloads/details.aspx?FamilyID=AD6158D7-DDBA-416A-9109-07607425A815
>  GEN_PDB=<yes or no>          - Generate Program Database (debug
> symbols release build)
> -------------------
>
>
> I'd like to enable only HTTP and HTTPS and disable all others.  I am
> using libcurl 7.22.0
>
> thanks,
> J

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-14