luci/libs/luci-lib-nixio/Makefile
Sophana KOK f405d23990 restored nixio tls providers
Signed-off-by: Sophana KOK <ml-github@worldspot.net>
2018-09-27 21:12:40 +02:00

54 lines
1.1 KiB
Makefile

#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=NIXIO POSIX library
LUCI_DEPENDS:=+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl +liblua
PKG_LICENSE:=Apache-2.0
define Package/luci-lib-nixio/config
choice
prompt "TLS Provider"
default PACKAGE_luci-lib-nixio_notls
config PACKAGE_luci-lib-nixio_notls
bool "Disabled"
config PACKAGE_luci-lib-nixio_axtls
bool "Builtin (axTLS)"
config PACKAGE_luci-lib-nixio_cyassl
bool "CyaSSL"
select PACKAGE_libcyassl
config PACKAGE_luci-lib-nixio_openssl
bool "OpenSSL"
select PACKAGE_libopenssl
endchoice
endef
NIXIO_TLS:=
ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
NIXIO_TLS:=axtls
endif
ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
NIXIO_TLS:=openssl
endif
ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
NIXIO_TLS:=cyassl
LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
endif
MAKE_VARS += NIXIO_TLS="$(NIXIO_TLS)"
include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature