Skip to content

Commit

Permalink
Remove support of Make generated examples (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLBuenoLopez committed Sep 12, 2023
1 parent c95810b commit 6a2c67d
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 @@ -450,9 +450,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 @@ -1014,27 +1011,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 @@ -1188,31 +1164,6 @@ private boolean genVS(
return returnedValue;
}

private boolean genMakefile(
Solution solution,
String arch)
{

boolean returnedValue = false;
ST makecxx = null;

STGroupFile makeTemplates = new STGroupFile("com/eprosima/fastdds/idl/templates/makefile.stg", '$', '$');

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

makecxx.add("solution", solution);
makecxx.add("example", m_exampleOption);
makecxx.add("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 6a2c67d

Please sign in to comment.