You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
386 B

  1. # To execute ninja from you package's Makefile:
  2. #
  3. # include ../../devel/ninja/ninja.mk
  4. #
  5. # define Build/Compile
  6. # $(call Ninja,-C $(MY_NINJA_BUILD_DIR),$(MY_NINJA_ENV_VARS))
  7. # endef
  8. NINJA_ARGS:=$(filter -j%,$(filter-out -j,$(MAKEFLAGS)))
  9. ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
  10. NINJA_ARGS+=-v
  11. endif
  12. define Ninja
  13. $(2) $(STAGING_DIR_HOSTPKG)/bin/ninja $(NINJA_ARGS) $(1)
  14. endef