mirror of
https://github.com/reactos/reactos.git
synced 2024-08-31 07:38:48 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
23 lines
512 B
CMake
23 lines
512 B
CMake
|
|
add_definitions(-DBZ_NO_STDIO -DBZ_DECOMPRESS_ONLY)
|
|
spec2def(unbzip2.sys unbzip2.spec)
|
|
|
|
list(APPEND SOURCE
|
|
bzlib.c
|
|
randtable.c
|
|
crctable.c
|
|
decompress.c
|
|
huffman.c
|
|
dllmain.c
|
|
bzlib_private.h)
|
|
|
|
add_library(bzip2 MODULE
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_BINARY_DIR}/unbzip2.def)
|
|
|
|
set_module_type(bzip2 kernelmodedriver)
|
|
add_importlibs(bzip2 ntoskrnl)
|
|
target_link_libraries(bzip2 libcntpr)
|
|
add_pch(bzip2 bzlib_private.h SOURCE)
|
|
set_target_properties(bzip2 PROPERTIES OUTPUT_NAME "unbzip2")
|