2014-01-07 03:18:58 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2014-01-07 12:55:13 -05:00
|
|
|
# Provide support to use Ninja
|
2014-01-07 03:18:58 -05:00
|
|
|
#
|
2014-01-07 12:55:13 -05:00
|
|
|
# Feature: ninja
|
|
|
|
# Usage: USES=ninja
|
|
|
|
#
|
|
|
|
# User defined variables:
|
|
|
|
# NINJA_VERBOSE - Enable verbose output.
|
|
|
|
#
|
2014-03-15 06:31:54 -04:00
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
2014-01-07 03:18:58 -05:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_NINJA_MK)
|
|
|
|
_INCLUDE_USES_NINJA_MK= yes
|
|
|
|
|
2014-09-28 12:36:31 -04:00
|
|
|
.if !empty(ninja_ARGS)
|
2014-01-07 12:55:13 -05:00
|
|
|
IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
|
2014-01-07 03:18:58 -05:00
|
|
|
.endif
|
2014-01-07 12:55:13 -05:00
|
|
|
|
|
|
|
.if defined(NINJA_VERBOSE)
|
|
|
|
MAKE_ARGS+= -v
|
2014-01-07 03:18:58 -05:00
|
|
|
.endif
|
|
|
|
|
2016-03-26 21:23:25 -04:00
|
|
|
BUILD_DEPENDS+= ninja:devel/ninja
|
2014-01-07 03:18:58 -05:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -GNinja
|
|
|
|
MAKEFILE=
|
|
|
|
MAKE_CMD= ninja
|
|
|
|
MAKE_FLAGS=
|
2015-04-10 01:45:15 -04:00
|
|
|
# Set a minimal job of 1
|
|
|
|
_MAKE_JOBS= -j${MAKE_JOBS_NUMBER}
|
2014-01-07 03:18:58 -05:00
|
|
|
_DESTDIR_VIA_ENV= yes
|
|
|
|
|
|
|
|
.endif
|