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 blob.c 12 bytecodewriter.c 13 compiler.c 14 main.c 15 preproc.c 16 reflection.c 17 utils.c 18 precomp.h 19 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c) 20 21add_library(d3dcompiler_43 MODULE 22 ${SOURCE} 23 asmshader.tab.c 24 asmshader.yy.c 25 hlsl.tab.c 26 hlsl.yy.c 27 ppy.tab.c 28 ppl.yy.c 29 version.rc 30 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def) 31 32# some files have been generated with relative file paths... 33set_source_files_properties( 34 asmshader.tab.c 35 asmshader.yy.c 36 hlsl.tab.c 37 hlsl.yy.c 38 ppy.tab.c 39 ppl.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