Skip to content

Commit

Permalink
[SDK][DIRECTX:WINE] Bring in vista+ DLLs so we can have a good start
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 11, 2023
1 parent ea5d2c5 commit 663c9d9
Show file tree
Hide file tree
Showing 139 changed files with 121,765 additions and 5 deletions.
13 changes: 13 additions & 0 deletions dll/directx/wine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,16 @@ add_subdirectory(qcap)
add_subdirectory(qedit)
add_subdirectory(quartz)
add_subdirectory(wined3d)

# NT6+
#if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600)
#add_subdirectory(d2d1)
add_subdirectory(d3d10)
add_subdirectory(d3d10_1)
add_subdirectory(d3d10core)
add_subdirectory(d3d11)
add_subdirectory(d3d12)
add_subdirectory(d3d12core)
#add_subdirectory(dwrite)
add_subdirectory(dxgi)
#endif()
35 changes: 35 additions & 0 deletions dll/directx/wine/d2d1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@


add_definitions(
-D__WINESRC__)

include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/psdk)

spec2def(d2d1.dll d2d1.spec ADD_IMPORTLIB)

add_library(d2d1 MODULE
bitmap_render_target.c
bitmap.c
brush.c
dc_render_target.c
factory.c
geometry.c
hwnd_render_target.c
layer.c
mesh.c
state_block.c
stroke.c
wic_render_target.c
${CMAKE_CURRENT_BINARY_DIR}/d2d1_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/d2d1.def)

if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(d2d1 PRIVATE -Wno-sequence-point -Wno-unused-function -Wno-unused-but-set-variable -Wno-error) # Our favourite compiler :)
endif()

set_module_type(d2d1 win32dll)
target_link_libraries(d2d1 dxguid uuid wine)
add_importlibs(d2d1 advapi32 gdi32 user32 d3dwine msvcrt kernel32 ntdll)
add_dependencies(d2d1 wineheaders)
add_cd_file(TARGET d2d1 DESTINATION reactos/system32 FOR all)
Loading

0 comments on commit 663c9d9

Please sign in to comment.