2020-09-22 02:48:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2011-02-02 01:26:19 +00:00
|
|
|
#
|
2020-09-22 02:48:37 +00:00
|
|
|
# Copyright (C) 2011-2020 OpenWrt.org
|
2011-02-02 01:26:19 +00:00
|
|
|
|
|
|
|
# iconv full
|
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
|
|
|
ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-full
|
|
|
|
ICONV_FULL:=1
|
|
|
|
|
|
|
|
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
|
|
|
|
INTL_FULL:=1
|
|
|
|
|
|
|
|
else
|
2022-06-09 19:18:13 +00:00
|
|
|
ICONV_PREFIX:=
|
2011-02-02 01:26:19 +00:00
|
|
|
ICONV_FULL:=
|
|
|
|
|
2022-06-05 18:02:08 +00:00
|
|
|
INTL_PREFIX:=
|
2011-02-02 01:26:19 +00:00
|
|
|
INTL_FULL:=
|
|
|
|
endif
|
|
|
|
|
|
|
|
PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS
|
|
|
|
|
|
|
|
ICONV_DEPENDS:=+BUILD_NLS:libiconv-full
|
2022-06-09 19:18:13 +00:00
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
|
|
|
ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include
|
|
|
|
ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include
|
|
|
|
ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib
|
|
|
|
else
|
|
|
|
ICONV_CFLAGS:=
|
|
|
|
ICONV_CPPFLAGS:=
|
|
|
|
ICONV_LDFLAGS:=
|
|
|
|
endif
|
2011-02-02 01:26:19 +00:00
|
|
|
|
|
|
|
INTL_DEPENDS:=+BUILD_NLS:libintl-full
|
2022-06-05 18:02:08 +00:00
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
|
|
|
INTL_CFLAGS:=-I$(INTL_PREFIX)/include
|
|
|
|
INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include
|
|
|
|
INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib
|
|
|
|
else
|
|
|
|
INTL_CFLAGS:=
|
|
|
|
INTL_CPPFLAGS:=
|
|
|
|
INTL_LDFLAGS:=
|
|
|
|
endif
|
2011-02-02 01:26:19 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS)
|
2015-04-01 08:31:38 +00:00
|
|
|
TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS)
|
2011-02-02 01:26:19 +00:00
|
|
|
TARGET_LDFLAGS += $(ICONV_LDFLAGS) $(INTL_LDFLAGS)
|