xref: /nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/cdl/compress_zlib.cdl (revision 104654410c56c573564690304ae786df310c91fc)
1# ====================================================================
2#
3#      compress_zlib.cdl
4#
5#      Zlib compress/decompress configuration data
6#
7# ====================================================================
8## ####ECOSGPLCOPYRIGHTBEGIN####
9## -------------------------------------------
10## This file is part of eCos, the Embedded Configurable Operating System.
11## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
12##
13## eCos is free software; you can redistribute it and/or modify it under
14## the terms of the GNU General Public License as published by the Free
15## Software Foundation; either version 2 or (at your option) any later
16## version.
17##
18## eCos is distributed in the hope that it will be useful, but WITHOUT
19## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21## for more details.
22##
23## You should have received a copy of the GNU General Public License
24## along with eCos; if not, write to the Free Software Foundation, Inc.,
25## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26##
27## As a special exception, if other files instantiate templates or use
28## macros or inline functions from this file, or you compile this file
29## and link it with other works to produce a work based on this file,
30## this file does not by itself cause the resulting work to be covered by
31## the GNU General Public License. However the source code for this file
32## must still be made available in accordance with section (3) of the GNU
33## General Public License v2.
34##
35## This exception does not invalidate any other reasons why a work based
36## on this file might be covered by the GNU General Public License.
37## -------------------------------------------
38## ####ECOSGPLCOPYRIGHTEND####
39# ====================================================================
40######DESCRIPTIONBEGIN####
41#
42# Author(s):      jskov
43# Contributors:
44# Date:           2001-03-06
45#
46#####DESCRIPTIONEND####
47#
48# ====================================================================
49
50cdl_package CYGPKG_COMPRESS_ZLIB {
51    display       "Zlib compress and decompress package"
52    description   "
53                  This package provides support for compression and
54                  decompression."
55    include_dir   cyg/compress
56
57    requires      CYGPKG_ISOINFRA
58    requires      CYGPKG_CRC
59
60    compile       adler32.c compress.c uncompr.c zutil.c trees.c
61    compile       deflate.c infback.c inffast.c inflate.c inftrees.c
62
63    cdl_interface CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC {
64        display "Override memory allocation routines."
65    }
66
67    cdl_option  CYGSEM_COMPRESS_ZLIB_DEFLATE_MAKES_GZIP {
68        display        "Should deflate() produce 'gzip' compatible output?"
69        flavor         bool
70        default_value  1
71        description "
72          If this option is set then the output of calling deflate()
73          will be wrapped up as a 'gzip' compatible file."
74    }
75
76    cdl_option CYGSEM_COMPRESS_ZLIB_NEEDS_MALLOC {
77        display        "Does this library need malloc?"
78        flavor         bool
79        active_if      { CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC == 0 }
80        requires       CYGPKG_MEMALLOC
81        no_define
82        default_value  1
83        description    "
84           This pseudo-option will force the memalloc library to be
85           required iff the application does not provide it's own
86           infrastructure."
87    }
88
89    cdl_option CYGFUN_COMPRESS_ZLIB_GZIO {
90        display        "Include stdio-like utility functions"
91        flavor         bool
92        requires       CYGINT_ISO_STDIO_FILEPOS
93        requires       CYGINT_ISO_STRING_STRFUNCS
94        requires       CYGINT_ISO_STDIO_FORMATTED_IO
95        requires       CYGINT_ISO_STDIO_FILEACCESS
96        default_value  { CYGPKG_LIBC_STDIO_OPEN ? 1 : 0 }
97        compile        gzio.c
98        description    "
99           This option enables the stdio-like zlib utility functions
100           (gzread/gzwrite and friends) provided in gzio.c."
101    }
102
103
104# ====================================================================
105
106    cdl_component CYGPKG_COMPRESS_ZLIB_OPTIONS {
107        display "Zlib compress and decompress package build options"
108        flavor  none
109        no_define
110        description   "
111	    Package specific build options including control over
112	    compiler flags used only in building this package,
113	    and details of which tests are built."
114
115        cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_ADD {
116            display "Additional compiler flags"
117            flavor  data
118            no_define
119            default_value { "-D__ECOS__ -DNO_ERRNO_H" }
120            description   "
121                This option modifies the set of compiler flags for
122                building this package. These flags are used in addition
123                to the set of global flags."
124        }
125
126        cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_REMOVE {
127            display "Suppressed compiler flags"
128            flavor  data
129            no_define
130            default_value { "-Wstrict-prototypes" }
131            description   "
132                This option modifies the set of compiler flags for
133                building this package. These flags are removed from
134                the set of global flags if present."
135        }
136
137        cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_ADD {
138            display "Additional compiler flags"
139            flavor  data
140            no_define
141            default_value { "" }
142            description   "
143                This option modifies the set of compiler flags for
144                building this package. These flags are used in addition
145                to the set of global flags."
146        }
147
148        cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_REMOVE {
149            display "Suppressed compiler flags"
150            flavor  data
151            no_define
152            default_value { "" }
153            description   "
154                This option modifies the set of compiler flags for
155                building this package. These flags are removed from
156                the set of global flags if present."
157        }
158
159    }
160
161    cdl_option CYGPKG_COMPRESS_ZLIB_TESTS {
162        display "zlib tests"
163        flavor  data
164        no_define
165        calculated { "tests/zlib1 tests/zlib2" }
166    }
167}
168
169# ====================================================================
170# EOF compress_zlib.cdl
171