libgdx/gdx-jnigen

Add new CPU architecture

Closed this issue · 4 comments

When I want to add a new form of CPU architecture to this project, how can I test its success

If you run ./gradlew build (or just ./gradlew test) on a computer with the new architecture, it will do all the jnigen magic and run it afterwords. If it is successful, something like this:

boolean: true
byte: 1
char: �
short: 3
int: 4
long: %
float: 6.000000
double: 0
byteBuffer: 8
bool[0]: false
char[0]:
short[0]: 10
int[0]: 11
long[0]: %
float[0]: 13.000000
double[0]: 14.000000
string: Hurray fuck this nuts

will appear in the log

If you run ./gradlew build (or just ./gradlew test) on a computer with the new architecture, it will do all the jnigen magic and run it afterwords. If it is successful, something like this:

boolean: true
byte: 1
char: �
short: 3
int: 4
long: %
float: 6.000000
double: 0
byteBuffer: 8
bool[0]: false
char[0]:
short[0]: 10
int[0]: 11
long[0]: %
float[0]: 13.000000
double[0]: 14.000000
string: Hurray fuck this nuts

will appear in the log

ok thank you for your reply when i try to change some for new arch LoongArch like this。but i faifed do ./gradlew test
i will continue try to find error about this
图片
图片

You can find a more detailed exception in gdx-jnigen/build/reports/tests/test/classes/com.badlogic.gdx.jnigen.JniGenTest.html. Probably there are some tools missing

#54 has been merged