RFR: 7903731: Jextract should support macOS frameworks [v3]

Nizar Benalla nbenalla at openjdk.org
Mon Feb 3 18:57:04 UTC 2025


On Thu, 2 Jan 2025 19:14:26 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

>> Read the JBS issue for more detail.
>> 
>> This patch adds two new mac specific options, to make it easier to use frameworks and remove the need of a `compile_flags.txt` file. An exception is thrown if those options are used from an other platform, the error message is inspired from `jpackage`
>
> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision:
> 
>   use consistent spacing

This PR will only make dealing with MacOs frameworks easier, but if you couldn't generate the Java bindings before this change, you still won't be able to afterward.

jextract will explicitly throw errors for things that are not in the C language (see `TreeMaker::createTree`), I don't think it can process objective-c only constructs out of the box so you will need to make some changes.

-------------

PR Comment: https://git.openjdk.org/jextract/pull/268#issuecomment-2631804944


More information about the jextract-dev mailing list