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 resource.h 16 stylemap.c 17 system.c 18 themehooks.c 19 uxini.c 20 uxthemep.h 21 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme_stubs.c) 22 23if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 24 add_definitions(-DENABLE_PNG_SUPPORT) 25 26 list(APPEND SOURCE 27 pngsup.cpp) 28endif() 29 30file(GLOB uxtheme_rc_deps ${CMAKE_CURRENT_SOURCE_DIR}/lang/*.rc) 31add_rc_deps(uxtheme.rc ${uxtheme_rc_deps}) 32 33add_library(uxtheme MODULE 34 ${SOURCE} 35 uxtheme.rc 36 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme.def) 37 38set_module_type(uxtheme win32dll) 39target_link_libraries(uxtheme wine) 40add_delay_importlibs(uxtheme msimg32) 41if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 42 add_importlibs(uxtheme user32 advapi32 gdiplus gdi32 shlwapi msvcrt kernel32 ntdll) 43else() 44 add_importlibs(uxtheme user32 advapi32 gdi32 msvcrt kernel32 ntdll) 45endif() 46add_pch(uxtheme uxthemep.h SOURCE) 47add_cd_file(TARGET uxtheme DESTINATION reactos/system32 FOR all) 48