|
@ -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) |
|
|