1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__ -D__ROS_LONG64__) 4spec2def(uxtheme.dll uxtheme.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 buffer.c 8 draw.c 9 main.c 10 metric.c 11 msstyles.c 12 ncscrollbar.c 13 nonclient.c 14 property.c 15 stylemap.c 16 system.c 17 themehooks.c 18 uxini.c 19 uxthemep.h 20 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme_stubs.c) 21 22if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 23 add_definitions(-DENABLE_PNG_SUPPORT) 24 25 list(APPEND SOURCE 26 pngsup.cpp) 27endif() 28 29add_library(uxtheme MODULE 30 ${SOURCE} 31 version.rc 32 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme.def) 33 34set_module_type(uxtheme win32dll) 35target_link_libraries(uxtheme wine) 36add_delay_importlibs(uxtheme msimg32) 37if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 38 add_importlibs(uxtheme user32 advapi32 gdiplus gdi32 shlwapi msvcrt kernel32 ntdll) 39else() 40 add_importlibs(uxtheme user32 advapi32 gdi32 msvcrt kernel32 ntdll) 41endif() 42add_pch(uxtheme uxthemep.h SOURCE) 43add_cd_file(TARGET uxtheme DESTINATION reactos/system32 FOR all) 44