compress_zlib.cdl 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. cdl_package CYGPKG_COMPRESS_ZLIB {
  50. display "Zlib compress and decompress package"
  51. description "
  52. This package provides support for compression and
  53. decompression."
  54. include_dir cyg/compress
  55. requires CYGPKG_ISOINFRA
  56. requires CYGPKG_CRC
  57. compile adler32.c compress.c uncompr.c zutil.c trees.c
  58. compile deflate.c infback.c inffast.c inflate.c inftrees.c
  59. cdl_interface CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC {
  60. display "Override memory allocation routines."
  61. }
  62. cdl_option CYGSEM_COMPRESS_ZLIB_DEFLATE_MAKES_GZIP {
  63. display "Should deflate() produce 'gzip' compatible output?"
  64. flavor bool
  65. default_value 1
  66. description "
  67. If this option is set then the output of calling deflate()
  68. will be wrapped up as a 'gzip' compatible file."
  69. }
  70. cdl_option CYGSEM_COMPRESS_ZLIB_NEEDS_MALLOC {
  71. display "Does this library need malloc?"
  72. flavor bool
  73. active_if { CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC == 0 }
  74. requires CYGPKG_MEMALLOC
  75. no_define
  76. default_value 1
  77. description "
  78. This pseudo-option will force the memalloc library to be
  79. required iff the application does not provide it's own
  80. infrastructure."
  81. }
  82. cdl_option CYGFUN_COMPRESS_ZLIB_GZIO {
  83. display "Include stdio-like utility functions"
  84. flavor bool
  85. requires CYGINT_ISO_STDIO_FILEPOS
  86. requires CYGINT_ISO_STRING_STRFUNCS
  87. requires CYGINT_ISO_STDIO_FORMATTED_IO
  88. requires CYGINT_ISO_STDIO_FILEACCESS
  89. default_value { CYGPKG_LIBC_STDIO_OPEN ? 1 : 0 }
  90. compile gzio.c
  91. description "
  92. This option enables the stdio-like zlib utility functions
  93. (gzread/gzwrite and friends) provided in gzio.c."
  94. }
  95. # ====================================================================
  96. cdl_component CYGPKG_COMPRESS_ZLIB_OPTIONS {
  97. display "Zlib compress and decompress package build options"
  98. flavor none
  99. no_define
  100. description "
  101. Package specific build options including control over
  102. compiler flags used only in building this package,
  103. and details of which tests are built."
  104. cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_ADD {
  105. display "Additional compiler flags"
  106. flavor data
  107. no_define
  108. default_value { "-D__ECOS__ -DNO_ERRNO_H" }
  109. description "
  110. This option modifies the set of compiler flags for
  111. building this package. These flags are used in addition
  112. to the set of global flags."
  113. }
  114. cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_REMOVE {
  115. display "Suppressed compiler flags"
  116. flavor data
  117. no_define
  118. default_value { "-Wstrict-prototypes" }
  119. description "
  120. This option modifies the set of compiler flags for
  121. building this package. These flags are removed from
  122. the set of global flags if present."
  123. }
  124. cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_ADD {
  125. display "Additional compiler flags"
  126. flavor data
  127. no_define
  128. default_value { "" }
  129. description "
  130. This option modifies the set of compiler flags for
  131. building this package. These flags are used in addition
  132. to the set of global flags."
  133. }
  134. cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_REMOVE {
  135. display "Suppressed compiler flags"
  136. flavor data
  137. no_define
  138. default_value { "" }
  139. description "
  140. This option modifies the set of compiler flags for
  141. building this package. These flags are removed from
  142. the set of global flags if present."
  143. }
  144. }
  145. cdl_option CYGPKG_COMPRESS_ZLIB_TESTS {
  146. display "zlib tests"
  147. flavor data
  148. no_define
  149. calculated { "tests/zlib1 tests/zlib2" }
  150. }
  151. }
  152. # ====================================================================
  153. # EOF compress_zlib.cdl