Slackbot
01/20/2023, 7:56 PMVampire
01/20/2023, 9:30 PMMatthew Von-Maszewski
01/20/2023, 9:32 PMMatthew Von-Maszewski
01/20/2023, 9:33 PMVampire
01/20/2023, 9:35 PMMatthew Von-Maszewski
01/20/2023, 9:35 PMMatthew Von-Maszewski
01/20/2023, 9:36 PMVampire
01/20/2023, 9:43 PMMatthew Von-Maszewski
01/20/2023, 10:09 PMJendrik Johannes
01/21/2023, 3:59 PMJendrik Johannes
01/21/2023, 4:00 PMdaniel
01/22/2023, 7:37 AMNokee usually doesn’t help in cases of unsupported architectures/tool chains, as it also builds on top of what Gradle core provides in this area.As far as this comment, it’s not true that Nokee doesn’t help for unsupported architectures/tool chains. It may be “more complicated” than what it should be, but it’s definitely possible to build for M1 using the latest snapshot. Nokee fixed several issues with the “newer” native support (aka `cpp-library`/`cpp-application`) around architecture supports.
I am in the process of creating a sample of how you can use the Tasks for native compilation without the whole toolchain setup around it. The goal is to use them for embedded development (cross-compile for other architectures).It’s an interesting idea, and I would be curious how this actually work in real life project. I done about 4-5 different modelling for native as part of Nokee to explore and question the “older” and “newer” core native support and a simple “per-task” approach usually hits a wall pretty early. The current Nokee modelling focus on the middle model (variant management). Recently, we worked on composition which would be more of the higher level but it’s not the main focus at the moment. Task-level will be tackled as some point but I doubt it will ever bit the main focus because of all the other modelling that users needs in order to create a functional native build. In general, the task level is what Nokee calls the source sets which include source/headers management, incoming compile dependencies, toolchain management (local, remote), source/target compatibility, and compile task. As we can see compiling sources requires quite a bit of elements to work together. This is not to say that it cannot be approximated, but then you hit the chance of having weaker up-to-date checking or requiring to have intimate knowledge of the tool to use for building which defeats the core idea of native support in Gradle.
daniel
01/22/2023, 7:37 AM