mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
|
|
||
|
MACRO (MACRO_ADD_DXSDK_INTERFACES)
|
||
|
|
||
|
FOREACH(_in_FILE ${ARGN})
|
||
|
|
||
|
GET_FILENAME_COMPONENT(FILE ${_in_FILE} NAME_WE)
|
||
|
|
||
|
ADD_CUSTOM_COMMAND(
|
||
|
OUTPUT ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h
|
||
|
COMMAND native-widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -h -H ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h ${REACTOS_SOURCE_DIR}/include/dxsdk/${FILE}.idl
|
||
|
DEPENDS native-widl
|
||
|
)
|
||
|
|
||
|
SET_SOURCE_FILES_PROPERTIES(
|
||
|
${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h
|
||
|
PROPERTIES
|
||
|
GENERATED TRUE
|
||
|
)
|
||
|
|
||
|
LIST(APPEND DXSDK_HEADERS ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h)
|
||
|
|
||
|
ENDFOREACH(_in_FILE ${ARGN})
|
||
|
|
||
|
ENDMACRO (MACRO_ADD_DXSDK_INTERFACES)
|
||
|
|
||
|
file(GLOB_RECURSE SOURCE "*.idl")
|
||
|
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/axcore.idl)
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/axextend.idl)
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/devenum.idl)
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/dshowasf.idl)
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/dyngraph.idl)
|
||
|
LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/vmrender.idl)
|
||
|
|
||
|
MACRO_ADD_DXSDK_INTERFACES(${SOURCE})
|
||
|
|
||
|
ADD_CUSTOM_TARGET(dxsdk ALL DEPENDS ${DXSDK_HEADERS})
|