build system: don't build tools by default but provide configure option

This commit is contained in:
Moritz Bunkus 2015-03-25 20:21:59 +01:00
parent 2fcc79b00c
commit c2a74a8ebe
4 changed files with 7 additions and 1 deletions

View File

@ -124,7 +124,7 @@ def define_default_task
# The applications themselves
targets = $applications.clone
targets << "apps:tools"
targets << "apps:tools" if c?(:BUILD_TOOLS)
# Build the unit tests only if requested
targets << ($run_unit_tests ? 'tests:run_unit' : 'tests:unit') if $have_gtest

4
ac/tools.m4 Normal file
View File

@ -0,0 +1,4 @@
AC_ARG_WITH(tools,[AS_HELP_STRING([--with-tools],[build the tools in the src/tools sub-directory (useful mainly for development)])],
[BUILD_TOOLS=yes],[BUILD_TOOLS=no])
AC_SUBST(BUILD_TOOLS)

View File

@ -136,6 +136,7 @@ ZLIB_LIBS = @ZLIB_LIBS@
USE_WXWIDGETS = @USE_WXWIDGETS@
USE_QT = @USE_QT@
BUILD_MKVTOOLNIX_GUI = @BUILD_MKVTOOLNIX_GUI@
BUILD_TOOLS = @BUILD_TOOLS@
TRANSLATIONS = @TRANSLATIONS@
MANPAGES_TRANSLATIONS = @MANPAGES_TRANSLATIONS@

View File

@ -52,6 +52,7 @@ m4_include(ac/po4a.m4)
m4_include(ac/translations.m4)
m4_include(ac/manpages_translations.m4)
m4_include(ac/guide_translations.m4)
m4_include(ac/tools.m4)
AC_OUTPUT(build-config)