File tree Expand file tree Collapse file tree
Unix/System.IO.Compression.Native Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88#ifdef _WIN32
99 #define c_static_assert (e ) static_assert((e),"")
10+ #endif
11+
12+ #if defined(_WIN32 ) || defined(__EMSCRIPTEN__ )
1013 #include "../../Windows/System.IO.Compression.Native/zlib/zlib.h"
1114#else
1215 #include "pal_utilities.h"
Original file line number Diff line number Diff line change 11project (System.IO.Compression.Native C )
22
3- if (CLR_CMAKE_TARGET_BROWSER)
4- add_definitions (-s USE_ZLIB )
5- endif ()
6-
73include (${CMAKE_CURRENT_LIST_DIR } /extra_libs.cmake )
84
95set (NATIVE_LIBS_EXTRA)
@@ -13,7 +9,21 @@ set(NATIVECOMPRESSION_SOURCES
139 ../../AnyOS/zlib/pal_zlib.c
1410)
1511
16- if (NOT CLR_CMAKE_TARGET_BROWSER)
12+ if (CLR_CMAKE_TARGET_BROWSER)
13+ set (NATIVECOMPRESSION_SOURCES
14+ ${NATIVECOMPRESSION_SOURCES}
15+ ../../Windows/System.IO.Compression.Native/zlib/adler32.c
16+ ../../Windows/System.IO.Compression.Native/zlib/compress.c
17+ ../../Windows/System.IO.Compression.Native/zlib/crc32.c
18+ ../../Windows/System.IO.Compression.Native/zlib/deflate.c
19+ ../../Windows/System.IO.Compression.Native/zlib/inffast.c
20+ ../../Windows/System.IO.Compression.Native/zlib/inflate.c
21+ ../../Windows/System.IO.Compression.Native/zlib/inftrees.c
22+ ../../Windows/System.IO.Compression.Native/zlib/trees.c
23+ ../../Windows/System.IO.Compression.Native/zlib/zutil.c
24+ )
25+ set_source_files_properties (${NATIVECOMPRESSION_SOURCES} PROPERTIES COMPILE_FLAGS -Wno-implicit-fallthrough)
26+ else ()
1727 #Include Brotli include files
1828 include_directories ("../../AnyOS/brotli/include" )
1929
Original file line number Diff line number Diff line change 8282
8383 <ItemGroup Condition =" '$(OS)' == 'Windows_NT'" >
8484 <_EmccFlags Include =" @(_EmccCommonFlags)" />
85- <_EmccFlags Include =" -s USE_ZLIB=1" />
8685 </ItemGroup >
8786
8887 <WriteLinesToFile File =" $(_EmccDefaultsRspPath)"
You can’t perform that action at this time.
0 commit comments