mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
build: rework language dependencies
Rework the language package dependencies to avoid introducing unnecessary depends. The luci-i18n-$app-$lang packages now depend on luci-$app. * When a language is selected as <*> then the language packs for each enabled LuCI module are built into the image * When a language is selected as <m> then the language packs for each enabled LuCI module are built as package * When CONFIG_ALL is set (e.g. release builds, snapshots) then all language packs are built Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
c5477f717d
commit
1ce2d8f46a
9
luci.mk
9
luci.mk
@ -79,7 +79,7 @@ define Package/$(PKG_NAME)
|
||||
CATEGORY:=LuCI
|
||||
SUBMENU:=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app))
|
||||
TITLE:=$(if $(LUCI_TITLE),$(LUCI_TITLE),LuCI $(LUCI_NAME) $(LUCI_TYPE))
|
||||
DEPENDS:=$(foreach lang,$(LUCI_LANGUAGES),+LUCI_LANG_$(lang):luci-i18n-$(LUCI_BASENAME)-$(lang)) $(LUCI_DEPENDS)
|
||||
DEPENDS:=$(LUCI_DEPENDS)
|
||||
endef
|
||||
|
||||
ifneq ($(LUCI_DESCRIPTION),)
|
||||
@ -179,7 +179,12 @@ define LuciTranslation
|
||||
CATEGORY:=LuCI
|
||||
TITLE:=$(PKG_NAME) - $(1) translation
|
||||
HIDDEN:=1
|
||||
DEFAULT:=m if ALL||LUCI_LANG_$(1)
|
||||
DEFAULT:=LUCI_LANG_$(1)||ALL
|
||||
DEPENDS:=$(PKG_NAME)
|
||||
endef
|
||||
|
||||
define Package/luci-i18n-$(LUCI_BASENAME)-$(1)/description
|
||||
$(LUCI_LANG.$(1))
|
||||
endef
|
||||
|
||||
define Package/luci-i18n-$(LUCI_BASENAME)-$(1)/install
|
||||
|
Loading…
Reference in New Issue
Block a user