/
build.gradle
130 lines (109 loc) · 3.58 KB
/
build.gradle
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
128
129
130
/*
*
* Copyright (c) 2014-2020 Embedded Systems and Applications, TU Darmstadt.
*
* This file is part of TaPaSCo
* (see https://github.com/esa-tu-darmstadt/tapasco).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import com.netflix.gradle.plugins.deb.control.MultiArch
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.2/userguide/scala_plugin.html
*/
plugins {
// Apply the scala plugin to add support for Scala
id 'scala'
id 'application'
// Netflix provided plug-in for OS packaging
id "nebula.ospackage" version "8.3.0"
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
jcenter()
}
dependencies {
// Use Scala 2.12 in our library project
implementation 'org.scala-lang:scala-library:2.12.8'
implementation 'org.scala-lang:scala-reflect:2.12.8'
implementation 'org.scala-lang:scala-compiler:2.12.8'
implementation 'com.typesafe.play:play-json_2.12:2.7.3'
implementation 'org.slf4j:slf4j-api:1.7.26'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'com.lihaoyi:fastparse_2.12:1.0.0'
// Use Scalatest for testing our library
testImplementation 'junit:junit:4.12'
testImplementation 'org.scalatest:scalatest_2.12:3.0.5'
testImplementation 'org.scalacheck:scalacheck_2.12:1.14.0'
// Need scala-xml at test runtime
testRuntimeOnly 'org.scala-lang.modules:scala-xml_2.12:1.1.1'
}
application {
mainClassName = 'tapasco.Tapasco'
applicationDefaultJvmArgs = ['-Xms512M', '-Xmx1536M', '-Xss1M', '-XX:+CMSClassUnloadingEnabled']
}
ospackage {
packageName = "tapasco"
version = "2022"
release = "01"
license = "GNU Lesser General Public License v3.0"
vendor = "Embedded Systems and Applications Group, TU Darmstadt"
url = "https://github.com/esa-tu-darmstadt/tapasco"
os = LINUX
maintainer = "Embedded Systems and Applications Group, TU Darmstadt"
into "/opt/tapasco"
from("build/install/tapasco/bin"){
into "bin"
exclude "tapasco.bat"
}
from("build/install/tapasco/lib"){
into "lib"
}
from("../vivado"){
into "vivado"
}
from("../examples"){
into "examples"
}
from("../boot"){
into "boot"
}
from("../bin"){
into "bin"
}
from("../os-package")
from("../../runtime/platform/include"){
into "runtime/platform/include"
include "platform_caps.h"
include "platform_global.h"
include "platform_components.h"
}
}
buildDeb {
arch = "amd64"
multiArch = MultiArch.FOREIGN
requires("default-jre")
}
buildRpm {
arch = X86_64
requires("java-openjdk", "8.0", GREATER | EQUAL)
requires("which")
}