From: Samuel Martin <s.martin49@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
Date: Sun, 19 Oct 2014 20:04:37 +0200 [thread overview]
Message-ID: <1413741891-30113-2-git-send-email-s.martin49@gmail.com> (raw)
In-Reply-To: <1413741891-30113-1-git-send-email-s.martin49@gmail.com>
This patch globally disables doc, examples and tests build for both the
target and host packages.
If needed, these configure flags can be overloaded in the per-package
*_CONF_OPTS variables.
This makes the cmake-package infrastructure even closer to the autotools
one.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/pkg-cmake.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 92574e2..3c5d4fe 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -66,6 +66,12 @@ define $(2)_CONFIGURE_CMDS
-DCMAKE_BUILD_TYPE=$$(if $$(BR2_ENABLE_DEBUG),Debug,Release) \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_COLOR_MAKEFILE=OFF \
+ -DBUILD_DOC=OFF \
+ -DBUILD_DOCS=OFF \
+ -DBUILD_EXAMPLE=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TEST=OFF \
+ -DBUILD_TESTS=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=$$(if $$(BR2_PREFER_STATIC_LIB),OFF,ON) \
-DUSE_CCACHE=$$(if $$(BR2_CCACHE),ON,OFF) \
@@ -89,6 +95,12 @@ define $(2)_CONFIGURE_CMDS
-DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
+ -DBUILD_DOC=OFF \
+ -DBUILD_DOCS=OFF \
+ -DBUILD_EXAMPLE=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TEST=OFF \
+ -DBUILD_TESTS=OFF \
-DBUILD_TESTING=OFF \
$$($$(PKG)_CONF_OPTS) \
)
--
2.1.2
next prev parent reply other threads:[~2014-10-19 18:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
2014-10-19 18:04 ` Samuel Martin [this message]
2014-10-19 20:10 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Thomas Petazzoni
2014-10-19 20:28 ` Samuel Martin
2014-10-19 20:56 ` Thomas Petazzoni
2014-10-20 8:34 ` Samuel Martin
2014-10-20 19:57 ` Arnout Vandecappelle
2014-10-19 18:04 ` [Buildroot] [PATCH 02/15] package/pkg-cmake.mk: disable colouring the output Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 03/15] package/clapack: cleanup configure options Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 04/15] package/flann: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 05/15] package/libsoxr: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 06/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 07/15] package/libubox: cleanup dependencies Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 08/15] package/libubox: cleanup configure options Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 09/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 10/15] package/libuci: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 11/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 12/15] package/ne10: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 13/15] package/opencv: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 14/15] package/polarssl: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 15/15] docs/manual: update cmake-package infrastructure section Samuel Martin
2014-10-26 16:08 ` [Buildroot] [PATCH 00/15] CMake janitor Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1413741891-30113-2-git-send-email-s.martin49@gmail.com \
--to=s.martin49@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox