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.

25 lines
701 B

  1. include $(INCLUDE_DIR)/cmake.mk
  2. include ../../devel/ninja/ninja.mk
  3. CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja"
  4. CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja"
  5. define Host/Compile/Default
  6. $(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
  7. endef
  8. define Host/Install/Default
  9. $(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) install,)
  10. endef
  11. define Host/Uninstall/Default
  12. -$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) uninstall,)
  13. endef
  14. define Build/Compile/Default
  15. $(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
  16. endef
  17. define Build/Install/Default
  18. $(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) install,DESTDIR="$(PKG_INSTALL_DIR)")
  19. endef