|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Copyright (c) 2020-2023, Aayush Atharva |
| 4 | +
|
| 5 | + Brotli4j licenses this file to you under the |
| 6 | + Apache License, Version 2.0 (the "License"); |
| 7 | + you may not use this file except in compliance with the License. |
| 8 | + You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +
|
| 18 | +--> |
| 19 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 20 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | + <parent> |
| 23 | + <artifactId>natives</artifactId> |
| 24 | + <groupId>com.aayushatharva.brotli4j</groupId> |
| 25 | + <version>1.13.0</version> |
| 26 | + </parent> |
| 27 | + <modelVersion>4.0.0</modelVersion> |
| 28 | + |
| 29 | + <artifactId>native-windows-aarch64</artifactId> |
| 30 | + <packaging>jar</packaging> |
| 31 | + |
| 32 | + <properties> |
| 33 | + <javaModuleName>com.aayushatharva.brotli4j.windows.aarch64</javaModuleName> |
| 34 | + </properties> |
| 35 | + |
| 36 | + <build> |
| 37 | + <plugins> |
| 38 | + <plugin> |
| 39 | + <groupId>org.moditect</groupId> |
| 40 | + <artifactId>moditect-maven-plugin</artifactId> |
| 41 | + <version>1.0.0.RC2</version> |
| 42 | + <executions> |
| 43 | + <execution> |
| 44 | + <id>add-module-infos</id> |
| 45 | + <phase>package</phase> |
| 46 | + <goals> |
| 47 | + <goal>add-module-info</goal> |
| 48 | + </goals> |
| 49 | + <configuration> |
| 50 | + <jvmVersion>9</jvmVersion> |
| 51 | + <module> |
| 52 | + <moduleInfoSource> |
| 53 | + module ${javaModuleName} { |
| 54 | + requires com.aayushatharva.brotli4j.service; |
| 55 | + exports ${javaModuleName} to com.aayushatharva.brotli4j; |
| 56 | + provides com.aayushatharva.brotli4j.service.BrotliNativeProvider with |
| 57 | + ${javaModuleName}.NativeLoader; |
| 58 | + } |
| 59 | + </moduleInfoSource> |
| 60 | + </module> |
| 61 | + <jdepsExtraArgs> |
| 62 | + <arg>--multi-release</arg> |
| 63 | + <arg>9</arg> |
| 64 | + </jdepsExtraArgs> |
| 65 | + </configuration> |
| 66 | + </execution> |
| 67 | + </executions> |
| 68 | + </plugin> |
| 69 | + </plugins> |
| 70 | + </build> |
| 71 | + |
| 72 | + <profiles> |
| 73 | + <profile> |
| 74 | + <id>windows-aarch64</id> |
| 75 | + <activation> |
| 76 | + <os> |
| 77 | + <family>Windows</family> |
| 78 | + <arch>aarch64</arch> |
| 79 | + </os> |
| 80 | + </activation> |
| 81 | + <build> |
| 82 | + <plugins> |
| 83 | + <plugin> |
| 84 | + <groupId>org.codehaus.mojo</groupId> |
| 85 | + <artifactId>exec-maven-plugin</artifactId> |
| 86 | + <version>3.0.0</version> |
| 87 | + <executions> |
| 88 | + <execution> |
| 89 | + <id>Execute-Native-Compile</id> |
| 90 | + <phase>process-classes</phase> |
| 91 | + <goals> |
| 92 | + <goal>exec</goal> |
| 93 | + </goals> |
| 94 | + <configuration> |
| 95 | + <executable>${project.basedir}/build.bat</executable> |
| 96 | + </configuration> |
| 97 | + </execution> |
| 98 | + </executions> |
| 99 | + </plugin> |
| 100 | + </plugins> |
| 101 | + </build> |
| 102 | + </profile> |
| 103 | + |
| 104 | + <profile> |
| 105 | + <id>release</id> |
| 106 | + <build> |
| 107 | + <resources> |
| 108 | + <resource> |
| 109 | + <directory>resources</directory> |
| 110 | + </resource> |
| 111 | + </resources> |
| 112 | + </build> |
| 113 | + </profile> |
| 114 | + </profiles> |
| 115 | + |
| 116 | +</project> |
0 commit comments