Skip to content

Instantly share code, notes, and snippets.

@devzendo
Created July 23, 2013 13:20
Show Gist options
  • Save devzendo/6062307 to your computer and use it in GitHub Desktop.
Save devzendo/6062307 to your computer and use it in GitHub Desktop.
Netty Native pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2013 The Netty Project
~
~ The Netty Project licenses this file to you under the Apache License,
~ version 2.0 (the "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at:
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
~ License for the specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.0.5.Final-SNAPSHOT</version>
</parent>
<artifactId>netty-native</artifactId>
<packaging>nar</packaging>
<name>Netty/Native</name>
<properties>
<MSC>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC</MSC>
<SDK>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A</SDK>
<!-- Tests via nar are run in the integration test phase, so turn off the normal test phase. -->
<skipTests>true</skipTests>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netty-buffer</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Not officially released into Central Maven yet, so use a version that is. -->
<groupId>org.codeswarm</groupId>
<artifactId>maven-nar-plugin</artifactId>
<version>20121119</version>
<extensions>true</extensions>
<configuration>
<java>
<include>true</include>
</java>
<c>
<systemIncludePaths>
<!-- TODO: Proper do this-->
<systemIncludePath>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include</systemIncludePath>
</systemIncludePaths>
</c>
<libraries>
<library>
<type>jni</type>
<narSystemPackage>io.netty.buffer.jni</narSystemPackage>
</library>
</libraries>
<linker>
<libs>
<lib>
<name>MSVCRT</name>
<directory>${MSC}\LIB</directory>
</lib>
<lib>
<name>OLDNAMES</name>
<directory>${MSC}\LIB</directory>
</lib>
<lib>
<name>KERNEL32</name>
<directory>${SDK}\LIB</directory>
</lib>
</libs>
</linker>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment