mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
65 lines
1.2 KiB
CMake
65 lines
1.2 KiB
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_USE_MATH_DEFINES
|
|
-DUSE_WIN32_OPENGL)
|
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(wined3d.dll wined3d.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
ati_fragment_shader.c
|
|
arb_program_shader.c
|
|
buffer.c
|
|
context.c
|
|
device.c
|
|
directx.c
|
|
drawprim.c
|
|
gl_compat.c
|
|
glsl_shader.c
|
|
nvidia_texture_shader.c
|
|
palette.c
|
|
query.c
|
|
resource.c
|
|
sampler.c
|
|
shader.c
|
|
shader_sm1.c
|
|
shader_sm4.c
|
|
state.c
|
|
stateblock.c
|
|
surface.c
|
|
swapchain.c
|
|
texture.c
|
|
utils.c
|
|
vertexdeclaration.c
|
|
view.c
|
|
volume.c
|
|
wined3d_main.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/wined3d.def)
|
|
|
|
add_library(wined3d SHARED
|
|
${SOURCE}
|
|
version.rc)
|
|
set_module_type(wined3d win32dll)
|
|
|
|
target_link_libraries(wined3d wine)
|
|
|
|
add_importlibs(wined3d
|
|
user32
|
|
opengl32
|
|
gdi32
|
|
advapi32
|
|
msvcrt
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(wined3d wineheaders)
|
|
add_pch(wined3d wined3d_private.h)
|
|
add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
|
|
|
|
if(NOT MSVC)
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
#allow_warnings(wined3d)
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
|
|
endif()
|