mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
18a81d5d1e
* Sync up to trunk head (r64124). svn path=/branches/shell-experiments/; revision=64126
44 lines
992 B
CMake
44 lines
992 B
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_USE_MATH_DEFINES)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/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
|
|
gdiplus_private.h)
|
|
|
|
add_library(gdiplus SHARED
|
|
${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)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
target_link_libraries(gdiplus mingwex)
|
|
endif()
|
|
|
|
add_delay_importlibs(gdiplus windowscodecs)
|
|
add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
|
|
add_pch(gdiplus gdiplus_private.h SOURCE)
|
|
add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
|