2013-09-14 10:30:44 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2020-03-26 13:40:39 +00:00
|
|
|
-D__ROS_LONG64__
|
2013-09-14 10:30:44 +00:00
|
|
|
-DDIRECT3D_VERSION=0x0900)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2013-09-14 10:30:44 +00:00
|
|
|
spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
asmparser.c
|
|
|
|
blob.c
|
|
|
|
bytecodewriter.c
|
|
|
|
compiler.c
|
2015-11-22 16:34:38 +00:00
|
|
|
main.c
|
2019-10-26 12:00:33 +00:00
|
|
|
preproc.c
|
2013-09-14 10:30:44 +00:00
|
|
|
reflection.c
|
|
|
|
utils.c
|
2018-03-04 23:15:03 +00:00
|
|
|
precomp.h
|
2014-02-09 23:29:31 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(d3dcompiler_43 MODULE
|
2014-02-09 23:29:31 +00:00
|
|
|
${SOURCE}
|
2019-10-26 12:00:33 +00:00
|
|
|
asmshader.tab.c
|
|
|
|
asmshader.yy.c
|
|
|
|
hlsl.tab.c
|
|
|
|
hlsl.yy.c
|
|
|
|
ppy.tab.c
|
|
|
|
ppl.yy.c
|
2014-02-09 23:29:31 +00:00
|
|
|
version.rc
|
2013-09-14 10:30:44 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def)
|
|
|
|
|
2019-04-06 21:35:37 +00:00
|
|
|
# some files have been generated with relative file paths...
|
|
|
|
set_source_files_properties(
|
|
|
|
asmshader.tab.c
|
|
|
|
asmshader.yy.c
|
|
|
|
hlsl.tab.c
|
|
|
|
hlsl.yy.c
|
2019-10-26 12:00:33 +00:00
|
|
|
ppy.tab.c
|
|
|
|
ppl.yy.c
|
2019-04-06 21:35:37 +00:00
|
|
|
PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
|
|
|
|
|
2013-09-14 10:30:44 +00:00
|
|
|
set_module_type(d3dcompiler_43 win32dll)
|
|
|
|
target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp)
|
|
|
|
add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll)
|
|
|
|
add_dependencies(d3dcompiler_43 d3d_idl_headers)
|
2019-10-26 12:00:33 +00:00
|
|
|
add_pch(d3dcompiler_43 precomp.h SOURCE)
|
2013-09-14 10:30:44 +00:00
|
|
|
add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all)
|