Skip to content

Commit 828d163

Browse files
[COMBASE][COML2] Sync to wine-10.0
Co-Authored-By: buddyjojo <[email protected]>
1 parent 65b6667 commit 828d163

34 files changed

+16606
-0
lines changed

dll/win32/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ add_subdirectory(cabinet)
2121
add_subdirectory(cards)
2222
add_subdirectory(cfgmgr32)
2323
add_subdirectory(clusapi)
24+
add_subdirectory(combase)
2425
add_subdirectory(comcat)
2526
add_subdirectory(comctl32)
2627
add_subdirectory(comdlg32)
28+
add_subdirectory(coml2)
2729
add_subdirectory(compstui)
2830
add_subdirectory(credui)
2931
if(ARCH STREQUAL "i386")

dll/win32/combase/CMakeLists.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
3+
remove_definitions(-D_CRT_NON_CONFORMING_SWPRINTFS -D_WIN32_WINNT=0x502)
4+
add_definitions(-D_WIN32_WINNT=0x600)
5+
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/wine)
6+
if(DLL_EXPORT_VERSION GREATER_EQUAL 0xA00)
7+
set(COMBASE_NAME "combase")
8+
else()
9+
set(COMBASE_NAME "combase_win10")
10+
endif()
11+
spec2def(${COMBASE_NAME}.dll combase.spec ADD_IMPORTLIB)
12+
add_idl_headers(combase_idlheader dcom.idl)
13+
add_rpc_files(client irpcss.idl)
14+
15+
list(APPEND SOURCE
16+
apartment.c
17+
combase.c
18+
errorinfo.c
19+
hglobalstream.c
20+
malloc.c
21+
marshal.c
22+
roapi.c
23+
rpc.c
24+
string.c
25+
stubmanager.c
26+
usrmarshal.c
27+
${CMAKE_CURRENT_BINARY_DIR}/${COMBASE_NAME}_stubs.c
28+
${CMAKE_CURRENT_BINARY_DIR}/irpcss_c.c
29+
)
30+
31+
add_definitions(-Dwcsdup=_wcsdup -Dwcsicmp=_wcsicmp -D_ROAPI_)
32+
33+
add_library(${COMBASE_NAME} MODULE ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/${COMBASE_NAME}.def)
34+
set_module_type(${COMBASE_NAME} win32dll)
35+
target_link_libraries(${COMBASE_NAME} wine uuid pseh)
36+
add_importlibs(${COMBASE_NAME} advapi32 ole32 oleaut32 user32 gdi32 rpcrt4 msvcrt kernel32_vista kernel32 ntdll)
37+
add_dependencies(${COMBASE_NAME} combase_idlheader wineheaders rpcss)
38+
add_cd_file(TARGET ${COMBASE_NAME} DESTINATION reactos/system32 FOR all)
39+
set_wine_module_FIXME(${COMBASE_NAME}) # CORE-5743: ???
40+
41+
if(MSVC)
42+
# Disable warning C4090: 'function': different 'const' qualifiers
43+
# Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
44+
target_compile_options(${COMBASE_NAME} PRIVATE /wd4090 /wd4312)
45+
endif()
46+

0 commit comments

Comments
 (0)