mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ninja: use for CMake
CMake supports Ninja for faster compilation and less bugginess when it comes to parallel compilation. That is, some CMake packages currently have PKG_BUILD_PARALLEL set where it is not needed with ninja. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
include ../../devel/ninja/ninja.mk
|
||||
|
||||
CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja"
|
||||
CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja"
|
||||
|
||||
define Host/Compile/Default
|
||||
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
|
||||
endef
|
||||
|
||||
define Host/Install/Default
|
||||
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) install,DESTDIR="$(HOST_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
define Host/Uninstall/Default
|
||||
-$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) uninstall,)
|
||||
endef
|
||||
|
||||
define Build/Compile/Default
|
||||
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
|
||||
endef
|
||||
|
||||
define Build/Install/Default
|
||||
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) install,DESTDIR="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
Reference in New Issue
Block a user