summaryrefslogtreecommitdiffstats
blob: 6f0e367e53a7cc73baba2c7ec1a177371219829d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CXXFLAGS += -isystem 3rdParty/LibIDN/src
CFLAGS += -isystem 3rdParty/LibIDN/src -isystem 3rdParty/LibIDN/stubs
ifeq ($(WIN32),1)
CPPFLAGS += -DIDNA_STATIC
CFLAGS += -isystem 3rdParty/LibIDN/stubs/win32
CFLAGS += -Dstrcasecmp=stricmp -Dstrncasecmp=strnicmp
CXXFLAGS += -isystem 3rdParty/LibIDN/stubs/win32
endif

LIBIDN_SOURCES += \
	3rdParty/LibIDN/src/stringprep.c \
	3rdParty/LibIDN/src/profiles.c \
	3rdParty/LibIDN/src/rfc3454.c \
	3rdParty/LibIDN/src/punycode.c \
	3rdParty/LibIDN/src/idna.c \
	3rdParty/LibIDN/src/toutf8.c \
	3rdParty/LibIDN/src/nfkc.c

LIBIDN_OBJECTS = \
	$(LIBIDN_SOURCES:.c=.o)

CLEANFILES += \
	$(LIBIDN_SOURCES:.c=.gcda) \
	$(LIBIDN_SOURCES:.c=.gcno) \
	$(LIBIDN_OBJECTS)