mirror of
https://github.com/reactos/reactos.git
synced 2025-05-10 20:27:45 +00:00
[CMAKE]
* Addendum to r57893. svn path=/trunk/; revision=57894
This commit is contained in:
parent
c410c0a203
commit
ba64101d04
1 changed files with 14 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue