1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 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 --><project 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" xmlns="http://maven.apache.org/POM/4.0.0"> 25 <!--Auto generated by mkpoms--> 26 <modelVersion>4.0.0</modelVersion> 27 <!--<packaging>pom</packaging>--> 28 <groupId>oracle.code</groupId> 29 <artifactId>hat-jextracted-opengl</artifactId> 30 <version>1.0</version> 31 <parent> 32 <groupId>oracle.code</groupId> 33 <artifactId>hat-extractions</artifactId> 34 <version>1.0</version> 35 </parent> 36 <build> 37 <plugins> 38 <plugin> 39 <groupId>org.apache.maven.plugins</groupId> 40 <artifactId>maven-antrun-plugin</artifactId> 41 <version>1.8</version> 42 <executions> 43 <execution> 44 <id>createDirAndMacCompileFlags</id> 45 <phase>generate-sources</phase> 46 <goals> 47 <goal>run</goal> 48 </goals> 49 <configuration> 50 <target> 51 <mkdir dir="${hat.stage.jextract}"/> 52 <echo file="${hat.stage.jextract}/compile_flags.txt" message="-F${mac.app.frameworks}"/> 53 </target> 54 </configuration> 55 </execution> 56 <execution> 57 <id>copyJarToBuild</id> 58 <phase>install</phase> 59 <goals> 60 <goal>run</goal> 61 </goals> 62 <configuration> 63 <target> 64 <jar basedir="${hat.stage.jextract}" destfile="${hat.build}/${project.artifactId}-${project.version}.jar" includes="opengl/**"/> 65 </target> 66 </configuration> 67 </execution> 68 69 </executions> 70 </plugin> 71 <plugin> 72 <groupId>org.codehaus.mojo</groupId> 73 <artifactId>exec-maven-plugin</artifactId> 74 <version>3.1.0</version> 75 <executions> 76 <execution> 77 <id>2</id> 78 <phase>generate-sources</phase> 79 <goals> 80 <goal>exec</goal> 81 </goals> 82 <configuration> 83 <executable>jextract</executable> 84 <workingDirectory>${hat.stage.jextract}</workingDirectory> 85 <arguments> 86 <argument>--output</argument> 87 <argument>${hat.stage.jextract}</argument> 88 <argument>-t</argument> 89 <argument>opengl</argument> 90 <argument>-l</argument> 91 <argument>${mac.lib.frameworks}/GLUT.framework/GLUT</argument> 92 <argument>-l</argument> 93 <argument>${mac.lib.frameworks}/OpenGL.framework/OpenGL</argument> 94 <argument>${mac.app.frameworks}/GLUT.framework/Headers/glut.h</argument> 95 </arguments> 96 </configuration> 97 </execution> 98 </executions> 99 </plugin> 100 </plugins> 101 </build> 102 </project>