Skip to content

coffeelibs/jextract-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>