123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?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>com.scytl.math</groupId>
- <artifactId>scytl-math-native</artifactId>
- <version>1.0.1</version>
- <packaging>nar</packaging>
- <name>Scytl Math Native</name>
- <description>Native implementation of some functions from Scytl Math.</description>
- <properties>
- <scytl.math>scytl-math</scytl.math>
- <javah.classes.directory>${basedir}/../${scytl.math}/target/classes</javah.classes.directory>
- <output>${scytl.math}-${project.version}</output>
- </properties>
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>${scytl.math}</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>com.github.maven-nar</groupId>
- <artifactId>nar-maven-plugin</artifactId>
- <version>3.5.1-scytl</version>
- <extensions>true</extensions>
- <configuration>
- <output>${output}</output>
- <libraries>
- <library>
- <type>jni</type>
- </library>
- </libraries>
- <linker>
- <name>g++</name>
- </linker>
- <c>
- <name>gcc</name>
- <options>
- <option>-Wno-sign-conversion</option>
- </options>
- </c>
- <javah>
- <classDirectory>${javah.classes.directory}</classDirectory>
- </javah>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>default</id>
- <!-- This is the default profile for building against gmp library published
- as a NAR artifact and introduced as an additional dependency. -->
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.scytl.gmp</groupId>
- <artifactId>scytl-gmp</artifactId>
- <version>6.1.1</version>
- <type>nar</type>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <!-- This is a custom profile for building against some custom build of
- GNU MP library. This profile should be used as follows: mvn -P custom -Dgmp.include.dir=<full
- path to the folder with gmp.h> -Dgmp.libs.dir=<full path to the folder with
- libgmp.so or gmp.dll depending on platform> <other parameters> -->
- <id>custom</id>
- <build>
- <plugins>
- <plugin>
- <groupId>com.github.maven-nar</groupId>
- <artifactId>nar-maven-plugin</artifactId>
- <version>3.5.1-scytl</version>
- <configuration>
- <linker>
- <libs>
- <lib>
- <name>gmp</name>
- <type>shared</type>
- <directory>${gmp.libs.dir}</directory>
- </lib>
- </libs>
- </linker>
- <c>
- <systemIncludePaths>
- <systemIncludePath>${gmp.include.dir}</systemIncludePath>
- </systemIncludePaths>
- </c>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|