Add linker configuration for building gl-natives on Windows

bzip2
Graham 5 years ago
parent ab00f333c6
commit 66f9429fe4
  1. 37
      gl-natives/pom.xml
  2. 1
      pom.xml

@ -51,5 +51,42 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.maven-nar</groupId>
<artifactId>nar-maven-plugin</artifactId>
<configuration>
<linker>
<libs>
<lib>
<type>shared</type>
<name>jawt</name>
<directory>${java.home}/lib</directory>
</lib>
</libs>
<sysLibs>
<sysLib>
<type>shared</type>
<name>Gdi32</name>
</sysLib>
<sysLib>
<type>shared</type>
<name>OpenGL32</name>
</sysLib>
</sysLibs>
</linker>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
</project> </project>

@ -181,6 +181,7 @@
<libraries> <libraries>
<library> <library>
<type>shared</type> <type>shared</type>
<subSystem>gui</subSystem>
<linkCPP>false</linkCPP> <linkCPP>false</linkCPP>
</library> </library>
</libraries> </libraries>

Loading…
Cancel
Save