Skip to content

Commit fe36148

Browse files
committed
msvc: use libiconv
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bdd2f00 commit fe36148

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

compat/vcbuild/Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ INST_BIN=$(INST)/bin
99
PKGDIR=GEN.PKGS
1010

1111
##################################################################
12-
all: unpack expat libssh libssh_redist curl curl_redist openssl zlib
12+
all: unpack expat libssh libssh_redist curl curl_redist openssl zlib \
13+
libiconv libiconv_redist
1314

1415
unpack:
1516
[ -d $(PKGDIR) ] || mkdir $(PKGDIR)
@@ -38,6 +39,25 @@ expat: insdir
3839
cp -r $(EXPAT_LIB)/* $(INST_LIB)/
3940

4041

42+
##################################################################
43+
44+
LIBICONV_VER=1.14.0.11
45+
LIBICONV_ROOT=$(PKGDIR)/libiconv.$(LIBICONV_VER)/build/native
46+
LIBICONV_INC=$(LIBICONV_ROOT)/include
47+
LIBICONV_LIB=$(LIBICONV_ROOT)/lib/v110/x64/Release/dynamic/cdecl
48+
49+
libiconv: insdir
50+
cp -r $(LIBICONV_INC)/* $(INST_INC)/
51+
cp -r $(LIBICONV_LIB)/libiconv.lib $(INST_LIB)/iconv.lib
52+
53+
54+
LIBICONV_REDIST_ROOT=$(PKGDIR)/libiconv.redist.$(LIBICONV_VER)/build/native
55+
LIBICONV_REDIST_BIN=$(LIBICONV_REDIST_ROOT)/bin/v110/x64/Release/dynamic/cdecl
56+
57+
libiconv_redist: insdir
58+
cp -r $(LIBICONV_REDIST_BIN)/* $(INST_BIN)/
59+
60+
4161
##################################################################
4262

4363
LIBSSH_VER=1.4.3.3

compat/vcbuild/packages.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
<package id="expat" version="2.1.0.11" />
77

8+
<package id="libiconv" version="1.14.0.11" />
9+
<package id="libiconv.redist" version="1.14.0.11" />
10+
811
<package id="libssh2" version="1.4.3.3" />
912
<package id="libssh2.redist" version="1.4.3.3" />
1013

config.mak.uname

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ ifeq ($(uname_S),Windows)
358358
NO_STRCASESTR = YesPlease
359359
NO_STRLCPY = YesPlease
360360
NO_MEMMEM = YesPlease
361-
# NEEDS_LIBICONV = YesPlease
362-
NO_ICONV = YesPlease
361+
NEEDS_LIBICONV = YesPlease
363362
NO_STRTOUMAX = YesPlease
364363
NO_MKDTEMP = YesPlease
365364
# VS2015 with UCRT claims that snprintf and friends are C99 compliant,

0 commit comments

Comments
 (0)