mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
55 lines
973 B
CMake
55 lines
973 B
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_USE_MATH_DEFINES
|
|
-D_DLL -D__USE_CRTIMP)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
set_rc_compiler()
|
|
|
|
spec2def(gdiplus.dll gdiplus.spec)
|
|
|
|
list(APPEND SOURCE
|
|
brush.c
|
|
customlinecap.c
|
|
font.c
|
|
gdiplus.c
|
|
graphics.c
|
|
graphicspath.c
|
|
image.c
|
|
imageattributes.c
|
|
matrix.c
|
|
pathiterator.c
|
|
pen.c
|
|
region.c
|
|
stringformat.c
|
|
#${REACTOS_BINARY_DIR}/include/psdk/wincodec_i.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
|
|
|
|
add_library(gdiplus SHARED ${SOURCE})
|
|
|
|
set_module_type(gdiplus win32dll)
|
|
|
|
target_link_libraries(gdiplus uuid wine)
|
|
|
|
add_importlibs(gdiplus
|
|
msvcrt
|
|
shlwapi
|
|
oleaut32
|
|
ole32
|
|
user32
|
|
gdi32
|
|
windowscodecs
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_importlib_target(gdiplus.spec)
|
|
|
|
if(ARCH MATCHES amd64)
|
|
target_link_libraries(gdiplus crt)
|
|
endif(ARCH MATCHES amd64)
|
|
|
|
add_cab_target(gdiplus 1)
|