Browse Source

meson: use ninja from tools

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 3 years ago
parent
commit
0f790bb09d
2 changed files with 7 additions and 8 deletions
  1. +0
    -2
      devel/meson/Makefile
  2. +7
    -6
      devel/meson/meson.mk

+ 0
- 2
devel/meson/Makefile View File

@ -11,8 +11,6 @@ PKG_MAINTAINER:=Andre Heider <a.heider@gmail.com>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=COPYING
HOST_BUILD_DEPENDS:=ninja/host
include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk


+ 7
- 6
devel/meson/meson.mk View File

@ -24,7 +24,8 @@
# MESON_HOST_ARGS+=-Dfoo -Dbar=baz
# MESON_HOST_VARS+=FOO=bar
include $(dir $(lastword $(MAKEFILE_LIST)))/../../devel/ninja/ninja.mk
PKG_BUILD_PARALLEL ?= 1
HOST_BUILD_PARALLEL ?= 1
MESON_DIR:=$(STAGING_DIR_HOSTPKG)/lib/meson
@ -105,15 +106,15 @@ define Host/Configure/Meson
endef
define Host/Compile/Meson
$(call Ninja,-C $(MESON_HOST_BUILD_DIR),)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) $(1)
endef
define Host/Install/Meson
$(call Ninja,-C $(MESON_HOST_BUILD_DIR) install,)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) install
endef
define Host/Uninstall/Meson
-$(call Ninja,-C $(MESON_HOST_BUILD_DIR) uninstall,)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) uninstall
endef
define Build/Configure/Meson
@ -130,11 +131,11 @@ define Build/Configure/Meson
endef
define Build/Compile/Meson
$(call Ninja,-C $(MESON_BUILD_DIR),)
+$(NINJA) -C $(MESON_BUILD_DIR) $(1)
endef
define Build/Install/Meson
$(call Ninja,-C $(MESON_BUILD_DIR) install,DESTDIR="$(PKG_INSTALL_DIR)")
+DESTDIR="$(PKG_INSTALL_DIR)" $(NINJA) -C $(MESON_BUILD_DIR) install
endef
Host/Configure=$(call Host/Configure/Meson)


Loading…
Cancel
Save