/[ports]/head/Mk/Uses/ninja.mk
ViewVC logotype

Contents of /head/Mk/Uses/ninja.mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 421635 - (show annotations) (download)
Fri Sep 9 19:42:46 2016 UTC (7 years, 9 months ago) by amdmi3
File MIME type: text/plain
File size: 491 byte(s)
Most commonly used build systems support silent builds, when they
hide actual commands executed and only show short summary line (like
"CC foo.c"). CMake and ninja enable this by default, some autotools
using ports do as well. This is unacceptable because we need complete
build logs at any time, so we now switch to verbose build logs
unconditionally. Note that this change deliberately affects ALL
builds and not only package builds on cluster, because we need to
be sure that user experiencing failure can always provide informative
build log regardless of settings and without rerunning the build.

Change summary:

- Always do verbose builds for cmake, ninja and GNU configure (the
  latter includes check if --disable-silent-rules is actually supported
  by the configure script; there are isolated cases when it's not true)
- Remove CMAKE_VERBOSE, NINJA_VERBOSE and
  CONFIGURE_ARGS=--disable-silent-rules from all ports which set them
  for this is no longer needed
- Revert hacks for --disable-silent-rules support priorly committed
  to biology/ncbi-blast+ and net-p2p/mldonkey - no longer needed as well

Submitted by:	amdmi3
Reviewed by:	mat
Exp-run by:	antoine
Approved by:	portmgr (mat, antoine)
Differential Revision:	D7534

1 # $FreeBSD$
2 #
3 # Provide support to use Ninja
4 #
5 # Feature: ninja
6 # Usage: USES=ninja
7 #
8 # MAINTAINER: portmgr@FreeBSD.org
9
10 .if !defined(_INCLUDE_USES_NINJA_MK)
11 _INCLUDE_USES_NINJA_MK= yes
12
13 .if !empty(ninja_ARGS)
14 IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
15 .endif
16
17 MAKE_ARGS+= -v
18
19 BUILD_DEPENDS+= ninja:devel/ninja
20
21 CMAKE_ARGS+= -GNinja
22 MAKEFILE=
23 MAKE_CMD= ninja
24 MAKE_FLAGS=
25 # Set a minimal job of 1
26 _MAKE_JOBS= -j${MAKE_JOBS_NUMBER}
27 _DESTDIR_VIA_ENV= yes
28
29 .endif

Properties

Name Value
svn:eol-style native
svn:keywords FreeBSD=%H
svn:mime-type text/plain

  ViewVC Help
Powered by ViewVC 1.1.27