• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 0fe939d..34b6472 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -167,21 +167,21 @@ file(READ ${CMAKE_CURRENT_SOURCE_DIR}/zlib.h _zlib_h_contents)
6 string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
7     "\\1" ZLIB_FULL_VERSION ${_zlib_h_contents})
8
9-if(MINGW)
10+#if(MINGW)
11     # This gets us DLL resource information when compiling on MinGW.
12-    if(NOT CMAKE_RC_COMPILER)
13-        set(CMAKE_RC_COMPILER windres.exe)
14-    endif()
15-
16-    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
17-                       COMMAND ${CMAKE_RC_COMPILER}
18-                            -D GCC_WINDRES
19-                            -I ${CMAKE_CURRENT_SOURCE_DIR}
20-                            -I ${CMAKE_CURRENT_BINARY_DIR}
21-                            -o ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
22-                            -i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
23-    set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
24-endif(MINGW)
25+#    if(NOT CMAKE_RC_COMPILER)
26+#        set(CMAKE_RC_COMPILER windres.exe)
27+#    endif()
28+
29+#    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
30+#                       COMMAND ${CMAKE_RC_COMPILER}
31+#                            -D GCC_WINDRES
32+#                            -I ${CMAKE_CURRENT_SOURCE_DIR}
33+#                            -I ${CMAKE_CURRENT_BINARY_DIR}
34+#                            -o ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
35+#                            -i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
36+#    set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
37+#endif(MINGW)
38
39 add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
40 add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
41@@ -230,20 +230,20 @@ endif()
42 # Example binaries
43 #============================================================================
44
45-add_executable(example test/example.c)
46-target_link_libraries(example zlib)
47-add_test(example example)
48+#add_executable(example test/example.c)
49+#target_link_libraries(example zlib)
50+#add_test(example example)
51
52-add_executable(minigzip test/minigzip.c)
53-target_link_libraries(minigzip zlib)
54+#add_executable(minigzip test/minigzip.c)
55+#target_link_libraries(minigzip zlib)
56
57-if(HAVE_OFF64_T)
58-    add_executable(example64 test/example.c)
59-    target_link_libraries(example64 zlib)
60-    set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
61-    add_test(example64 example64)
62+#if(HAVE_OFF64_T)
63+#    add_executable(example64 test/example.c)
64+#    target_link_libraries(example64 zlib)
65+#    set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
66+#    add_test(example64 example64)
67
68-    add_executable(minigzip64 test/minigzip.c)
69-    target_link_libraries(minigzip64 zlib)
70-    set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
71-endif()
72+#   add_executable(minigzip64 test/minigzip.c)
73+#    target_link_libraries(minigzip64 zlib)
74+#    set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
75+#endif()
76