<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>javafx.graphics</name>
	<packaging>jar</packaging>
	<artifactId>javafx.graphics</artifactId>
	<groupId>org.openjfx</groupId>
	<version>@RELEASE_VERSION@</version>
	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>javafx.base</artifactId>
			<version>${project.version}</version>
		</dependency>
	</dependencies>
	<build>
		<sourceDirectory>../../src/main/java</sourceDirectory>
		<outputDirectory>../../target/classes</outputDirectory>
		<resources>
			<resource>
				<directory>../../src/main/java</directory>
				<includes>
					<include>**/*.frag</include>
				</includes>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>**/*.rc</exclude>
					<exclude>**/*.tokens</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>../../src/main/resources</directory>
			</resource>
			<resource>
				<directory>../../build/gensrc/jsl-decora</directory>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>**/*.cc</exclude>
					<exclude>**/*.rc</exclude>
					<exclude>**/*.hlsl</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>../../build/gensrc/jsl-prism</directory>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>**/*.cc</exclude>
					<exclude>**/*.rc</exclude>
					<exclude>**/*.hlsl</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>11</source>
					<target>11</target>/
					<release>11</release>
					<compilerArgs>
						<arg>-g:source,lines,vars</arg>
						<arg>-proc:none</arg>
						<arg>-XDuseUnsharedTable=true</arg>
						<arg>-XDignore.symbol.file</arg>
						<arg>-nowarn</arg>
						<arg>-implicit:none</arg>
						<arg>-h</arg>
						<arg>modules/javafx.graphics/build/gensrc/headers/</arg>
					</compilerArgs>
					<excludes>
						<exclude>**/mac/*.java</exclude>
						<exclude>**/ios/*.java</exclude>
						<exclude>**/android/*.java</exclude>
						<exclude>**/win/*.java</exclude>
						<exclude>**/prism/d3d/*.java</exclude>
						<exclude>**/prism/es2/WinGL*.java</exclude>
						<exclude>**/prism/es2/MacGL*.java</exclude>
						<exclude>**/prism/es2/IOS*.java</exclude>
						<exclude>**/prism/es2/EGL*.java</exclude>
						<exclude>**/prism/null3d/*.java</exclude>
					</excludes>
				</configuration>
				<version>3.8.1</version>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-classes</phase>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<tasks>
						<copy todir="../../target/classes/com/sun/prism/shader">
							<fileset dir="../mvn-prism/target/classes/com/sun/prism/shader">
								<include name="**/*.class"/>
							</fileset>
						</copy>
						<copy todir="../../target/classes/com/sun/scenario/effect/impl/prism/ps">
							<fileset dir="../mvn-decora/target/classes/com/sun/scenario/effect/impl/prism/ps">
								<include name="**/*.class"/>
							</fileset>
						</copy>
						<copy todir="../../target/classes/com/sun/scenario/effect/impl/sw/java">
							<fileset dir="../mvn-decora/target/classes/com/sun/scenario/effect/impl/sw/java">
								<include name="**/*.class"/>
							</fileset>
						</copy>
						<copy todir="../../target/classes/com/sun/scenario/effect/impl/sw/sse">
							<fileset dir="../mvn-decora/target/classes/com/sun/scenario/effect/impl/sw/sse">
								<include name="**/*.class"/>
							</fileset>
						</copy>
					</tasks>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<finalName>javafx.graphics</finalName>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
