summaryrefslogtreecommitdiffstats
path: root/maven/projects/nativewindow-main/pom.sh
blob: 7dd14064df7582fb1a8ee49beaa62476e1355535 (plain)
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
#!/bin/sh

if [ $# -lt 2 ]
then
  echo "usage: version platforms+" 1>&2
  exit 1
fi

VERSION="$1"
shift
PLATFORMS="$@"

cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<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">

  <!--                                                                   -->
  <!-- Auto generated by nativewindow-main.pom.sh, do not edit directly! -->
  <!--                                                                   -->

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jogamp.jogl</groupId>
  <artifactId>nativewindow-main</artifactId>
  <version>${VERSION}</version>
  <packaging>jar</packaging>
  <name>Nativewindow (Atomics frontend)</name>
  <description>Java™ Binding for the OpenGL® API (Nativewindow atomics frontend)</description>
  <url>http://jogamp.org/jogl/www/</url>

  <!--                                                                       -->
  <!-- Explicitly depend on nativewindow, and all of its native binary jars. -->
  <!--                                                                       -->

  <dependencies>
    <dependency>
      <groupId>\${project.groupId}</groupId>
      <artifactId>nativewindow</artifactId>
      <version>\${project.version}</version>
    </dependency>

EOF

for BACKEND in win osx x11
do
  cat <<EOF
    <dependency>
      <groupId>\${project.groupId}</groupId>
      <artifactId>nativewindow</artifactId>
      <version>\${project.version}</version>
      <classifier>os-${BACKEND}</classifier>
    </dependency>
EOF
done

echo

for PLATFORM in ${PLATFORMS}
do
  cat <<EOF
    <dependency>
      <groupId>\${project.groupId}</groupId>
      <artifactId>nativewindow</artifactId>
      <version>\${project.version}</version>
      <classifier>natives-${PLATFORM}</classifier>
    </dependency>
EOF
done

cat <<EOF
  </dependencies>

EOF

cat ../jogl/pom.in || exit 1
cat <<EOF
</project>
EOF