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 MODULE 25 ${SOURCE} 26 version.rc 27 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def) 28 29# some files have been generated with relative file paths... 30set_source_files_properties( 31 asmshader.tab.c 32 asmshader.yy.c 33 hlsl.tab.c 34 hlsl.yy.c 35 PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"") 36 37set_module_type(d3dcompiler_43 win32dll) 38target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp) 39add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll) 40add_dependencies(d3dcompiler_43 d3d_idl_headers) 41#add_pch(d3dcompiler_43 precomp.h SOURCE) 42add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all) 43