ar71xx: add preliminary support for Mikrotik RB2011L
[oweals/openwrt.git] / include / nls.mk
1 #
2 # Copyright (C) 2011-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 # iconv full
9 ifeq ($(CONFIG_BUILD_NLS),y)
10         ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-full
11         ICONV_FULL:=1
12
13         INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
14         INTL_FULL:=1
15
16 # iconv stub
17 else
18         ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-stub
19         ICONV_FULL:=
20
21         INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-stub
22         INTL_FULL:=
23 endif
24
25 PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS
26 PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv !BUILD_NLS:libintl
27
28 ICONV_DEPENDS:=+BUILD_NLS:libiconv-full
29 ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include
30 ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include
31 ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib
32
33 INTL_DEPENDS:=+BUILD_NLS:libintl-full
34 INTL_CFLAGS:=-I$(INTL_PREFIX)/include
35 INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include
36 INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib
37
38 TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS)
39 TARGET_CPPFLAGS += $(ICONV_CFLAGS) $(INTL_CPPFLAGS)
40 TARGET_LDFLAGS += $(ICONV_LDFLAGS) $(INTL_LDFLAGS)