forked from kstep/graphicsmagick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.shi.in
47 lines (39 loc) · 1.58 KB
/
common.shi.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- shell-script -*-
# Copyright (C) 2012-2020 GraphicsMagick Group
# Definitions of optional features and configuration values for this build.
# Intended for use by test scripts.
MAGICK_FEATURES='@MAGICK_FEATURES@'
top_srcdir='@abs_top_srcdir@'
top_builddir='@abs_top_builddir@'
set -a
GM="${MEMCHECK} @abs_top_builddir@/utilities/gm"
LD_LIBRARY_PATH="@abs_top_builddir@/magick/.libs:${LD_LIBRARY_PATH}"
MAGICK_CODER_MODULE_PATH='@abs_top_builddir@/coders'
MAGICK_CONFIGURE_PATH='@abs_top_builddir@/config:@abs_top_srcdir@/config'
MAGICK_FILTER_MODULE_PATH='@abs_top_builddir@/filters'
MAGICK_CODER_STABILITY='BROKEN'
MAGICK_FONT='@abs_top_srcdir@/PerlMagick/demo/Generic.ttf'
PATH="@abs_top_builddir@/utilities:${PATH}"
# Number of bits in a pixel Quantum (8/16/32)
QuantumDepth=@QuantumDepth@
# Memory limit (in MB) for a 'Q8' build
Q8_MEMORY_LIMIT=128
# Apply some resource limits (FAX/G4 need 2592x3508 pixel image!)
if test -z "$MAGICK_LIMIT_MEMORY" ; then
export MAGICK_LIMIT_MEMORY=`expr $Q8_MEMORY_LIMIT '*' '(' $QuantumDepth / 8 ')'`MB
fi
if test -z "$MAGICK_LIMIT_WIDTH" ; then
export MAGICK_LIMIT_WIDTH=2592
fi
if test -z "$MAGICK_LIMIT_HEIGHT" ; then
export MAGICK_LIMIT_HEIGHT=3508
fi
if test -z "$MAGICK_LIMIT_DISK" ; then
export MAGICK_LIMIT_DISK=0
fi
# Enable debug traces for exceptions
if test -z "MAGICK_DEBUG" ; then
export MAGICK_DEBUG=exception
fi
printf "Resource Limits: MAGICK_LIMIT_MEMORY=%s MAGICK_LIMIT_WIDTH=%s MAGICK_LIMIT_HEIGHT=%s MAGICK_LIMIT_DISK=%s\n\n" "$MAGICK_LIMIT_MEMORY" "$MAGICK_LIMIT_WIDTH" "$MAGICK_LIMIT_HEIGHT" "$MAGICK_LIMIT_DISK"
set +a