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