reactos/dll/shellext/mydocs/CMakeLists.txt
Oleg Dubinskiy c0dbde0436
[MYDOCS] Add missing icons expected by 3rd party applications (#6576)
Add "My Documents" and "My Pictures" icons, with 100 and 101 identifiers
accordingly. They are duplicating the icons from shell32.

This fixes My Documents desktop icon becoming blank when reverting back
to the system default icons after applying 3rd party icon set in Stardock
IconPackager 5.1, and also fixes icons of some items in the application
preview dialog.

It's confirmed that mydocs.dll on Windows XP SP3 and Server 2003 SP2
includes these two icon resources with the said identifiers.
The icons there are being an exact copy from shell32 as well.

CORE-19471 CORE-14758
2024-03-06 13:56:26 +03:00

26 lines
770 B
CMake

spec2def(mydocs.dll mydocs.spec)
add_definitions(
-D_WINE)
set(ICONS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../win32/shell32/res/icons)
file(GLOB_RECURSE mydocs_rc_deps res/*.* ${ICONS_DIR}/235.ico ${ICONS_DIR}/236.ico)
add_rc_deps(mydocs.rc ${mydocs_rc_deps})
list(APPEND SOURCE
CMyDocsDropHandler.cpp
mydocs.cpp
precomp.hpp)
add_library(mydocs MODULE
${SOURCE}
mydocs.rc
${CMAKE_CURRENT_BINARY_DIR}/mydocs.def)
set_module_type(mydocs win32dll UNICODE)
target_link_libraries(mydocs uuid wine cpprt atl_classes)
add_delay_importlibs(mydocs ole32 oleaut32)
add_importlibs(mydocs advapi32 shell32 user32 comctl32 shlwapi msvcrt kernel32 ntdll)
add_pch(mydocs precomp.hpp SOURCE)
add_cd_file(TARGET mydocs DESTINATION reactos/system32 FOR all)