forked from ARM-software/gator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
127 lines (127 loc) · 5.53 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>4.0.0</modelVersion>
<artifactId>gator-build</artifactId>
<packaging>pom</packaging>
<parent>
<relativePath>..</relativePath>
<groupId>com.arm.streamline</groupId>
<artifactId>native-modules-build</artifactId>
<version>0.0.0-SNAPSHOT</version>
</parent>
<properties>
<cmake-generator>Unix Makefiles</cmake-generator>
<cmake-parallel-job-count>-j 3</cmake-parallel-job-count>
<cmake-build-dir>${project.build.outputDirectory}</cmake-build-dir>
<cmake-src-dir>${basedir}/../../</cmake-src-dir>
<cmake-install-path>${project.build.directory}/install-image</cmake-install-path>
<cmake-build-type>Release</cmake-build-type>
<gatord-build-usemusl>ON</gatord-build-usemusl>
</properties>
<modules>
<module>mvn/gatord-aarch64</module>
<module>mvn/gatord-armv7</module>
<module>mvn/gatord-jni-aarch64</module>
<module>mvn/gatord-jni-armv7</module>
<module>mvn/notify</module>
<module>mvn/setup</module>
<module>mvn/src-assembly</module>
<module>mvn/aggregate</module>
</modules>
<profiles>
<!-- Make CMAKE use ninja instead of make if possible since it is faster -->
<profile>
<id>enable-ninja-builds</id>
<activation>
<file>
<exists>/usr/bin/ninja</exists>
</file>
</activation>
<properties>
<cmake-generator>Ninja</cmake-generator>
</properties>
</profile>
<!-- Allow building against GLIBC instead of MUSL -->
<profile>
<id>disable-gatod-musl</id>
<properties>
<gatord-build-usemusl>OFF</gatord-build-usemusl>
</properties>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<!-- CMAKE Build plugin -->
<plugin>
<groupId>com.googlecode.cmake-maven-project</groupId>
<artifactId>cmake-maven-plugin</artifactId>
<version>${plugin-version-cmake3}</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<sourcePath>${cmake-src-dir}</sourcePath>
<targetPath>${cmake-build-dir}</targetPath>
<generator>${cmake-generator}</generator>
<classifier>${cmake-classifier}</classifier>
</configuration>
</execution>
<execution>
<id>compile</id>
<goals>
<goal>compile</goal>
</goals>
<phase>compile</phase>
<configuration>
<projectDirectory>${cmake-build-dir}</projectDirectory>
<classifier>${cmake-classifier}</classifier>
<environmentVariables>
<MAKEFLAGS>${cmake-parallel-job-count}</MAKEFLAGS>
</environmentVariables>
<target>install</target>
</configuration>
</execution>
<execution>
<id>run-unit-tests</id>
<goals>
<goal>test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<buildDirectory>${cmake-build-dir}</buildDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Assembly plugin; Creates a zip which can then be merged in the assemble project -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${plugin-version-maven-assembly}</version>
<executions>
<execution>
<id>assemble</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>true</attach>
<descriptors>
<descriptor>${basedir}/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>