2015-11-16 21:53:56 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
|
|
|
|
|
|
|
add_definitions(-D_ADVAPI32_)
|
|
|
|
spec2def(advapi32_vista.dll advapi32_vista.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
DllMain.c
|
|
|
|
RegDeleteTree.c
|
2015-11-17 11:17:12 +00:00
|
|
|
RegSetKeyValue.c
|
2018-08-16 14:10:41 +00:00
|
|
|
RegLoadMUIString.c
|
2015-11-16 21:53:56 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32_vista.def)
|
|
|
|
|
|
|
|
add_library(advapi32_vista SHARED ${SOURCE})
|
|
|
|
set_module_type(advapi32_vista win32dll ENTRYPOINT DllMain 12)
|
2018-08-16 14:10:41 +00:00
|
|
|
target_link_libraries(advapi32_vista wine)
|
2015-11-16 21:53:56 +00:00
|
|
|
add_importlibs(advapi32_vista advapi32 kernel32 ntdll)
|
|
|
|
add_dependencies(advapi32_vista psdk)
|
|
|
|
add_cd_file(TARGET advapi32_vista DESTINATION reactos/system32 FOR all)
|