File: pom.xml

package info (click to toggle)
tuxguitar 2.0.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,816 kB
  • sloc: java: 144,918; ansic: 4,784; xml: 3,913; sh: 1,457; perl: 207; makefile: 24; javascript: 3
file content (211 lines) | stat: -rw-r--r-- 9,660 bytes parent folder | download
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<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>tuxguitar-pom</artifactId>
		<groupId>app.tuxguitar</groupId>
		<version>9.99-SNAPSHOT</version>
		<relativePath>../../../</relativePath>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>tuxguitar-synth-lv2-linux</artifactId>
	<packaging>pom</packaging>
	<name>${project.artifactId}</name>

	<properties>
		<tuxguitar.jni.cxx>g++</tuxguitar.jni.cxx>
		<tuxguitar.jni.rm>rm -f</tuxguitar.jni.rm>
		<tuxguitar.jni.ldpath>-L/usr/lib</tuxguitar.jni.ldpath>
		<tuxguitar.jni.library.prefix>lib</tuxguitar.jni.library.prefix>
		<tuxguitar.jni.library.suffix>.so</tuxguitar.jni.library.suffix>
		<tuxguitar.jni.header.path>-I${basedir}/../common-include</tuxguitar.jni.header.path>

		<tuxguitar-synth-lv2.jni.path>${project.parent.relativePath}/TuxGuitar-synth-lv2/src/main/jni/</tuxguitar-synth-lv2.jni.path>
		<tuxguitar-synth-lv2.jni.cxx>${tuxguitar.jni.cxx}</tuxguitar-synth-lv2.jni.cxx>
		<tuxguitar-synth-lv2.jni.rm>${tuxguitar.jni.rm}</tuxguitar-synth-lv2.jni.rm>
		<tuxguitar-synth-lv2.jni.cflags>${tuxguitar.jni.header.path} -I/usr/include/lilv-0/lilv -fPIC -fpermissive -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2</tuxguitar-synth-lv2.jni.cflags>
		<tuxguitar-synth-lv2.jni.ldflags>-fPIC -Wl,-z,relro -Wl,-z,now</tuxguitar-synth-lv2.jni.ldflags>
		<tuxguitar-synth-lv2.jni.ldlibs>-llilv-0 -lsuil-0</tuxguitar-synth-lv2.jni.ldlibs>
		<tuxguitar-synth-lv2.jni.ldpath>${tuxguitar.jni.ldpath}</tuxguitar-synth-lv2.jni.ldpath>
		<tuxguitar-synth-lv2.jni.library.name>tuxguitar-synth-lv2-jni</tuxguitar-synth-lv2.jni.library.name>
		<tuxguitar-synth-lv2.jni.library.prefix>${tuxguitar.jni.library.prefix}</tuxguitar-synth-lv2.jni.library.prefix>
		<tuxguitar-synth-lv2.jni.library.suffix>${tuxguitar.jni.library.suffix}</tuxguitar-synth-lv2.jni.library.suffix>
		<tuxguitar-synth-lv2.jni.library.os>_GNULinux</tuxguitar-synth-lv2.jni.library.os>

		<tuxguitar-synth-lv2.cxx.path>${project.parent.relativePath}/TuxGuitar-synth-lv2/src/main/cxx/</tuxguitar-synth-lv2.cxx.path>
		<tuxguitar-synth-lv2.cxx.cxx>${tuxguitar.jni.cxx}</tuxguitar-synth-lv2.cxx.cxx>
		<tuxguitar-synth-lv2.cxx.rm>${tuxguitar.jni.rm}</tuxguitar-synth-lv2.cxx.rm>
		<tuxguitar-synth-lv2.cxx.cflags>-I/usr/include/lilv-0/lilv -I/usr/include/suil-0/suil -I`pkg-config Qt5Core --cflags` `pkg-config Qt5Widgets --cflags` -fPIC -fpermissive -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2</tuxguitar-synth-lv2.cxx.cflags>
		<tuxguitar-synth-lv2.cxx.ldflags>-fPIC -Wl,-z,relro -Wl,-z,now</tuxguitar-synth-lv2.cxx.ldflags>
		<tuxguitar-synth-lv2.cxx.ldlibs>-llilv-0 -lsuil-0 -lpthread `pkg-config Qt5Core --libs` `pkg-config Qt5Widgets --libs`</tuxguitar-synth-lv2.cxx.ldlibs>
		<tuxguitar-synth-lv2.cxx.ldpath>${tuxguitar.jni.ldpath}</tuxguitar-synth-lv2.cxx.ldpath>
		<tuxguitar-synth-lv2.cxx.binary.name>tuxguitar-synth-lv2</tuxguitar-synth-lv2.cxx.binary.name>
		<tuxguitar-synth-lv2.cxx.binary.prefix></tuxguitar-synth-lv2.cxx.binary.prefix>
		<tuxguitar-synth-lv2.cxx.binary.suffix>.bin</tuxguitar-synth-lv2.cxx.binary.suffix>
		<tuxguitar-synth-lv2.cxx.binary.os>_GNULinux</tuxguitar-synth-lv2.cxx.binary.os>
	</properties>

	<modules>
		<module>${project.parent.relativePath}/TuxGuitar-synth-lv2</module>
	</modules>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>compile-native-jni</id>
						<phase>compile</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="compile-native-jni">
								<exec dir="${tuxguitar-synth-lv2.jni.path}" executable="make" failonerror="true" >
									<env key="CXX" value="${tuxguitar-synth-lv2.jni.cxx}" />
									<env key="CFLAGS" value="${tuxguitar-synth-lv2.jni.cflags}" />
									<env key="LDFLAGS" value="${tuxguitar-synth-lv2.jni.ldflags}" />
									<env key="LDLIBS" value="${tuxguitar-synth-lv2.jni.ldlibs}" />
									<env key="LDPATH" value="${tuxguitar-synth-lv2.jni.ldpath}" />
									<env key="LIBRARY_NAME" value="${tuxguitar-synth-lv2.jni.library.name}" />
									<env key="LIBRARY_PREFIX" value="${tuxguitar-synth-lv2.jni.library.prefix}" />
									<env key="LIBRARY_SUFFIX" value="${tuxguitar-synth-lv2.jni.library.suffix}" />
									<env key="LIBRARY_OS" value="${tuxguitar-synth-lv2.jni.library.os}" />
								</exec>
							</target>
						</configuration>
					</execution>

					<execution>
						<id>compile-native-ui</id>
						<phase>compile</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="compile-native-ui">
								<exec dir="${tuxguitar-synth-lv2.cxx.path}" executable="make" failonerror="true" >
									<env key="CXX" value="${tuxguitar-synth-lv2.cxx.cxx}" />
									<env key="CFLAGS" value="${tuxguitar-synth-lv2.cxx.cflags}" />
									<env key="LDFLAGS" value="${tuxguitar-synth-lv2.cxx.ldflags}" />
									<env key="LDLIBS" value="${tuxguitar-synth-lv2.cxx.ldlibs}" />
									<env key="LDPATH" value="${tuxguitar-synth-lv2.cxx.ldpath}" />
									<env key="BINARY_NAME" value="${tuxguitar-synth-lv2.cxx.binary.name}" />
									<env key="BINARY_PREFIX" value="${tuxguitar-synth-lv2.cxx.binary.prefix}" />
									<env key="BINARY_SUFFIX" value="${tuxguitar-synth-lv2.cxx.binary.suffix}" />
									<env key="BINARY_OS" value="${tuxguitar-synth-lv2.cxx.binary.os}" />
								</exec>
							</target>
						</configuration>
					</execution>

					<execution>
						<id>clean-native-jni</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="clean-native-jni">
								<exec dir="${tuxguitar-synth-lv2.jni.path}" executable="make" failonerror="true" >
									<arg value="clean" />
									<env key="RM" value="${tuxguitar-synth-lv2.jni.rm}" />
									<env key="LIBRARY_NAME" value="${tuxguitar-synth-lv2.jni.library.name}" />
									<env key="LIBRARY_PREFIX" value="${tuxguitar-synth-lv2.jni.library.prefix}" />
									<env key="LIBRARY_SUFFIX" value="${tuxguitar-synth-lv2.jni.library.suffix}" />
								</exec>
							</target>
						</configuration>
					</execution>

					<execution>
						<id>clean-native-ui</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="clean-native-ui">
								<exec dir="${tuxguitar-synth-lv2.cxx.path}" executable="make" failonerror="true" >
									<arg value="clean" />
									<env key="RM" value="${tuxguitar-synth-lv2.cxx.rm}" />
									<env key="BINARY_NAME" value="${tuxguitar-synth-lv2.cxx.binary.name}" />
									<env key="BINARY_PREFIX" value="${tuxguitar-synth-lv2.cxx.binary.prefix}" />
									<env key="BINARY_SUFFIX" value="${tuxguitar-synth-lv2.cxx.binary.suffix}" />
									<env key="BINARY_OS" value="${tuxguitar-synth-lv2.cxx.binary.os}" />
								</exec>
							</target>
						</configuration>
					</execution>

					<execution>
						<id>native-module-jni-copy</id>
						<phase>package</phase>
						<configuration>
							<target name="native-module-jni-copy">
								<mkdir dir="${project.build.directory}/build/lib" />
								<copy todir="${project.build.directory}/build/lib">
									<fileset file="${tuxguitar-synth-lv2.jni.path}/${tuxguitar-synth-lv2.jni.library.prefix}${tuxguitar-synth-lv2.jni.library.name}${tuxguitar-synth-lv2.jni.library.suffix}" />
								</copy>
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>

					<execution>
						<id>native-module-ui-copy</id>
						<phase>package</phase>
						<configuration>
							<target name="native-module-ui-copy">
								<mkdir dir="${project.build.directory}/build" />
								<mkdir dir="${project.build.directory}/build/lv2-client" />

								<copy todir="${project.build.directory}/build/lv2-client">
									<fileset file="${tuxguitar-synth-lv2.cxx.path}/tuxguitar-synth-lv2.png" />
									<fileset file="${tuxguitar-synth-lv2.cxx.path}/${tuxguitar-synth-lv2.cxx.binary.prefix}${tuxguitar-synth-lv2.cxx.binary.name}${tuxguitar-synth-lv2.cxx.binary.suffix}" />
								</copy>

								<chmod file="${project.build.directory}/build/lv2-client/${tuxguitar-synth-lv2.cxx.binary.prefix}${tuxguitar-synth-lv2.cxx.binary.name}${tuxguitar-synth-lv2.cxx.binary.suffix}" perm="755" />
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>3.5.0</version>
				<executions>
					<execution>
						<id>native-module-copy-libs</id>
						<phase>package</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>${project.groupId}</groupId>
									<artifactId>tuxguitar-synth-lv2</artifactId>
									<destFileName>tuxguitar-synth-lv2.jar</destFileName>
									<outputDirectory>${project.build.directory}/build/share/plugins</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>