mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
58a8ad3801
Release Notes: https://github.com/ninja-build/ninja/releases/tag/v1.11.1 Sync the "100-make_jobserver_support.patch" with the PR: https://github.com/ninja-build/ninja/pull/1140 Signed-off-by: Nick Hainke <vincent@systemli.org>
40 lines
940 B
Makefile
40 lines
940 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ninja
|
|
PKG_VERSION:=1.11.1
|
|
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)?
|
|
PKG_HASH:=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
CONFIGURE_ARGS:=
|
|
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
|
|
CONFIGURE_ARGS+=--verbose
|
|
endif
|
|
|
|
define Host/Configure
|
|
endef
|
|
|
|
define Host/Compile
|
|
cd $(HOST_BUILD_DIR) && \
|
|
CXX="$(HOSTCXX_NOCACHE)" \
|
|
CXXFLAGS="$(HOST_CXXFLAGS) $(HOST_CPPFLAGS)" \
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
$(STAGING_DIR_HOST)/bin/$(PYTHON) configure.py --bootstrap $(CONFIGURE_ARGS)
|
|
endef
|
|
|
|
define Host/Install
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/ninja $(STAGING_DIR_HOST)/bin/
|
|
endef
|
|
|
|
define Host/Clean
|
|
$(call Host/Clean/Default)
|
|
rm -f $(STAGING_DIR_HOST)/bin/ninja
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|