2021-06-06 12:31:01 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ninja
|
2022-10-29 08:22:36 +00:00
|
|
|
PKG_VERSION:=1.11.1
|
2021-06-06 12:31:01 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/ninja-build/ninja/tar.gz/v$(PKG_VERSION)?
|
2022-10-29 08:22:36 +00:00
|
|
|
PKG_HASH:=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
|
2021-06-06 12:31:01 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Configure
|
|
|
|
cd $(HOST_BUILD_DIR) && \
|
2024-07-22 19:51:12 +00:00
|
|
|
$(HOST_MAKE_VARS) \
|
2021-06-12 12:24:40 +00:00
|
|
|
CXX="$(HOSTCXX_NOCACHE)" \
|
2024-07-22 19:51:12 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/$(PYTHON) configure.py \
|
2024-08-02 08:02:58 +00:00
|
|
|
$(if $(shell $(STAGING_DIR_HOST)/bin/ninja --version),,--bootstrap) \
|
|
|
|
--no-rebuild \
|
2024-07-22 19:51:12 +00:00
|
|
|
--verbose
|
2024-08-02 08:02:58 +00:00
|
|
|
-$(Host/Install)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
+$(NINJA) -C $(HOST_BUILD_DIR)
|
2021-06-06 12:31:01 +00:00
|
|
|
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))
|