mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +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.
46 lines
1.5 KiB
CMake
46 lines
1.5 KiB
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_USE_MATH_DEFINES)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
brush.c
|
|
customlinecap.c
|
|
font.c
|
|
gdiplus.c
|
|
graphics.c
|
|
graphicspath.c
|
|
image.c
|
|
imageattributes.c
|
|
matrix.c
|
|
metafile.c
|
|
pathiterator.c
|
|
pen.c
|
|
region.c
|
|
stringformat.c
|
|
precomp.h)
|
|
|
|
add_library(gdiplus MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
gdiplus.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
|
|
|
|
set_module_type(gdiplus win32dll)
|
|
target_link_libraries(gdiplus wine)
|
|
add_delay_importlibs(gdiplus windowscodecs)
|
|
add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
|
|
add_pch(gdiplus precomp.h SOURCE)
|
|
add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
|
|
|
|
add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef FOR all)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
|
|
|
|
add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef FOR all)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
|
|
|