Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
79 lines (74 loc) · 2.85 KB
/
Copy pathpom.xml
File metadata and controls
79 lines (74 loc) · 2.85 KB
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (c) 2015-2019 Runtime Verification, Inc. (RV-Match team). All Rights Reserved. -->
<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>
<parent>
<groupId>com.runtimeverification.k</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>llvm-backend</artifactId>
<packaging>jar</packaging>
<name>K Framework LLVM Backend</name>
<dependencies>
<dependency>
<groupId>com.runtimeverification.k</groupId>
<artifactId>kernel</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.runtimeverification.k</groupId>
<artifactId>kernel</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.runtimeverification.k</groupId>
<artifactId>llvm-backend-matching</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<properties>
<project.build.type>Release</project.build.type>
<llvm.backend.gc.interval>2000</llvm.backend.gc.interval>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>build-llvm</id>
<phase>compile</phase>
<configuration>
<skip>${llvm.backend.skip}</skip>
<target>
<mkdir dir="${project.build.directory}/build" />
<exec executable="cmake" dir="${project.build.directory}/build" failonerror="true">
<arg value="-DCMAKE_PREFIX_PATH=${prefix.path}" />
<arg value="-DCMAKE_BUILD_TYPE=${project.build.type}" />
<arg value="-DGC_INTERVAL=${llvm.backend.gc.interval}" />
<arg value="${project.basedir}/src/main/native/llvm-backend" />
</exec>
<property environment="env"/>
<exec executable="make" dir="${project.build.directory}/build" failonerror="true">
<arg value="-j12" />
<env key="PATH" value="${env.PATH}:${env.HOME}/.cargo/bin" />
</exec>
<exec executable="make" dir="${project.build.directory}/build" failonerror="true">
<arg value="install" />
<env key="PATH" value="${env.PATH}:${env.HOME}/.cargo/bin" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>