From f12b8d1c94c06ee84a070b94b72ed2ef780c1268 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 18 Feb 2012 18:07:42 +0100 Subject: [PATCH] Config: Support "LibUCW only" mode --- default.cfg | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/default.cfg b/default.cfg index 90667f3f..1b387ca6 100644 --- a/default.cfg +++ b/default.cfg @@ -10,30 +10,35 @@ Set("CONFIG_DEBUG"); # We want the public API Set("CONFIG_INSTALL_API"); -# Libucw should support files >2GB and threading +# LibUCW should support files >2GB and threading Set("CONFIG_UCW_LARGE_FILES"); Set("CONFIG_UCW_THREADS" => 1); -# Libucw extensions -Set("CONFIG_UCW_PERL" => 1); -Set("CONFIG_UCW_PERL_MODULES" => 1); -Set("CONFIG_UCW_SHELL_UTILS" => 1); -Set("CONFIG_UCW_UTILS" => 1); - -# Libimages settings -Set("CONFIG_IMAGES"); -Set("CONFIG_IMAGES_LIBJPEG"); -Set("CONFIG_IMAGES_LIBPNG"); -Set("CONFIG_IMAGES_LIBUNGIF"); -UnSet("CONFIG_IMAGES_LIBGIF"); -UnSet("CONFIG_IMAGES_LIBMAGICK"); - -# Libcharset -Set("CONFIG_CHARSET"); -Set("CONFIG_CHARSET_UTILS"); - -# Libshxml -Set("CONFIG_SHXML"); +# Build only LibUCW itself +UnSet("CONFIG_UCW_ONLY"); + +unless (Get("CONFIG_UCW_ONLY")) { + # Libucw extensions + Set("CONFIG_UCW_PERL" => 1); + Set("CONFIG_UCW_PERL_MODULES" => 1); + Set("CONFIG_UCW_SHELL_UTILS" => 1); + Set("CONFIG_UCW_UTILS" => 1); + + # Libimages settings + Set("CONFIG_IMAGES"); + Set("CONFIG_IMAGES_LIBJPEG"); + Set("CONFIG_IMAGES_LIBPNG"); + Set("CONFIG_IMAGES_LIBUNGIF"); + UnSet("CONFIG_IMAGES_LIBGIF"); + UnSet("CONFIG_IMAGES_LIBMAGICK"); + + # Libcharset + Set("CONFIG_CHARSET"); + Set("CONFIG_CHARSET_UTILS"); + + # Libshxml + Set("CONFIG_SHXML"); +} # Return success 1; -- 2.39.2