2016-06-24 21:22:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ninja
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-13 14:52:38 +02:00
|
|
|
NINJA_VERSION = v1.8.2
|
2016-06-24 21:22:27 +02:00
|
|
|
NINJA_SITE = $(call github,ninja-build,ninja,$(NINJA_VERSION))
|
|
|
|
NINJA_LICENSE = Apache-2.0
|
|
|
|
NINJA_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
HOST_NINJA_DEPENDENCIES = $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
|
|
|
|
|
|
|
|
define HOST_NINJA_BUILD_CMDS
|
|
|
|
(cd $(@D); ./configure.py --bootstrap)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_NINJA_INSTALL_CMDS
|
2017-07-05 13:14:19 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ninja $(HOST_DIR)/bin/ninja
|
2016-06-24 21:22:27 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|