efae762ef65985281658087d49c690c139cd6254
[reactos.git] / dll / directx / wine / d3dcompiler_43 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DDIRECT3D_VERSION=0x0900)
5
6 if(MSVC)
7 # error C4133: 'function': incompatible types - from 'D3D_CBUFFER_TYPE *' to 'DWORD *'
8 replace_compile_flags("/we4133" " ")
9 endif()
10
11 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
12 spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
13
14 list(APPEND SOURCE
15 asmparser.c
16 asmshader.tab.c
17 asmshader.yy.c
18 blob.c
19 bytecodewriter.c
20 compiler.c
21 hlsl.tab.c
22 hlsl.yy.c
23 main.c
24 reflection.c
25 utils.c
26 precomp.h
27 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c)
28
29 add_library(d3dcompiler_43 MODULE
30 ${SOURCE}
31 version.rc
32 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def)
33
34 # some files have been generated with relative file paths...
35 set_source_files_properties(
36 asmshader.tab.c
37 asmshader.yy.c
38 hlsl.tab.c
39 hlsl.yy.c
40 PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
41
42 set_module_type(d3dcompiler_43 win32dll)
43 target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp)
44 add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll)
45 add_dependencies(d3dcompiler_43 d3d_idl_headers)
46 #add_pch(d3dcompiler_43 precomp.h SOURCE)
47 add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all)