Skip to content

Conversation

@villevoutilainen
Copy link

Add templating support, add templates for both the "built-in" code generation, and also for generating classes that use QJniObject.

villevoutilainen and others added 30 commits August 31, 2023 11:30
…ator

Done initially for this in generatorHeader().
This allows saner reuse of them in other functions.
Remove the codeResolver member, make it local to init {}, and
use a lateinit var for templateEngine.
This allows us to do templating by just passing the HandyHelper
to the templates.
The mac line endings end up in an unreadable file everywhere
(except on Mac, of course).
villevoutilainen and others added 25 commits August 7, 2024 10:19
The newline continuations were wrong, the @if was adding newlines.
This also changes NativeProxyGenerator a bit:
1) There is now an additional header_final_postamble template used. This
allows generating a header guard.
2) The handling of jte exceptions no longer swallows the exception, its data is now printed.

Other than that, we add a new android sample, which uses the QJniObject templates.
The first part of that is adding a data member, and the <QJniObject> include, no other
changes yet, other than the use of an include guard instead of a #pragma once.
These get our demo to a compiling and running state (with adjustments)

Method definitions are not quite right atm wrt. static. Fixing that next.
… into dev

Change-Id: I9f86ac683c8e09a26947234d0969930d4b44bd2a
Change-Id: I4109a65d23748e2b2c8fd9d8d2701c331c77bc98
Reviewed-by: Assam Boudjelthia <[email protected]>
…t conversion to a JNI type

Change-Id: I1c6970a9eaa5a15d2437c4455f1c04d33d9a2e74
Reviewed-by: Assam Boudjelthia <[email protected]>
Copy link
Author

@villevoutilainen villevoutilainen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore commit b907f0a, it's been undone in a later commit.

Change-Id: Ia33095c343ede539afabc902d4c4c4ff8086f8d2
Reviewed-by: Assam Boudjelthia <[email protected]>
This fixes our longest-standing problem; when run in parallel, the build
sometimes (often) fails, because parallel builds cause JTE to write
to the same java class files concurrently.

The problem is cured by defining a task-specific property that is then passed
down to Jenny as the directory suffix to use for the JTE output directory.

Change-Id: I1f49a3af7f8d1102dc06cc1705c0ff1868477568
Reviewed-by: Assam Boudjelthia <[email protected]>
@LanderlYoung LanderlYoung self-requested a review November 11, 2024 04:14
@LanderlYoung LanderlYoung self-assigned this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants