-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...-box2d/gdx-box2d-build/src/main/java/com/github/xpenatan/gdx/html5/box2d/Box2dParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.github.xpenatan.gdx.html5.box2d; | ||
|
||
import com.github.xpenatan.jparser.idl.IDLFile; | ||
import com.github.xpenatan.jparser.idl.IDLReader; | ||
import com.github.xpenatan.jparser.teavm.TeaVMCodeParser; | ||
|
||
public class Box2dParser extends TeaVMCodeParser { | ||
public Box2dParser(IDLFile idlFile) { | ||
super("Box2D", idlFile); | ||
public Box2dParser(IDLReader idlReader) { | ||
super("Box2D", idlReader); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
...ons/gdx-box2d/gdx-box2d-build/src/main/java/com/github/xpenatan/gdx/html5/box2d/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package com.github.xpenatan.gdx.html5.box2d; | ||
|
||
import com.github.xpenatan.jparser.core.JParser; | ||
import com.github.xpenatan.jparser.idl.IDLFile; | ||
import com.github.xpenatan.jparser.idl.IDLReader; | ||
import java.io.File; | ||
|
||
public class Main { | ||
public static void main(String[] args) throws Exception { | ||
String path = "..\\..\\gdx-box2d\\gdx-box2d-build\\jni\\box2D.idl"; | ||
IDLFile idlFile = IDLReader.parseFile(path); | ||
IDLReader idlReader = IDLReader.readIDL(path); | ||
|
||
String basePath = new File(".").getAbsolutePath(); | ||
JParser.generate(new Box2dParser(idlFile), basePath + "./gdx-box2d-base/src", "../gdx-box2d-teavm/src", null); | ||
JParser.generate(new Box2dParser(idlReader), basePath + "./gdx-box2d-base/src", "../gdx-box2d-teavm/src", null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters