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:=Apache-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
HOST_BUILD_DEPENDS:=ninja/host
include ../../lang/python/pypi.mk include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.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_ARGS+=-Dfoo -Dbar=baz
# MESON_HOST_VARS+=FOO=bar # 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 MESON_DIR:=$(STAGING_DIR_HOSTPKG)/lib/meson
@ -105,15 +106,15 @@ define Host/Configure/Meson
endef endef
define Host/Compile/Meson define Host/Compile/Meson
$(call Ninja,-C $(MESON_HOST_BUILD_DIR),)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) $(1)
endef endef
define Host/Install/Meson define Host/Install/Meson
$(call Ninja,-C $(MESON_HOST_BUILD_DIR) install,)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) install
endef endef
define Host/Uninstall/Meson define Host/Uninstall/Meson
-$(call Ninja,-C $(MESON_HOST_BUILD_DIR) uninstall,)
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) uninstall
endef endef
define Build/Configure/Meson define Build/Configure/Meson
@ -130,11 +131,11 @@ define Build/Configure/Meson
endef endef
define Build/Compile/Meson define Build/Compile/Meson
$(call Ninja,-C $(MESON_BUILD_DIR),)
+$(NINJA) -C $(MESON_BUILD_DIR) $(1)
endef endef
define Build/Install/Meson 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 endef
Host/Configure=$(call Host/Configure/Meson) Host/Configure=$(call Host/Configure/Meson)


Loading…
Cancel
Save