mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
23373acbb9
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.
35 lines
708 B
CMake
35 lines
708 B
CMake
|
|
add_definitions(
|
|
-DWIN32
|
|
-DNDEBUG
|
|
-D_WINDOWS
|
|
-DPNG_BUILD_DLL)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libpng
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
|
|
|
list(APPEND SOURCE
|
|
png.c
|
|
pngerror.c
|
|
pngget.c
|
|
pngmem.c
|
|
pngpread.c
|
|
pngread.c
|
|
pngrio.c
|
|
pngrtran.c
|
|
pngrutil.c
|
|
pngset.c
|
|
pngtrans.c
|
|
pngwio.c
|
|
pngwrite.c
|
|
pngwtran.c
|
|
pngwutil.c
|
|
pngpriv.h)
|
|
|
|
add_library(libpng MODULE ${SOURCE})
|
|
set_module_type(libpng win32dll)
|
|
target_link_libraries(libpng zlib)
|
|
add_importlibs(libpng msvcrt kernel32 ntdll)
|
|
add_pch(libpng pngpriv.h SOURCE)
|
|
add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)
|