Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 993 Bytes

README.md

File metadata and controls

39 lines (36 loc) · 993 Bytes

jextract-maven-plugin

This is a Maven wrapper for the jextract tool.

Usage

<plugin>
	<groupId>io.github.coffeelibs</groupId>
	<artifactId>jextract-maven-plugin</artifactId>
	<version>0.1.0</version>
	<configuration>
		<executable>/path/to/jextract</executable>
		<headerSearchPaths>/usr/x86_64-linux-gnu/include/</headerSearchPaths>
	</configuration>
	<executions>
		<execution>
			<id>example</id>
			<goals>
				<goal>sources</goal>
			</goals>
			<configuration>
				<headerFile>point.h</headerFile>
				<libraries>
					<library>/path/to/shared/library.so</library>
				</libraries>
				<targetPackage>com.example.mypackage</targetPackage>
				<headerClassName>Point2d</headerClassName>
				<includeStructs>
					<includeStruct>Point2d</includeStruct>
				</includeStructs>
				<includeFunctions>
					<includeFunction>distance</includeFunction>
				</includeFunctions>
			</configuration>
		</execution>
	</executions>
</plugin>