RFR: 7903731: Jextract should support macOS frameworks [v3]
Emrul
duke at openjdk.org
Sun Feb 2 14:12:57 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
I'm interested in this PR and I gave it a quick test to see if I could import bits of the WebKit Framework. Unless I'm doing something wrong (which is quite possible as its the first time I'm attempting to use jextract...) it appears not to work as expected.
For example:
./jextract --output ./tmp --target-package com.example.webview.webkit -f Foundation -f WebKit /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h
Returns some errors such as:
NSObjCRuntime.h:609:19: error: unknown type name 'NSString'
NSObjCRuntime.h:610:53: error: unknown type name 'NSString'
NSObjCRuntime.h:612:19: error: unknown type name 'NSString'
NSObjCRuntime.h:612:50: error: unknown type name 'Protocol'
NSObjCRuntime.h:613:19: error: unknown type name 'Protocol'
-------------
PR Comment: https://git.openjdk.org/jextract/pull/268#issuecomment-2629407732
More information about the jextract-dev
mailing list