1 2add_definitions( 3 -D__WINESRC__ 4 -DDIRECT3D_VERSION=0x0900) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 asmparser.c 11 asmshader.tab.c 12 asmshader.yy.c 13 blob.c 14 bytecodewriter.c 15 compiler.c 16 hlsl.tab.c 17 hlsl.yy.c 18 main.c 19 reflection.c 20 utils.c 21 precomp.h 22 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c) 23 24add_library(d3dcompiler_43 SHARED 25 ${SOURCE} 26 version.rc 27 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def) 28 29set_module_type(d3dcompiler_43 win32dll) 30target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp) 31add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll) 32add_dependencies(d3dcompiler_43 d3d_idl_headers) 33add_pch(d3dcompiler_43 precomp.h SOURCE) 34add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all) 35