003-attach-sourcefiles-in-patch-002-to-buildsystem.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 8e75f66..24d7329 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -95,34 +95,67 @@ set(ZLIB_PUBLIC_HDRS
  6. ${CMAKE_CURRENT_BINARY_DIR}/zconf.h
  7. zlib.h
  8. )
  9. -set(ZLIB_PRIVATE_HDRS
  10. - crc32.h
  11. - deflate.h
  12. - gzguts.h
  13. - inffast.h
  14. - inffixed.h
  15. - inflate.h
  16. - inftrees.h
  17. - trees.h
  18. - zutil.h
  19. -)
  20. -set(ZLIB_SRCS
  21. - adler32.c
  22. - compress.c
  23. - crc32.c
  24. - deflate.c
  25. - gzclose.c
  26. - gzlib.c
  27. - gzread.c
  28. - gzwrite.c
  29. - inflate.c
  30. - infback.c
  31. - inftrees.c
  32. - inffast.c
  33. - trees.c
  34. - uncompr.c
  35. - zutil.c
  36. -)
  37. +
  38. +if(ARMv8)
  39. + set(ZLIB_PRIVATE_HDRS
  40. + crc32.h
  41. + deflate.h
  42. + gzguts.h
  43. + inffast.h
  44. + inffixed.h
  45. + inflate.h
  46. + inftrees.h
  47. + trees.h
  48. + zutil.h
  49. + contrib/arm/chunkcopy.h
  50. + )
  51. + set(ZLIB_SRCS
  52. + adler32.c
  53. + compress.c
  54. + crc32.c
  55. + deflate.c
  56. + gzclose.c
  57. + gzlib.c
  58. + gzread.c
  59. + gzwrite.c
  60. + infback.c
  61. + inftrees.c
  62. + contrib/arm/inflate.c
  63. + contrib/arm/inffast.c
  64. + trees.c
  65. + uncompr.c
  66. + zutil.c
  67. + )
  68. + else()
  69. + set(ZLIB_PRIVATE_HDRS
  70. + crc32.h
  71. + deflate.h
  72. + gzguts.h
  73. + inffast.h
  74. + inffixed.h
  75. + inflate.h
  76. + inftrees.h
  77. + trees.h
  78. + zutil.h
  79. + )
  80. + set(ZLIB_SRCS
  81. + adler32.c
  82. + compress.c
  83. + crc32.c
  84. + deflate.c
  85. + gzclose.c
  86. + gzlib.c
  87. + gzread.c
  88. + gzwrite.c
  89. + inflate.c
  90. + infback.c
  91. + inftrees.c
  92. + inffast.c
  93. + trees.c
  94. + uncompr.c
  95. + zutil.c
  96. + )
  97. +endif()
  98. if(NOT MINGW)
  99. set(ZLIB_DLL_SRCS