|
15 | 15 | <wgpu.native.download.base.url> |
16 | 16 | https://github.com/gfx-rs/wgpu-native/releases/download/${version.wgpu-native} |
17 | 17 | </wgpu.native.download.base.url> |
| 18 | + <jextract.executable>jextract</jextract.executable> |
18 | 19 | </properties> |
19 | 20 |
|
| 21 | + <profiles> |
| 22 | + <profile> |
| 23 | + <id>linux-x86</id> |
| 24 | + <properties> |
| 25 | + <jextract.executable>${project.build.directory}/jextract-25/bin/jextract</jextract.executable> |
| 26 | + </properties> |
| 27 | + <build> |
| 28 | + <plugins> |
| 29 | + <plugin> |
| 30 | + <groupId>io.github.download-maven-plugin</groupId> |
| 31 | + <artifactId>download-maven-plugin</artifactId> |
| 32 | + <version>${version.download-maven-plugin}</version> |
| 33 | + <configuration> |
| 34 | + <unpack>true</unpack> |
| 35 | + <failOnError>true</failOnError> |
| 36 | + <alwaysVerifyChecksum>true</alwaysVerifyChecksum> |
| 37 | + </configuration> |
| 38 | + <executions> |
| 39 | + <execution> |
| 40 | + <id>download-wgpu-headers</id> |
| 41 | + <phase>generate-sources</phase> |
| 42 | + <goals> |
| 43 | + <goal>wget</goal> |
| 44 | + </goals> |
| 45 | + <configuration> |
| 46 | + <url> |
| 47 | + https://download.java.net/java/early_access/jextract/25/2/openjdk-25-jextract+2-4_linux-x64_bin.tar.gz |
| 48 | + </url> |
| 49 | + <includes>**</includes> |
| 50 | + <outputDirectory>${build.directory}/</outputDirectory> |
| 51 | + <sha256>d0cc481abc1adb16fb9514e1c5e0bfc08d38c29228bece667fb5054ceaffaa42</sha256> |
| 52 | + </configuration> |
| 53 | + </execution> |
| 54 | + </executions> |
| 55 | + </plugin> |
| 56 | + </plugins> |
| 57 | + </build> |
| 58 | + </profile> |
| 59 | + </profiles> |
| 60 | + |
20 | 61 | <build> |
| 62 | + <extensions> |
| 63 | + <extension> |
| 64 | + <groupId>kr.motd.maven</groupId> |
| 65 | + <artifactId>os-maven-plugin</artifactId> |
| 66 | + <version>1.7.1</version> |
| 67 | + </extension> |
| 68 | + </extensions> |
21 | 69 | <plugins> |
22 | | - <!-- Download wgpu dll/so/dylib and header files --> |
23 | 70 | <plugin> |
24 | 71 | <groupId>io.github.download-maven-plugin</groupId> |
25 | 72 | <artifactId>download-maven-plugin</artifactId> |
|
36 | 83 | </fileMappers> |
37 | 84 | </configuration> |
38 | 85 | <executions> |
| 86 | + <!-- Download wgpu dll/so/dylib and header files --> |
39 | 87 | <execution> |
40 | 88 | <id>download-wgpu-headers</id> |
41 | 89 | <phase>generate-sources</phase> |
|
95 | 143 | <artifactId>jextract-maven-plugin</artifactId> |
96 | 144 | <version>${version.jextract-maven-plugin}</version> |
97 | 145 | <configuration> |
98 | | - <executable>jextract</executable> |
| 146 | + <executable>${jextract.executable}</executable> |
99 | 147 | </configuration> |
100 | 148 | <executions> |
101 | 149 | <execution> |
|
0 commit comments