cmake: update inteface functions to use xpcg
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
find_program(IFC
|
find_program(XPCG
|
||||||
NAMES ifc
|
NAMES xpcg
|
||||||
REQUIRED
|
REQUIRED
|
||||||
HINTS ${BUILD_TOOLS_DIR})
|
HINTS ${BUILD_TOOLS_DIR})
|
||||||
message(STATUS "Found interface compiler: ${IFC}")
|
message(STATUS "Found interface generator: ${XPCG}")
|
||||||
|
|
||||||
function(add_interface)
|
function(add_interface)
|
||||||
set(options)
|
set(options)
|
||||||
@@ -20,9 +20,9 @@ function(add_interface)
|
|||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${header_path}
|
OUTPUT ${header_path}
|
||||||
COMMAND ${IFC} ${arg_PATH}
|
COMMAND ${XPCG} ${arg_PATH}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${arg_PARENT_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${arg_PARENT_DIR}
|
||||||
COMMENT "Compiling interface: ${arg_NAME}")
|
COMMENT "Generating interface: ${arg_NAME}")
|
||||||
|
|
||||||
add_custom_target(ifgen-${arg_NAME} ALL
|
add_custom_target(ifgen-${arg_NAME} ALL
|
||||||
DEPENDS ${header_path})
|
DEPENDS ${header_path})
|
||||||
|
|||||||
Reference in New Issue
Block a user