2
0

pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.scytl.math</groupId>
  6. <artifactId>scytl-math-native</artifactId>
  7. <version>1.0.1</version>
  8. <packaging>nar</packaging>
  9. <name>Scytl Math Native</name>
  10. <description>Native implementation of some functions from Scytl Math.</description>
  11. <properties>
  12. <scytl.math>scytl-math</scytl.math>
  13. <javah.classes.directory>${basedir}/../${scytl.math}/target/classes</javah.classes.directory>
  14. <output>${scytl.math}-${project.version}</output>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>${project.groupId}</groupId>
  19. <artifactId>${scytl.math}</artifactId>
  20. <version>${project.version}</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>com.github.maven-nar</groupId>
  28. <artifactId>nar-maven-plugin</artifactId>
  29. <version>3.5.1-scytl</version>
  30. <extensions>true</extensions>
  31. <configuration>
  32. <output>${output}</output>
  33. <libraries>
  34. <library>
  35. <type>jni</type>
  36. </library>
  37. </libraries>
  38. <linker>
  39. <name>g++</name>
  40. </linker>
  41. <c>
  42. <name>gcc</name>
  43. <options>
  44. <option>-Wno-sign-conversion</option>
  45. </options>
  46. </c>
  47. <javah>
  48. <classDirectory>${javah.classes.directory}</classDirectory>
  49. </javah>
  50. </configuration>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. <profiles>
  55. <profile>
  56. <id>default</id>
  57. <!-- This is the default profile for building against gmp library published
  58. as a NAR artifact and introduced as an additional dependency. -->
  59. <activation>
  60. <activeByDefault>true</activeByDefault>
  61. </activation>
  62. <dependencies>
  63. <dependency>
  64. <groupId>com.scytl.gmp</groupId>
  65. <artifactId>scytl-gmp</artifactId>
  66. <version>6.1.1</version>
  67. <type>nar</type>
  68. <scope>provided</scope>
  69. </dependency>
  70. </dependencies>
  71. </profile>
  72. <profile>
  73. <!-- This is a custom profile for building against some custom build of
  74. GNU MP library. This profile should be used as follows: mvn -P custom -Dgmp.include.dir=<full
  75. path to the folder with gmp.h> -Dgmp.libs.dir=<full path to the folder with
  76. libgmp.so or gmp.dll depending on platform> <other parameters> -->
  77. <id>custom</id>
  78. <build>
  79. <plugins>
  80. <plugin>
  81. <groupId>com.github.maven-nar</groupId>
  82. <artifactId>nar-maven-plugin</artifactId>
  83. <version>3.5.1-scytl</version>
  84. <configuration>
  85. <linker>
  86. <libs>
  87. <lib>
  88. <name>gmp</name>
  89. <type>shared</type>
  90. <directory>${gmp.libs.dir}</directory>
  91. </lib>
  92. </libs>
  93. </linker>
  94. <c>
  95. <systemIncludePaths>
  96. <systemIncludePath>${gmp.include.dir}</systemIncludePath>
  97. </systemIncludePaths>
  98. </c>
  99. </configuration>
  100. </plugin>
  101. </plugins>
  102. </build>
  103. </profile>
  104. </profiles>
  105. </project>