Bring the validation-scope line (in-tree Jenkins CI copy, lcov coverage wiring, step-by-step release-scope README, TetraIF unit tests, the LogView runtime icon/resource fix, Dockerfile, rpmbuild and the new_docker_build.sh driver with the DEB output path) on top of the XmlPatterns branch pruned to the Release 2 scope. Conflict policy: - Out-of-scope targets/modules: keep the prune (deletion wins). - In-scope files that validation had deleted: restored from story/release-2-cleanup (the Release 2 closure, with the pruned-module guards). - In-scope sources carrying migration work: XmlPatterns versions (Qt XmlPatterns rework on QDomDocument, DDS member and logger fixes, first-build fixes). - Scope-aware CMakeLists (top level, PluginInterfaces, LtsWidgets) and .envrc: story/release-2-cleanup / ours versions.
78 lines
2.3 KiB
CMake
Executable File
78 lines
2.3 KiB
CMake
Executable File
#
|
|
# @RDE_HEADER@
|
|
# $Revision$
|
|
# $Date$
|
|
# $Id$
|
|
#
|
|
# Created by Hanna E. Rathje, SLSE, 2015-08-24
|
|
#
|
|
#
|
|
# PURPOSE:
|
|
# --------
|
|
# RTIDDSGEN(srcList infile) - Erzeugen von Source- und Headerfiles aus
|
|
# einer .idl - Datei mittels rtiddsgen
|
|
#
|
|
#
|
|
MACRO(RTIDDSGEN srcList infile)
|
|
# RTI (DDS) code generation is optional during migration; if RTI is not found, skip code generation.
|
|
FIND_PACKAGE(RTI)
|
|
if (NOT RTI_FOUND)
|
|
message(STATUS "RTI not found; skipping RTI IDL code generation for ${infile}")
|
|
return()
|
|
endif()
|
|
|
|
SET(input ${infile})
|
|
IF(NOT IS_ABSOLUTE ${input})
|
|
SET(input "${CMAKE_CURRENT_BINARY_DIR}/${input}")
|
|
ENDIF()
|
|
GET_FILENAME_COMPONENT(output ${infile} NAME_WE)
|
|
GET_FILENAME_COMPONENT(input ${input} ABSOLUTE)
|
|
|
|
|
|
|
|
|
|
SET(_ddsgen_args "")
|
|
SET(output_cxx
|
|
${CMAKE_CURRENT_BINARY_DIR}/${output}.cxx
|
|
${CMAKE_CURRENT_BINARY_DIR}/${output}Plugin.cxx
|
|
)
|
|
|
|
SET(output_hpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/${output}.hpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/${output}Plugin.hpp
|
|
)
|
|
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(OUTPUT ${output_cxx} ${output_hpp}
|
|
COMMAND ${CMAKE_COMMAND}
|
|
ARGS -E remove ${output_cxx}
|
|
COMMAND ${RTI_DDSGEN_EXECUTABLE}
|
|
ARGS -language "C++11"
|
|
ARGS -unboundedSupport
|
|
ARGS -verbosity 2
|
|
ARGS -update typefiles
|
|
ARGS -stl
|
|
ARGS -d ${CMAKE_CURRENT_BINARY_DIR}
|
|
ARGS -inputIdl ${input}
|
|
ARGS -I ${CMAKE_CURRENT_BINARY_DIR}
|
|
ARGS -I ${CMAKE_CURRENT_BINARY_DIR}/../
|
|
ARGS -I ${CMAKE_CURRENT_BINARY_DIR}/../../
|
|
ARGS -I ${CMAKE_CURRENT_SOURCE_DIR}
|
|
ARGS -I ${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
ARGS -I ${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
DEPENDS ${input} ${ARGN}
|
|
)
|
|
|
|
IF(WIN32)
|
|
SET_SOURCE_FILES_PROPERTIES(${output_cxx} PROPERTIES COMPILE_FLAGS "-DNDDS_USER_DLL_EXPORT")
|
|
ELSE()
|
|
SET_SOURCE_FILES_PROPERTIES(${output_cxx} PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
|
ENDIF()
|
|
LIST(APPEND ${srcList} ${output_cxx} ${output_hpp})
|
|
|
|
|
|
ENDMACRO()
|