JnCrMx / discord-game-sdk4j

Java bindings for Discord's Game SDK
MIT License
123 stars 23 forks source link

Support windows32 #20

Closed gravit0 closed 3 years ago

gravit0 commented 3 years ago

In Windows, building target/natives32 normally In Linux, show error without building failure

JnCrMx commented 3 years ago

Oh, this is a little unfortunate as I've also worked on a solution to build the native library for different architectures.

My idea was to use different CMake toolchain files, so it is possible to optionally specify a cross-compiler. That is really useful for me, as I mostly build everything on Linux with mingw.

JnCrMx commented 3 years ago

Please have a look at a1a2a496ffab7674398b9f55f5d0db92070cd5c4 and tell me what you think about it.

gravit0 commented 3 years ago

Building with mingw will add dependencies on the mingw libraries.

JnCrMx commented 3 years ago

My pretty default mingw setup doesn't: image I've been building the last two or three releases with mingw and haven't encountered any problems with using them on Windows.

Maybe it links them statically or something like that?

gravit0 commented 3 years ago

Good! I will wait for the new version