mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
luci.mk: automatically depend on luci-lua-runtime
Make packages having a non-empty luasrc/ directory automatically depend on the LuCI Lua runtime package. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
673f38246a
commit
b15d768c9a
6
luci.mk
6
luci.mk
@ -138,6 +138,12 @@ include $(INCLUDE_DIR)/package.mk
|
||||
LUCI_SUBMENU_DEFAULT=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app))
|
||||
LUCI_SUBMENU=$(if $(LUCI_SUBMENU_FORCED),$(LUCI_SUBMENU_FORCED),$(LUCI_SUBMENU_DEFAULT))
|
||||
|
||||
ifneq ($(wildcard ${CURDIR}/luasrc/*),)
|
||||
ifneq ($(filter-out luci-lib-base luci-lua-runtime,$(PKG_NAME)),)
|
||||
LUCI_DEPENDS += +luci-lua-runtime
|
||||
endif
|
||||
endif
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=$(LUCI_SECTION)
|
||||
CATEGORY:=$(LUCI_CATEGORY)
|
||||
|
@ -15,6 +15,7 @@ LUCI_TITLE:=LuCI Lua runtime libraries
|
||||
LUCI_DEPENDS:= \
|
||||
+luci-base \
|
||||
+lua \
|
||||
+luci-lib-base \
|
||||
+luci-lib-nixio \
|
||||
+luci-lib-ip \
|
||||
+luci-lib-jsonc \
|
||||
|
Loading…
Reference in New Issue
Block a user