Browse Source

- auto-assign some dependencies

master
vanhofen 2 years ago
parent
commit
d88514c56f
  1. 2
      package/meson/meson.mk
  2. 14
      package/pkg-utils.mk
  3. 2
      package/python-setuptools/python-setuptools.mk

2
package/meson/meson.mk

@ -11,7 +11,7 @@ MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSI
# -----------------------------------------------------------------------------
HOST_MESON_DEPENDENCIES = host-ninja host-python3 host-python-setuptools
HOST_MESON_DEPENDENCIES = host-ninja
HOST_MESON_BINARY = $(HOST_DIR)/bin/meson

14
package/pkg-utils.mk

@ -182,7 +182,7 @@ ifndef $(PKG)_NINJA_OPTS
$(PKG)_NINJA_OPTS =
endif
#kconfig
# kconfig
ifeq ($(PKG_MODE),KCONFIG)
ifndef $(PKG)_KCONFIG_FILE
$(PKG)_KCONFIG_FILE = .config
@ -190,6 +190,18 @@ ifeq ($(PKG_MODE),KCONFIG)
$(PKG)_KCONFIG_DOTCONFIG = $$($(PKG)_KCONFIG_FILE)
endif
# auto-assign some dependencies
ifndef $(PKG)_DEPENDENCIES
$(PKG)_DEPENDENCIES =
endif
ifeq ($(PKG_MODE),MESON)
$(PKG)_DEPENDENCIES += host-meson
endif
ifeq ($(PKG_MODE),PYTHON3)
$(PKG)_DEPENDENCIES += host-python3
$(PKG)_DEPENDENCIES += $$(if $$(filter $$(pkg),host-python-setuptools),,host-python-setuptools)
endif
endef # PKG_CHECK_VARIABLES
pkg-check-variables = $(call PKG_CHECK_VARIABLES)

2
package/python-setuptools/python-setuptools.mk

@ -11,7 +11,5 @@ PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/ea/a3/3d3cbbb71
# -----------------------------------------------------------------------------
HOST_PYTHON_SETUPTOOLS_DEPENDENCIES = host-python3
host-python-setuptools: | $(HOST_DIR)
$(call host-python3-package)

Loading…
Cancel
Save