mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-21 17:04:28 +04:00
Release Notes: https://github.com/ninja-build/ninja/releases/tag/v1.13.2 Link: https://github.com/openwrt/openwrt/pull/20935 Signed-off-by: Nick Hainke <vincent@systemli.org>
38 lines
831 B
Makefile
38 lines
831 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ninja
|
|
PKG_VERSION:=1.13.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/ninja-build/ninja
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
PKG_MIRROR_HASH:=592d95e3529d65bddd65a6f6ee831a762e3d7959d4ef64cd5f7e97c1becd2020
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
define Host/Configure
|
|
cd $(HOST_BUILD_DIR) && \
|
|
$(HOST_MAKE_VARS) \
|
|
CXX="$(HOSTCXX_NOCACHE)" \
|
|
$(STAGING_DIR_HOST)/bin/$(PYTHON) configure.py \
|
|
$(if $(shell $(STAGING_DIR_HOST)/bin/ninja --version),,--bootstrap) \
|
|
--no-rebuild \
|
|
--verbose
|
|
-$(Host/Install)
|
|
endef
|
|
|
|
define Host/Compile
|
|
+$(NINJA) -C $(HOST_BUILD_DIR)
|
|
endef
|
|
|
|
define Host/Install
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/ninja $(STAGING_DIR_HOST)/bin/
|
|
endef
|
|
|
|
define Host/Clean
|
|
rm -f $(STAGING_DIR_HOST)/bin/ninja
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|