2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DUSE_WIN32_OPENGL)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
buffer.c
|
|
|
|
d3d9_main.c
|
|
|
|
device.c
|
|
|
|
directx.c
|
|
|
|
query.c
|
|
|
|
shader.c
|
|
|
|
stateblock.c
|
|
|
|
surface.c
|
|
|
|
swapchain.c
|
|
|
|
texture.c
|
|
|
|
vertexdeclaration.c
|
2020-05-09 21:37:40 +00:00
|
|
|
volume.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
guid.c)
|
2014-02-09 23:29:31 +00:00
|
|
|
|
2019-10-20 22:38:24 +00:00
|
|
|
add_library(d3d9 MODULE
|
2014-02-09 23:29:31 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
|
|
|
|
|
2015-11-04 18:06:16 +00:00
|
|
|
set_module_type(d3d9 win32dll UNICODE)
|
2013-09-13 23:50:10 +00:00
|
|
|
target_link_libraries(d3d9 wine)
|
2017-06-16 18:50:42 +00:00
|
|
|
add_importlibs(d3d9 d3dwine user32 msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(d3d9 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
|