mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[CMAKE]
* Addendum to r57893. svn path=/trunk/; revision=57894
This commit is contained in:
@@ -79,20 +79,22 @@ function(add_rpc_files _type)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
function(generate_idl_iids _idl_file)
|
||||
get_includes(_includes)
|
||||
get_defines(_defines)
|
||||
function(generate_idl_iids)
|
||||
foreach(_idl_file ${ARGN})
|
||||
get_includes(_includes)
|
||||
get_defines(_defines)
|
||||
|
||||
if(NOT IS_ABSOLUTE ${_idl_file})
|
||||
set(_idl_file "${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file}")
|
||||
endif()
|
||||
if(NOT IS_ABSOLUTE ${_idl_file})
|
||||
set(_idl_file "${CMAKE_CURRENT_SOURCE_DIR}/${_idl_file}")
|
||||
endif()
|
||||
|
||||
get_filename_component(_name_we ${_idl_file} NAME_WE)
|
||||
add_custom_command(
|
||||
OUTPUT ${_name_we}_i.c ${_name_we}_i.h
|
||||
COMMAND midl ${_includes} ${_defines} ${IDL_FLAGS} /h ${_name_we}_i.h /client none /server none /iid ${_name_we}_i.c /proxy ${_name_we}_dummy_p.c ${_idl_file}
|
||||
DEPENDS ${_idl_file})
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_i.c PROPERTIES GENERATED TRUE)
|
||||
get_filename_component(_name_we ${_idl_file} NAME_WE)
|
||||
add_custom_command(
|
||||
OUTPUT ${_name_we}_i.c ${_name_we}_i.h
|
||||
COMMAND midl ${_includes} ${_defines} ${IDL_FLAGS} /h ${_name_we}_i.h /client none /server none /iid ${_name_we}_i.c /proxy ${_name_we}_dummy_p.c ${_idl_file}
|
||||
DEPENDS ${_idl_file})
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_name_we}_i.c PROPERTIES GENERATED TRUE)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
function(add_iid_library _target)
|
||||
|
||||
Reference in New Issue
Block a user