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 (134 lines) | stat: -rw-r--r-- 5,365 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
<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-fluidsynth-linux</artifactId>
	<packaging>pom</packaging>
	<name>${project.artifactId}</name>

	<properties>
		<tuxguitar.jni.cc>gcc</tuxguitar.jni.cc>
		<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-fluidsynth.jni.path>${project.parent.relativePath}/TuxGuitar-fluidsynth/jni/</tuxguitar-fluidsynth.jni.path>
		<tuxguitar-fluidsynth.jni.rm>${tuxguitar.jni.rm}</tuxguitar-fluidsynth.jni.rm>
		<tuxguitar-fluidsynth.jni.cc>${tuxguitar.jni.cc}</tuxguitar-fluidsynth.jni.cc>
		<tuxguitar-fluidsynth.jni.cflags>${tuxguitar.jni.header.path} -fPIC -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security</tuxguitar-fluidsynth.jni.cflags>
		<tuxguitar-fluidsynth.jni.ldflags>-fPIC -Wl,-z,relro -Wl,-z,now</tuxguitar-fluidsynth.jni.ldflags>
		<tuxguitar-fluidsynth.jni.ldlibs>-lfluidsynth</tuxguitar-fluidsynth.jni.ldlibs>
		<tuxguitar-fluidsynth.jni.ldpath>${tuxguitar.jni.ldpath}</tuxguitar-fluidsynth.jni.ldpath>
		<tuxguitar-fluidsynth.jni.library.name>tuxguitar-fluidsynth-jni</tuxguitar-fluidsynth.jni.library.name>
		<tuxguitar-fluidsynth.jni.library.prefix>${tuxguitar.jni.library.prefix}</tuxguitar-fluidsynth.jni.library.prefix>
		<tuxguitar-fluidsynth.jni.library.suffix>${tuxguitar.jni.library.suffix}</tuxguitar-fluidsynth.jni.library.suffix>
	</properties>

	<modules>
		<module>${project.parent.relativePath}/TuxGuitar-fluidsynth</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</id>
						<phase>compile</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="compile-native">
								<exec dir="${tuxguitar-fluidsynth.jni.path}" executable="make" failonerror="true" >
									<env key="CC" value="${tuxguitar-fluidsynth.jni.cc}" />
									<env key="CFLAGS" value="${tuxguitar-fluidsynth.jni.cflags}" />
									<env key="LDFLAGS" value="${tuxguitar-fluidsynth.jni.ldflags}" />
									<env key="LDLIBS" value="${tuxguitar-fluidsynth.jni.ldlibs}" />
									<env key="LDPATH" value="${tuxguitar-fluidsynth.jni.ldpath}" />
									<env key="LIBRARY_NAME" value="${tuxguitar-fluidsynth.jni.library.name}" />
									<env key="LIBRARY_PREFIX" value="${tuxguitar-fluidsynth.jni.library.prefix}" />
									<env key="LIBRARY_SUFFIX" value="${tuxguitar-fluidsynth.jni.library.suffix}" />
								</exec>
							</target>
						</configuration>
					</execution>

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

					<execution>
						<id>native-module-copy</id>
						<phase>package</phase>
						<configuration>
							<target name="copy-files">
								<mkdir dir="${project.build.directory}/build/lib" />
								<copy todir="${project.build.directory}/build/lib">
									<fileset file="${tuxguitar-fluidsynth.jni.path}/${tuxguitar-fluidsynth.jni.library.prefix}${tuxguitar-fluidsynth.jni.library.name}${tuxguitar-fluidsynth.jni.library.suffix}" />
								</copy>
							</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-fluidsynth</artifactId>
									<destFileName>tuxguitar-fluidsynth.jar</destFileName>
									<outputDirectory>${project.build.directory}/build/share/plugins</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>
</project>