https://kotlinlang.org logo
#korge
Title
# korge
d

Dave

09/15/2020, 12:42 PM
korge-next: am trying to build for targets other than JVM. • macosX64 does not seem to work, • mobile targets are missing are these not yet supported ?
r

RezMike

09/15/2020, 12:46 PM
yeah, these targets are not supported in korge-next yet
d

Dave

09/15/2020, 1:06 PM
😞
what is missing? is it something I can contribute to?
e.g. thew macos tgt builds and I can build my app against it....it just fails at runtime. do you know what is missing? and if I just enable the gradle/kotlin config for the mobile targets...might they work? or is there much code that is missing for these targets?
r

RezMike

09/15/2020, 1:13 PM
I don't know much about it, @Deactivated User is the expert here
d

Deactivated User

09/15/2020, 1:56 PM
Actually, the missing thing is is gradle plugin that generated all the required stuff and tasks. It was started from scratch grabbing some code from the old plugin
d

Dave

09/15/2020, 1:58 PM
Is something special needed? I thought the kotlin mpp does all that is necessary
d

Deactivated User

09/15/2020, 2:01 PM
Well I generated the project, a bootstrap function to support suspend fun entrypoint, and generated some things like the icon, etc.
this is the old code
in fact, maybe we can just copy the old code from the gradle plugin and try to adjust it to work with kotlin 1.4
but didn't do yet. I just started with less code to get it working on 1.4 eaps, but maybe we can backport all that
d

Dave

09/15/2020, 2:31 PM
suspend fun entry point, icons, etc, sound like application specific things. Very useful, but are they really needed for building the base korlib libraries ?
r

RezMike

09/15/2020, 2:36 PM
well, all the libraries have the same basic goal - to be used in korge game engine
and suspend fun entry point is needed for korge, that's why it is necessary to implement it
d

Dave

09/15/2020, 2:44 PM
that does not really answer my question. I agree, it sounds useful for an end application. I don't see why it is needed for building the korlib libraries?
r

RezMike

09/15/2020, 2:45 PM
the korge gradle plugin is designed to build all the korlib libraries, including korge
you can't just throw away the support for building korge from it
d

Deactivated User

09/15/2020, 2:50 PM
For just building the libraries, you only need to add the targets and publish to maven local. Thats mostly one or two lines. For korge games it is required.
d

Dave

09/15/2020, 4:46 PM
Ok. Thanks. That makes sense
👍 1
2 Views