View | Details | Raw Unified | Return to bug 251191 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Uses/ninja.mk (-7 / +10 lines)
Lines 14-29 Link Here
14
IGNORE=	Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
14
IGNORE=	Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
15
.endif
15
.endif
16
16
17
MAKE_ARGS+=	-v
18
19
BUILD_DEPENDS+=	ninja:devel/ninja
17
BUILD_DEPENDS+=	ninja:devel/ninja
20
18
21
CMAKE_ARGS+=	-GNinja
19
CMAKE_ARGS+=	-GNinja
22
MAKEFILE=
20
# Intended to be used to pass options to ninja
23
MAKE_CMD=	ninja
21
NINJA_FLAGS?=
24
MAKE_FLAGS=
22
DO_MAKE_BUILD=	${SETENV} ${MAKE_ENV} ninja -v -j${MAKE_JOBS_NUMBER} ${NINJA_FLAGS}
25
# Set a minimal job of 1
23
DO_MAKE_TEST=	${SETENV} ${TEST_ENV} ninja -v -j${MAKE_JOBS_NUMBER} ${NINJA_FLAGS}
26
_MAKE_JOBS=	-j${MAKE_JOBS_NUMBER}
27
_DESTDIR_VIA_ENV=	yes
24
_DESTDIR_VIA_ENV=	yes
28
25
26
.if !target(do-install) && !defined(NO_INSTALL)
27
do-install:
28
	@(cd ${INSTALL_WRKSRC} && \
29
	${SETENV} ${MAKE_ENV} ${FAKEROOT} ninja -v -j${MAKE_JOBS_NUMBER} ${INSTALL_TARGET} ${NINJA_FLAGS})
29
.endif
30
.endif
31
32
.endif

Return to bug 251191