258 lines
11 KiB
Plaintext
258 lines
11 KiB
Plaintext
<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">
|
|
<parent>
|
|
<artifactId>nd4j-backends</artifactId>
|
|
<groupId>org.nd4j</groupId>
|
|
<version>0.9.1</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>nd4j-backend-impls</artifactId>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>nd4j-backend-impls</name>
|
|
|
|
<modules>
|
|
<module>nd4j-native</module>
|
|
<module>nd4j-native-platform</module>
|
|
<module>nd4j-cuda</module>
|
|
<module>nd4j-cuda-platform</module>
|
|
</modules>
|
|
<dependencies>
|
|
</dependencies>
|
|
|
|
<properties>
|
|
<dependency.groupId>${project.groupId}</dependency.groupId>
|
|
<dependency.artifactId>${project.artifactId}</dependency.artifactId>
|
|
<dependency.version>${project.version}</dependency.version>
|
|
<dependency.packaging>${project.packaging}</dependency.packaging>
|
|
<dependency.classifier>${javacpp.platform}</dependency.classifier>
|
|
<dependency.platform></dependency.platform>
|
|
<javacpp.platform.android-arm>android-arm</javacpp.platform.android-arm>
|
|
<javacpp.platform.android-x86>android-x86</javacpp.platform.android-x86>
|
|
<javacpp.platform.linux-x86_64>linux-x86_64</javacpp.platform.linux-x86_64>
|
|
<javacpp.platform.macosx-x86_64>macosx-x86_64</javacpp.platform.macosx-x86_64>
|
|
<javacpp.platform.windows-x86_64>windows-x86_64</javacpp.platform.windows-x86_64>
|
|
<javacpp.platform.linux-ppc64le>linux-ppc64le</javacpp.platform.linux-ppc64le>
|
|
<javacpp.platform.linux-armhf>linux-armhf</javacpp.platform.linux-armhf>
|
|
</properties>
|
|
|
|
|
|
<build>
|
|
<testSourceDirectory>../nd4j-tests/src/test/java</testSourceDirectory>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.19.1</version>
|
|
<configuration>
|
|
<environmentVariables>
|
|
<LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${user.dir}</LD_LIBRARY_PATH>
|
|
</environmentVariables>
|
|
<includes>
|
|
<include>**/Nd4jTestSuite.java</include>
|
|
</includes>
|
|
<!-- <excludes>
|
|
<exclude>**/Test*.java</exclude>
|
|
<exclude>**/*Test.java</exclude>
|
|
<exclude>**/*TestCase.java</exclude>
|
|
</excludes> -->
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
<configuration>
|
|
<createChecksum>true</createChecksum>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>default-jar</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>org/nd4j/nativeblas/${javacpp.platform}/*</exclude>
|
|
<exclude>lib/**</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>${javacpp.platform}</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<configuration>
|
|
<classifier>${javacpp.platform}</classifier>
|
|
<skipIfEmpty>true</skipIfEmpty>
|
|
<includes>
|
|
<include>org/nd4j/nativeblas/${javacpp.platform}/*</include>
|
|
<include>lib/**</include>
|
|
</includes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>net.revelc.code.formatter</groupId>
|
|
<artifactId>formatter-maven-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<!-- Disable platform dependency when building the artifact for the dependency itself -->
|
|
<profiles>
|
|
<profile>
|
|
<id>no-platform-dependency</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${basedir}</exists>
|
|
</file>
|
|
</activation>
|
|
<properties>
|
|
<dependency.groupId>${project.parent.groupId}</dependency.groupId>
|
|
<dependency.artifactId>${project.artifactId}</dependency.artifactId>
|
|
<dependency.version>${project.parent.version}</dependency.version>
|
|
<dependency.packaging>pom</dependency.packaging>
|
|
<dependency.classifier></dependency.classifier>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>javacpp-platform-default</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${user.dir}</exists>
|
|
</file>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform>${os.name}-${os.arch}</javacpp.platform>
|
|
<dependency.platform>${javacpp.platform}</dependency.platform>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>javacpp-platform-custom</id>
|
|
<activation>
|
|
<property>
|
|
<name>javacpp.platform</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform.android-arm>${javacpp.platform}</javacpp.platform.android-arm>
|
|
<javacpp.platform.android-x86>${javacpp.platform}</javacpp.platform.android-x86>
|
|
<javacpp.platform.linux-x86_64>${javacpp.platform}</javacpp.platform.linux-x86_64>
|
|
<javacpp.platform.macosx-x86_64>${javacpp.platform}</javacpp.platform.macosx-x86_64>
|
|
<javacpp.platform.windows-x86_64>${javacpp.platform}</javacpp.platform.windows-x86_64>
|
|
<javacpp.platform.linux-ppc64le>${javacpp.platform}</javacpp.platform.linux-ppc64le>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>javacpp-platform-none</id>
|
|
<activation>
|
|
<property>
|
|
<name>javacpp.platform.none</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform.android-arm></javacpp.platform.android-arm>
|
|
<javacpp.platform.android-x86></javacpp.platform.android-x86>
|
|
<javacpp.platform.linux-x86_64></javacpp.platform.linux-x86_64>
|
|
<javacpp.platform.macosx-x86_64></javacpp.platform.macosx-x86_64>
|
|
<javacpp.platform.windows-x86_64></javacpp.platform.windows-x86_64>
|
|
<javacpp.platform.linux-ppc64le></javacpp.platform.linux-ppc64le>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>javacpp-platform-build</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${basedir}</exists>
|
|
</file>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform.android-arm></javacpp.platform.android-arm>
|
|
<javacpp.platform.android-x86></javacpp.platform.android-x86>
|
|
<javacpp.platform.linux-x86_64></javacpp.platform.linux-x86_64>
|
|
<javacpp.platform.macosx-x86_64></javacpp.platform.macosx-x86_64>
|
|
<javacpp.platform.windows-x86_64></javacpp.platform.windows-x86_64>
|
|
<javacpp.platform.linux-ppc64le></javacpp.platform.linux-ppc64le>
|
|
</properties>
|
|
</profile>
|
|
|
|
<!-- Provide convenient profiles to set commonly used paths for Android -->
|
|
<profile>
|
|
<id>android-arm-default</id>
|
|
<activation>
|
|
<property>
|
|
<name>javacpp.platform</name>
|
|
<value>android-arm</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform>android-arm</javacpp.platform>
|
|
<javacpp.platform.root>${env.ANDROID_NDK}</javacpp.platform.root>
|
|
<javacpp.platform.compiler>toolchains/arm-linux-androideabi-4.9/prebuilt/${os.name}-${os.arch}/bin/arm-linux-androideabi-g++</javacpp.platform.compiler>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>android-x86-default</id>
|
|
<activation>
|
|
<property>
|
|
<name>javacpp.platform</name>
|
|
<value>android-x86</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform>android-x86</javacpp.platform>
|
|
<javacpp.platform.root>${env.ANDROID_NDK}</javacpp.platform.root>
|
|
<javacpp.platform.compiler>toolchains/x86-4.9/prebuilt/${os.name}-${os.arch}/bin/i686-linux-android-g++</javacpp.platform.compiler>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>linux-armhf-default</id>
|
|
<activation>
|
|
<property>
|
|
<name>javacpp.platform</name>
|
|
<value>linux-armhf</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<javacpp.platform>linux-armhf</javacpp.platform>
|
|
<javacpp.platform.root>/home/almanac/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf</javacpp.platform.root>
|
|
<javacpp.platform.compiler>bin/arm-linux-gnueabihf-g++</javacpp.platform.compiler>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
<version>2.19.1</version>
|
|
</plugin>
|
|
<!-- Test coverage -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<version>2.7</version>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
</project>
|