<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<name>libprism_sw</name>
	<packaging>so</packaging>
	<artifactId>libprism_sw</artifactId>
	<groupId>org.openjfx</groupId>
	<version>@RELEASE_VERSION@</version>
	<properties>
		<commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -DINLINE=inline</commonCompilerOptions>
		<native.source.dir>../src/main/native-prism-sw</native.source.dir>
	</properties>
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>native-maven-plugin</artifactId>
                                <version>1.0-alpha-5</version>
				<extensions>true</extensions>
				<configuration>
					<compilerStartOptions>
						<compilerStartOption>${commonCompilerOptions}</compilerStartOption>
					</compilerStartOptions>
					<sources>
						<source>
							<directory>${native.source.dir}</directory>
							<includes>
								<include>**/*.c</include>
						    </includes>
						</source>
						<source>
							<directory>${JAVA_HOME}/include</directory>
						</source>
						<source>
							<directory>${JAVA_HOME}/include/linux</directory>
						</source>
						<source>
							<directory>../build/gensrc/headers</directory>
						</source>
					</sources>
					<linkerStartOptions>
						<linkerStartOption>-static-libgcc</linkerStartOption>
						<linkerStartOption>-static-libstdc++</linkerStartOption>
						<linkerStartOption>-shared</linkerStartOption>
						<linkerStartOption>-fno-strict-aliasing</linkerStartOption>
						<linkerStartOption>-fPIC</linkerStartOption>
						<linkerStartOption>-fno-omit-frame-pointer</linkerStartOption>
						<linkerStartOption>-fstack-protector</linkerStartOption>
						<linkerStartOption>-Wextra</linkerStartOption>
						<linkerStartOption>-Wall</linkerStartOption>
						<linkerStartOption>-Wformat-security</linkerStartOption>
						<linkerStartOption>-Wno-unused</linkerStartOption>
						<linkerStartOption>-Wno-parentheses</linkerStartOption>
						<linkerStartOption>-z</linkerStartOption>
						<linkerStartOption>relro</linkerStartOption>
						<linkerStartOption>-Wl,--gc-sections</linkerStartOption>
					</linkerStartOptions>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
