jextract and Botan
Jorn Vernee
jbvernee at xs4all.nl
Mon Apr 22 14:10:21 UTC 2019
The plan has been to investigate C++ support at some point, but
short-term the focus lies on finding a useful set of low-level APIs that
other high-level functionality can be built on top of [1]
Jorn
[1] :
https://mail.openjdk.java.net/pipermail/panama-dev/2019-April/005197.html
Giorgio Zoppi schreef op 2019-04-22 13:01:
> Dear Jorn,
> ok thanks for the answer. I will proceed in this way. Does the project
> panama any plan to support native c++?
> Best Regards,
> Giorgio.
>
> El dom., 21 abr. 2019 a las 21:59, Jorn Vernee (<jbvernee at xs4all.nl>)
> escribió:
>
>> Hi Giorgio,
>>
>> Please note that jextract does not really support C++ yet. If you
>> want
>> to create bindings for Botan you will have to use the C API for now,
>>
>> which is also what's used for bindings of other languages it seems
>> [1]
>>
>> Eye-balling the command you'd need to use, try:
>>
>> jextract /usr/local/include/botan-2/botan/ffi.h -L
>> /usr/local/lib/ -I
>> /usr/local/include/botan-2/ -l botan-2 -t Botan
>> --record-library-path -o
>> botan2.jar
>>
>> A jextract of just the header file works for me, but I can not get
>> the
>> build working on my machine, so I can't test the exact command.
>>
>> Hope this helps,
>> Jorn
>>
>> [1] :
>>
> https://github.com/randombit/botan/blob/e21bddd79357f2ad8576fd871d387b722192b847/src/lib/ffi/ffi.h
>
> --
>
> Life is a chess game - Anonymous.
More information about the panama-dev
mailing list