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