krakowski / gradle-jextract

Gradle plugin for integrating Project Panama's jextract tool
https://plugins.gradle.org/plugin/io.github.krakowski.jextract
GNU General Public License v3.0
53 stars 10 forks source link

Add definedMacros option #14

Closed aecsocket closed 1 year ago

aecsocket commented 1 year ago

jextract supports an option to define a C preprocessor macro from the command line:

-D <macro>                     define a C preprocessor macro    

Note that this is separate from --include-macro <name>, which seems to do something else. This pull requests adds the -D functionality under a definedMacros property in the LibraryDefinition.

krakowski commented 1 year ago

Hey @aecsocket,

thank you for your interest and effort in this project! Your changes look good to me, so I will merge them into master and create a new plugin release after that :slightly_smiling_face: