Skip to content

Commit

Permalink
Refs #19453: remove Make generated example
Browse files Browse the repository at this point in the history
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
  • Loading branch information
JLBuenoLopez committed Sep 12, 2023
1 parent e752b38 commit dc518bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 161 deletions.
49 changes: 0 additions & 49 deletions src/main/java/com/eprosima/fastdds/fastddsgen.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ public static boolean loadPlatforms()

fastddsgen.m_platforms.add("i86Win32VS2019");
fastddsgen.m_platforms.add("x64Win64VS2019");
fastddsgen.m_platforms.add("i86Linux2.6gcc");
fastddsgen.m_platforms.add("x64Linux2.6gcc");
fastddsgen.m_platforms.add("armLinux2.6gcc");
fastddsgen.m_platforms.add("CMake");

returnedValue = true;
Expand Down Expand Up @@ -1059,27 +1056,6 @@ else if (m_exampleOption.startsWith("x64"))
returnedValue = false;
}
}
else if (m_exampleOption.substring(3, 8).equals("Linux"))
{
System.out.println("Generating makefile solution");

if (m_exampleOption.startsWith("i86"))
{
returnedValue = genMakefile(solution, "-m32");
}
else if (m_exampleOption.startsWith("x64"))
{
returnedValue = genMakefile(solution, "-m64");
}
else if (m_exampleOption.startsWith("arm"))
{
returnedValue = genMakefile(solution, "");
}
else
{
returnedValue = false;
}
}
}
}
else
Expand Down Expand Up @@ -1243,31 +1219,6 @@ private boolean genVS(
return returnedValue;
}

private boolean genMakefile(
Solution solution,
String arch)
{

boolean returnedValue = false;
StringTemplate makecxx = null;

StringTemplateGroup makeTemplates = StringTemplateGroup.loadGroup("makefile", DefaultTemplateLexer.class, null);

if (makeTemplates != null)
{
makecxx = makeTemplates.getInstanceOf("makecxx");

makecxx.setAttribute("solution", solution);
makecxx.setAttribute("example", m_exampleOption);
makecxx.setAttribute("arch", arch);

returnedValue = Utils.writeFile(m_outputDir + "makefile_" + m_exampleOption, makecxx, m_replace);

}

return returnedValue;
}

private boolean genCMakeLists(
Solution solution)
{
Expand Down
112 changes: 0 additions & 112 deletions src/main/java/com/eprosima/fastdds/idl/templates/makefile.stg

This file was deleted.

0 comments on commit dc518bb

Please sign in to comment.