<?xml version="1.0" encoding="ISO-8859-15"?>
<!--
  ~ Copyright 2014 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.17.Final</version>
  </parent>
  <artifactId>netty-transport-native-epoll</artifactId>

  <name>Netty/Transport/Native/Epoll</name>
  <packaging>jar</packaging>

  <dependencies>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-common</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-buffer</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-transport</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-testsuite</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.fusesource.hawtjni</groupId>
        <artifactId>maven-hawtjni-plugin</artifactId>
        <version>1.10</version>
        <executions>
          <execution>
            <id>build-linux64</id>
            <configuration>
              <name>${project.artifactId}</name>
              <buildDirectory>${project.build.directory}/linux64</buildDirectory>
              <nativeSourceDirectory>${nativeSourceDirectory}</nativeSourceDirectory>
              <libDirectory>${libDirectory}</libDirectory>
              <configureArgs>
                <arg>--with-arch=x86_64</arg>
              </configureArgs>
              <platform>linux64</platform>
              <forceConfigure>true</forceConfigure>
              <forceAutogen>true</forceAutogen>
            </configuration>
            <goals>
              <goal>generate</goal>
              <goal>build</goal>
            </goals>
            <phase>compile</phase>
          </execution>
          <execution>
            <id>build-linux32</id>
            <configuration>
              <buildDirectory>${project.build.directory}/linux32</buildDirectory>
                <nativeSourceDirectory>${nativeSourceDirectory}</nativeSourceDirectory>
                <libDirectory>${libDirectory}</libDirectory>
              <name>${project.artifactId}</name>
              <configureArgs>
                <arg>--with-arch=i386</arg>
              </configureArgs>
              <platform>linux32</platform>
              <forceConfigure>true</forceConfigure>
              <forceAutogen>true</forceAutogen>
            </configuration>
            <goals>
              <goal>generate</goal>
              <goal>build</goal>
            </goals>
            <phase>compile</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <nativeSourceDirectory>${basedir}/src/main/c</nativeSourceDirectory>
    <libDirectory>${basedir}/target/classes/</libDirectory>
  </properties>
</project>
