Skip to content

Commit

Permalink
deprecate parser
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 15, 2023
1 parent 65f50bb commit 828ffcc
Show file tree
Hide file tree
Showing 5 changed files with 510 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.github.xpenatan.jparser.core.JParser;
import com.github.xpenatan.jparser.core.codeparser.idl.IDLDefaultCodeParser;
import com.github.xpenatan.jparser.cpp.CPPBuildHelper;
import com.github.xpenatan.jparser.cpp.CppCodeParser;
import com.github.xpenatan.jparser.cpp.CppCodeParserV2;
import com.github.xpenatan.jparser.cpp.CppGenerator;
import com.github.xpenatan.jparser.cpp.FileCopyHelper;
import com.github.xpenatan.jparser.cpp.NativeCPPGeneratorV2;
Expand Down Expand Up @@ -41,7 +41,7 @@ private static void generateCPP() throws Exception {

IDLReader idlReader = IDLReader.readIDL(idlPath);
CppGenerator cppGenerator = new NativeCPPGeneratorV2(jniBuildPath);
CppCodeParser idlParser = new CppCodeParser(cppGenerator, idlReader, basePackage);
CppCodeParserV2 idlParser = new CppCodeParserV2(cppGenerator, idlReader, basePackage);
idlParser.generateClass = true;
JParser.generate(idlParser, baseJavaDir, genDir);
CPPBuildHelper.DEBUG_BUILD = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.ArrayList;
import java.util.List;

@Deprecated
public class CppCodeParser extends IDLDefaultCodeParser {

private static final String HEADER_CMD = "C++";
Expand Down
Loading

0 comments on commit 828ffcc

Please sign in to comment.