1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!--
  3 Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
  4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  5 
  6 This code is free software; you can redistribute it and/or modify it
  7 under the terms of the GNU General Public License version 2 only, as
  8 published by the Free Software Foundation.  Oracle designates this
  9 particular file as subject to the "Classpath" exception as provided
 10 by Oracle in the LICENSE file that accompanied this code.
 11 
 12 This code is distributed in the hope that it will be useful, but WITHOUT
 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 15 version 2 for more details (a copy is included in the LICENSE file that
 16 accompanied this code).
 17 
 18 You should have received a copy of the GNU General Public License version
 19 2 along with this work; if not, write to the Free Software Foundation,
 20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 21 
 22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 23 or visit www.oracle.com if you need additional information or have any
 24 questions.
 25 -->
 26 <project xmlns="http://maven.apache.org/POM/4.0.0"
 27          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 28          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 29     <modelVersion>4.0.0</modelVersion>
 30     <groupId>oracle.code</groupId>
 31     <artifactId>hat-backend-spirv</artifactId>
 32     <version>1.0</version>
 33     <packaging>jar</packaging>
 34     <!-- this required to inherit parent properties -->
 35     <parent>
 36         <groupId>oracle.code</groupId>
 37         <version>1.0</version>
 38         <artifactId>hat.backends</artifactId>
 39     </parent>
 40 
 41 
 42     <dependencies>
 43         <dependency>
 44             <groupId>oracle.code</groupId>
 45             <version>1.0</version>
 46             <artifactId>hat</artifactId>
 47         </dependency>
 48         <dependency>
 49             <groupId>beehive-lab</groupId>
 50             <version>0.0.4</version>
 51             <artifactId>beehive-spirv-lib</artifactId>
 52         </dependency>
 53         <dependency>
 54             <groupId>oneapi</groupId>
 55             <version>0.0.1</version>
 56             <artifactId>levelzero</artifactId>
 57         </dependency>
 58     </dependencies>
 59     <build>
 60         <plugins>
 61             <plugin>
 62                <groupId>org.codehaus.mojo</groupId>
 63                <artifactId>exec-maven-plugin</artifactId>
 64                <configuration>
 65                   <skip>true</skip>
 66                   <!-- we want to inherit properties from parent but not the
 67                        plugin that calls cmake -->
 68                </configuration>
 69             </plugin>
 70 
 71             <plugin>
 72                 <groupId>org.apache.maven.plugins</groupId>
 73                 <artifactId>maven-antrun-plugin</artifactId>
 74                 <version>1.8</version>
 75                 <executions>
 76                     <execution>
 77                         <phase>install</phase>
 78                         <configuration>
 79                             <target>
 80                                 <copy file="target/hat-backend-spirv-1.0.jar" todir="${hat.target}"/>
 81                             </target>
 82                         </configuration>
 83                         <goals>
 84                             <goal>run</goal>
 85                         </goals>
 86                     </execution>
 87                 </executions>
 88             </plugin>
 89 
 90             <plugin>
 91                 <groupId>org.codehaus.mojo</groupId>
 92                 <artifactId>build-helper-maven-plugin</artifactId>
 93                 <version>3.0.0</version>
 94                 <executions>
 95                     <execution>
 96                         <id>add-source1</id>
 97                         <phase>generate-sources</phase>
 98                         <goals>
 99                             <goal>add-source</goal>
100                         </goals>
101                         <configuration>
102                             <sources>
103                                 <!-- <source>${babylon.dir}/cr-examples/spirv/src/main/java/</source> -->
104                                 <!-- <source>${beehive.spirv.toolkit.dir}/lib/src/main/java/</source> -->
105                             </sources>
106                         </configuration>
107                     </execution>
108                 </executions>
109             </plugin>
110         </plugins>
111     </build>
112 
113 
114 </project>