Skip to content

[More question than issue] How to set platform-dependend include paths for JNI library? #535

Answered by lacasseio
blacklion asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for missing your issue/question, there's a discussion tab on the project (I will move the issue there). You can also use the Gradle community Slack, there's a #native channel.

It's a great question and the answer is to use includes.from('<path>'). There's quite a legacy behind why the documentation only shows headerSearchPaths. The includes property is a public-ish ConfigurableFileCollection property that comes from Gradle core types which we currently use. The unfortunate downside of the single includes property is the lack of information to distinguish between a header search path that is an include root (directory) vs a framework on macOS. Ideally, both are header search paths. I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@btbouwens
Comment options

Answer selected by blacklion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #534 on January 28, 2022 02:02.