Skip to content

Commit

Permalink
Refs #19960. Update submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Nov 22, 2023
1 parent 8fe8c80 commit 75f646c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 31 deletions.
56 changes: 26 additions & 30 deletions src/main/java/com/eprosima/fastdds/fastddsgen.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,36 +822,32 @@ private Project parseIDL(
maintemplates.getTemplate("com/eprosima/fastcdr/idl/templates/TypesHeader.stg"),
m_replace)))
{
if (returnedValue = Utils.writeFile(output_dir + ctx.getFilename() + ".cxx",
maintemplates.getTemplate("com/eprosima/fastcdr/idl/templates/TypesSource.stg"), m_replace))
{
project.addCommonIncludeFile(relative_dir + ctx.getFilename() + ".hpp");

if (m_type_object_files)
{
System.out.println("Generating TypeObject files...");
if (returnedValue = Utils.writeFile(output_dir + ctx.getFilename() + "TypeObject.h",
maintemplates.getTemplate("com/eprosima/fastdds/idl/templates/TypeObjectHeader.stg"), m_replace))
{
if (returnedValue = Utils.writeFile(output_dir + ctx.getFilename() + "TypeObject.cxx",
maintemplates.getTemplate("com/eprosima/fastdds/idl/templates/TypeObjectSource.stg"), m_replace))
{
project.addCommonIncludeFile(relative_dir + ctx.getFilename() + "TypeObject.h");
project.addCommonSrcFile(relative_dir + ctx.getFilename() + "TypeObject.cxx");
}
}
}
if (m_python)
{
System.out.println("Generating Swig interface files...");
if (returnedValue =
Utils.writeFile(output_dir + ctx.getFilename() + ".i",
maintemplates.getTemplate("com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg"), m_replace))
{

}
}
}
project.addCommonIncludeFile(relative_dir + ctx.getFilename() + ".hpp");

if (m_type_object_files)
{
System.out.println("Generating TypeObject files...");
if (returnedValue = Utils.writeFile(output_dir + ctx.getFilename() + "TypeObject.h",
maintemplates.getTemplate("com/eprosima/fastdds/idl/templates/TypeObjectHeader.stg"), m_replace))
{
if (returnedValue = Utils.writeFile(output_dir + ctx.getFilename() + "TypeObject.cxx",
maintemplates.getTemplate("com/eprosima/fastdds/idl/templates/TypeObjectSource.stg"), m_replace))
{
project.addCommonIncludeFile(relative_dir + ctx.getFilename() + "TypeObject.h");
project.addCommonSrcFile(relative_dir + ctx.getFilename() + "TypeObject.cxx");
}
}
}
if (m_python)
{
System.out.println("Generating Swig interface files...");
if (returnedValue =
Utils.writeFile(output_dir + ctx.getFilename() + ".i",
maintemplates.getTemplate("com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg"), m_replace))
{

}
}
}

if (m_test)
Expand Down

0 comments on commit 75f646c

Please sign in to comment.