1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Enabled MinGW native Windows IDN build.

This commit is contained in:
Guenter Knauf 2011-04-19 17:28:28 +02:00
parent 519bec7c91
commit b2140a09f8
2 changed files with 35 additions and 10 deletions

View File

@ -4,7 +4,7 @@
## and optionally OpenSSL (0.9.8), libssh2 (1.2), zlib (1.2.5) ## and optionally OpenSSL (0.9.8), libssh2 (1.2), zlib (1.2.5)
## ##
## Usage: ## Usage:
## mingw32-make -f Makefile.m32 [SSL=1] [SSH2=1] [ZLIB=1] [IDN=1] [SSPI=1] [IPV6=1] [LDAPS=1] [RTMP=1] [DYN=1] ## mingw32-make -f Makefile.m32 [SSL=1] [SSH2=1] [ZLIB=1] [IDN=1] [WINIDN=1] [SSPI=1] [IPV6=1] [LDAPS=1] [RTMP=1] [DYN=1]
## ##
## Hint: you can also set environment vars to control the build, f.e.: ## Hint: you can also set environment vars to control the build, f.e.:
## set ZLIB_PATH=c:/zlib-1.2.5 ## set ZLIB_PATH=c:/zlib-1.2.5
@ -26,13 +26,19 @@ endif
ifndef LIBSSH2_PATH ifndef LIBSSH2_PATH
LIBSSH2_PATH = ../../libssh2-1.2.8 LIBSSH2_PATH = ../../libssh2-1.2.8
endif endif
# Edit the path below to point to the base of your librtmp package.
ifndef LIBRTMP_PATH
LIBRTMP_PATH = ../../librtmp-2.3
endif
# Edit the path below to point to the base of your libidn package. # Edit the path below to point to the base of your libidn package.
ifndef LIBIDN_PATH ifndef LIBIDN_PATH
LIBIDN_PATH = ../../libidn-1.18 LIBIDN_PATH = ../../libidn-1.18
endif endif
# Edit the path below to point to the base of your librtmp package. # Edit the path below to point to the base of your MS idndlpackage.
ifndef LIBRTMP_PATH # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
LIBRTMP_PATH = ../../librtmp-2.3 # http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815
ifndef WINIDN_PATH
WINIDN_PATH = ../../Microsoft IDN Mitigation APIs
endif endif
# Edit the path below to point to the base of your Novell LDAP NDK. # Edit the path below to point to the base of your Novell LDAP NDK.
ifndef LDAP_SDK ifndef LDAP_SDK
@ -45,9 +51,10 @@ LIBCARES_PATH = ../ares
endif endif
CC = gcc CC = gcc
AR = ar CFLAGS = -g -O2 -Wall
# comment LDFLAGS below to keep debug info # comment LDFLAGS below to keep debug info
LDFLAGS = -s LDFLAGS = -s
AR = ar
RANLIB = ranlib RANLIB = ranlib
RC = windres RC = windres
RCFLAGS = --include-dir=../include -DDEBUGBUILD=0 -O COFF -i RCFLAGS = --include-dir=../include -DDEBUGBUILD=0 -O COFF -i
@ -58,7 +65,7 @@ STRIP = strip -g
## Nothing more to do below this line! ## Nothing more to do below this line!
INCLUDES = -I. -I../include INCLUDES = -I. -I../include
CFLAGS = -g -O2 -DBUILDING_LIBCURL CFLAGS += -DBUILDING_LIBCURL
ifdef ARES ifdef ARES
INCLUDES += -I$(LIBCARES_PATH) INCLUDES += -I$(LIBCARES_PATH)
CFLAGS += -DUSE_ARES CFLAGS += -DUSE_ARES
@ -91,6 +98,13 @@ ifdef IDN
INCLUDES += -I"$(LIBIDN_PATH)/include" INCLUDES += -I"$(LIBIDN_PATH)/include"
CFLAGS += -DUSE_LIBIDN CFLAGS += -DUSE_LIBIDN
DLL_LIBS += -L$(LIBIDN_PATH)/lib -lidn DLL_LIBS += -L$(LIBIDN_PATH)/lib -lidn
else
ifdef WINIDN
INCLUDES += -I"$(WINIDN_PATH)/include"
CFLAGS += -DHAVE_NORMALIZATION_H
CFLAGS += -DUSE_WIN32_IDN
DLL_LIBS += -L"$(WINIDN_PATH)" -lnormaliz
endif
endif endif
ifdef SSPI ifdef SSPI
CFLAGS += -DUSE_WINDOWS_SSPI CFLAGS += -DUSE_WINDOWS_SSPI

View File

@ -26,13 +26,19 @@ endif
ifndef LIBSSH2_PATH ifndef LIBSSH2_PATH
LIBSSH2_PATH = ../../libssh2-1.2.8 LIBSSH2_PATH = ../../libssh2-1.2.8
endif endif
# Edit the path below to point to the base of your librtmp package.
ifndef LIBRTMP_PATH
LIBRTMP_PATH = ../../librtmp-2.3
endif
# Edit the path below to point to the base of your libidn package. # Edit the path below to point to the base of your libidn package.
ifndef LIBIDN_PATH ifndef LIBIDN_PATH
LIBIDN_PATH = ../../libidn-1.18 LIBIDN_PATH = ../../libidn-1.18
endif endif
# Edit the path below to point to the base of your librtmp package. # Edit the path below to point to the base of your MS idndlpackage.
ifndef LIBRTMP_PATH # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
LIBRTMP_PATH = ../../librtmp-2.3 # http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815
ifndef WINIDN_PATH
WINIDN_PATH = ../../Microsoft IDN Mitigation APIs
endif endif
# Edit the path below to point to the base of your Novell LDAP NDK. # Edit the path below to point to the base of your Novell LDAP NDK.
ifndef LDAP_SDK ifndef LDAP_SDK
@ -45,7 +51,7 @@ LIBCARES_PATH = ../ares
endif endif
CC = gcc CC = gcc
CFLAGS = -g -O2 CFLAGS = -g -O2 -Wall
# comment LDFLAGS below to keep debug info # comment LDFLAGS below to keep debug info
LDFLAGS = -s LDFLAGS = -s
RC = windres RC = windres
@ -100,6 +106,11 @@ ifdef IDN
INCLUDES += -I"$(LIBIDN_PATH)/include" INCLUDES += -I"$(LIBIDN_PATH)/include"
CFLAGS += -DUSE_LIBIDN CFLAGS += -DUSE_LIBIDN
curl_LDADD += -L$(LIBIDN_PATH)/lib -lidn curl_LDADD += -L$(LIBIDN_PATH)/lib -lidn
else
ifdef WINIDN
CFLAGS += -DUSE_WIN32_IDN
DLL_LIBS += -L"$(WINIDN_PATH)" -lnormaliz
endif
endif endif
ifdef SSPI ifdef SSPI
CFLAGS += -DUSE_WINDOWS_SSPI CFLAGS += -DUSE_WINDOWS_SSPI