1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
5 This code is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License version 2 only, as
7 published by the Free Software Foundation. Oracle designates this
8 particular file as subject to the "Classpath" exception as provided
9 by Oracle in the LICENSE file that accompanied this code.
10
11 This code is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 version 2 for more details (a copy is included in the LICENSE file that
15 accompanied this code).
16
17 You should have received a copy of the GNU General Public License version
18 2 along with this work; if not, write to the Free Software Foundation,
19 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
21 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 or visit www.oracle.com if you need additional information or have any
23 questions.
24 -->
25 <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">
26 <modelVersion>4.0.0</modelVersion>
27 <packaging>jar</packaging>
28 <groupId>oracle.code</groupId>
29 <version>1.0</version>
30 <artifactId>hat-extracted-opengl</artifactId>
31 <parent>
32 <groupId>oracle.code</groupId>
33 <artifactId>hat-extracted</artifactId>
34 <version>1.0</version>
35 </parent>
36 <build>
37 <plugins>
38 <plugin>
39 <groupId>org.codehaus.mojo</groupId>
40 <artifactId>exec-maven-plugin</artifactId>
41 <executions>
42 <execution>
43 <id>cmake-discovery</id>
44 <phase>initialize</phase>
45 <goals>
46 <goal>exec</goal>
47 </goals>
48 </execution>
49 <execution>
50 <id>jextract</id>
51 <phase>generate-sources</phase>
52 <goals>
53 <goal>exec</goal>
54 </goals>
55 <configuration>
56 <executable>jextract</executable>
57 <arguments>
58 <argument>-F</argument><argument>${mac.sdk}/${mac.sys.lib.fwks}</argument>
59 <argument>--target-package</argument><argument>opengl</argument>
60 <argument>--output</argument><argument>${project.build.directory}/generated-sources/java</argument>
61 <argument>--library</argument><argument>:${mac.sys.lib.fwks}/OpenGL.framework/OpenGL</argument>
62 <argument>--library</argument><argument>:${mac.sys.lib.fwks}/GLUT.framework/GLUT</argument>
63 <argument>--header-class-name</argument><argument>opengl_h</argument>
64 <argument>${mac.sdk}${mac.sys.lib.fwks}/GLUT.framework/Headers/glut.h</argument>
65 </arguments>
66 </configuration>
67 </execution>
68 </executions>
69 </plugin>
70 <plugin>
71 <groupId>org.codehaus.mojo</groupId>
72 <artifactId>properties-maven-plugin</artifactId>
73 <executions>
74 <execution>
75 <phase>initialize</phase>
76 <goals>
77 <goal>read-project-properties</goal>
78 </goals>
79 </execution>
80 </executions>
81 </plugin>
82 <plugin>
83 <groupId>org.codehaus.mojo</groupId>
84 <artifactId>build-helper-maven-plugin</artifactId>
85 <version>3.6.0</version>
86 <executions>
87 <execution>
88 <id>add-source</id>
89 <phase>generate-sources</phase>
90 <goals>
91 <goal>add-source</goal>
92 </goals>
93 </execution>
94 </executions>
95 </plugin>
96 </plugins>
97 </build>
98 </project>