194 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			194 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <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>
 | |
|     <groupId>electrosphere</groupId>
 | |
|     <artifactId>fluid-sim</artifactId>
 | |
|     <version>1.0-SNAPSHOT</version>
 | |
|     <packaging>jar</packaging>
 | |
|     <properties>
 | |
|         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | |
|         <maven.compiler.source>17</maven.compiler.source>
 | |
|         <maven.compiler.target>17</maven.compiler.target>
 | |
|         <lwjgl.version>3.2.3</lwjgl.version>
 | |
|         <joml.version>1.10.5</joml.version>
 | |
|     </properties>
 | |
| 
 | |
|     <dependencyManagement>
 | |
|         <dependencies>
 | |
|             <dependency>
 | |
|                 <groupId>org.lwjgl</groupId>
 | |
|                 <artifactId>lwjgl-bom</artifactId>
 | |
|                 <version>${lwjgl.version}</version>
 | |
|                 <scope>import</scope>
 | |
|                 <type>pom</type>
 | |
|             </dependency>
 | |
|         </dependencies>
 | |
|     </dependencyManagement>
 | |
| 
 | |
|     <profiles>
 | |
|         <profile>
 | |
|             <id>lwjgl-natives-linux</id>
 | |
|             <activation>
 | |
|                 <os>
 | |
|                     <family>unix</family>
 | |
|                 </os>
 | |
|             </activation>
 | |
|             <properties>
 | |
|                 <lwjgl.natives>natives-linux</lwjgl.natives>
 | |
|             </properties>
 | |
|         </profile>
 | |
|         <profile>
 | |
|             <id>lwjgl-natives-macos</id>
 | |
|             <activation>
 | |
|                 <os>
 | |
|                     <family>mac</family>
 | |
|                 </os>
 | |
|             </activation>
 | |
|             <properties>
 | |
|                 <maven.compiler.target>17</maven.compiler.target> 
 | |
|                 <lwjgl.natives>natives-macos</lwjgl.natives>
 | |
|             </properties>
 | |
|         </profile>
 | |
|         <profile>
 | |
|             <id>lwjgl-natives-windows</id>
 | |
|             <activation>
 | |
|                 <os>
 | |
|                     <family>windows</family>
 | |
|                 </os>
 | |
|             </activation>
 | |
|             <properties>
 | |
|                 <lwjgl.natives>natives-windows</lwjgl.natives>
 | |
|             </properties>
 | |
|         </profile>
 | |
|     </profiles>
 | |
| 
 | |
| 
 | |
|     <dependencies>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-glfw</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-opencl</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-opengl</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl</artifactId>
 | |
|             <classifier>${lwjgl.natives}</classifier>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-glfw</artifactId>
 | |
|             <classifier>${lwjgl.natives}</classifier>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-opengl</artifactId>
 | |
|             <classifier>${lwjgl.natives}</classifier>
 | |
|         </dependency>
 | |
| 		<dependency>
 | |
|             <groupId>org.joml</groupId>
 | |
|             <artifactId>joml</artifactId>
 | |
|             <version>${joml.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-opengl</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.lwjgl</groupId>
 | |
|             <artifactId>lwjgl-opengl</artifactId>
 | |
|             <classifier>${lwjgl.natives}</classifier>
 | |
|         </dependency>
 | |
|     </dependencies>
 | |
|     
 | |
|     <build>
 | |
|         <plugins>
 | |
|             <plugin>
 | |
|                 <groupId>org.apache.maven.plugins</groupId>
 | |
|                 <artifactId>maven-shade-plugin</artifactId>
 | |
|                 <version>3.2.4</version>
 | |
|                 <executions>
 | |
|                     <execution>
 | |
|                         <phase>package</phase>
 | |
|                         <goals>
 | |
|                             <goal>shade</goal>
 | |
|                         </goals>
 | |
|                         <configuration>
 | |
|                             <transformers>
 | |
|                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
 | |
|                                     <mainClass>electrosphere.Main</mainClass>
 | |
|                                 </transformer>
 | |
|                             </transformers>
 | |
|                         </configuration>
 | |
|                     </execution>
 | |
|                 </executions>
 | |
|             </plugin>
 | |
|             <plugin>
 | |
|                 <artifactId>maven-assembly-plugin</artifactId>
 | |
|                 <version>3.0.0</version>
 | |
|                 <configuration>
 | |
|                     <descriptorRefs>
 | |
|                         <descriptorRef>jar-with-dependencies</descriptorRef>
 | |
|                     </descriptorRefs>
 | |
|                     <archive>
 | |
|                         <manifest>
 | |
|                             <mainClass>electrosphere.Main</mainClass>
 | |
|                         </manifest>
 | |
|                     </archive>
 | |
|                 </configuration>
 | |
|                 <executions>
 | |
|                     <execution>
 | |
|                         <id>make-assembly</id> 
 | |
|                         <phase>package</phase> <!-- bind to the packaging phase -->
 | |
|                         <goals>
 | |
|                             <goal>single</goal>
 | |
|                         </goals>
 | |
|                     </execution>
 | |
|                 </executions>
 | |
|             </plugin>
 | |
|             <plugin>
 | |
|                 <artifactId>maven-compiler-plugin</artifactId>
 | |
|                 <version>3.11.0</version>
 | |
|                 <configuration>
 | |
|                     <source>17</source>
 | |
|                     <target>17</target>
 | |
|                     <compilerArgs>
 | |
|                         <arg>-h</arg>
 | |
|                         <arg>src/main/c/includes</arg>
 | |
|                     </compilerArgs>
 | |
|                 </configuration>
 | |
|             </plugin>
 | |
|             <plugin>
 | |
|                 <groupId>org.codehaus.mojo</groupId>
 | |
|                 <artifactId>exec-maven-plugin</artifactId>
 | |
|                 <version>3.1.0</version>
 | |
|                 <executions>
 | |
|                     <execution>
 | |
|                         <id>compile-c-code</id>
 | |
|                         <phase>generate-resources</phase>
 | |
|                         <goals>
 | |
|                             <goal>exec</goal>
 | |
|                         </goals>
 | |
|                         <configuration>
 | |
|                             <executable>bash</executable>
 | |
|                             <arguments>
 | |
|                                 <argument>./src/main/c/compile.sh</argument>
 | |
|                             </arguments>
 | |
|                         </configuration>
 | |
|                     </execution>
 | |
|                 </executions>
 | |
|             </plugin>
 | |
|         </plugins>
 | |
|     </build>
 | |
| 
 | |
| </project> | 
