Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/ninja.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Provide support to use Ninja | # Provide support to use Ninja | ||||
# | # | ||||
# Feature: ninja | # Feature: ninja | ||||
# Usage: USES=ninja | # Usage: USES=ninja | ||||
# | # | ||||
# User defined variables: | |||||
# NINJA_VERBOSE - Enable verbose output. | |||||
# | |||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_NINJA_MK) | .if !defined(_INCLUDE_USES_NINJA_MK) | ||||
_INCLUDE_USES_NINJA_MK= yes | _INCLUDE_USES_NINJA_MK= yes | ||||
.if !empty(ninja_ARGS) | .if !empty(ninja_ARGS) | ||||
IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments | IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments | ||||
.endif | .endif | ||||
.if defined(NINJA_VERBOSE) | |||||
MAKE_ARGS+= -v | MAKE_ARGS+= -v | ||||
.endif | |||||
BUILD_DEPENDS+= ninja:devel/ninja | BUILD_DEPENDS+= ninja:devel/ninja | ||||
CMAKE_ARGS+= -GNinja | CMAKE_ARGS+= -GNinja | ||||
MAKEFILE= | MAKEFILE= | ||||
MAKE_CMD= ninja | MAKE_CMD= ninja | ||||
MAKE_FLAGS= | MAKE_FLAGS= | ||||
# Set a minimal job of 1 | # Set a minimal job of 1 | ||||
_MAKE_JOBS= -j${MAKE_JOBS_NUMBER} | _MAKE_JOBS= -j${MAKE_JOBS_NUMBER} | ||||
_DESTDIR_VIA_ENV= yes | _DESTDIR_VIA_ENV= yes | ||||
.endif | .endif |