<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <name>Yildiz Module Window SWT</name>
  <description>Module containing the SWT implementation for windows.</description>

  <artifactId>module-window-swt</artifactId>
  <version>1.0.0</version>

  <packaging>jar</packaging>
  <inceptionYear>2014</inceptionYear>
  <scm>
    <connection>scm:git:https://bitbucket.org/yildiz-engine-team/module-window-swt</connection>
    <developerConnection>scm:git:https://bitbucket.org/yildiz-engine-team/module-window-swt</developerConnection>
    <url>https://bitbucket.org/yildiz-engine-team/module-window-swt</url>
  </scm>
  <parent>
    <groupId>be.yildiz-games</groupId>
    <artifactId>parent</artifactId>
    <version>1.0.4</version>
  </parent>

  <properties>
    <version.bom-junit>1.0.0</version.bom-junit>
    <version.bom-swt>1.0.0</version.bom-swt>
    <version.module-window>1.0.0</version.module-window>
    <swt>org.eclipse.swt.win32.win32.x86_64</swt>
    <nativeEnv>none</nativeEnv>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>be.yildiz-games</groupId>
        <artifactId>bom-swt</artifactId>
        <version>${version.bom-swt}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>be.yildiz-games</groupId>
        <artifactId>bom-junit</artifactId>
        <version>${version.bom-junit}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>be.yildiz-games</groupId>
      <artifactId>module-window</artifactId>
      <version>${version.module-window}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
    </dependency>
    <dependency>
      <groupId>org.eclipse.swt</groupId>
      <artifactId>${swt}</artifactId>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>win32</id>
      <activation>
        <property>
          <name>env</name>
          <value>win32</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
              <classifier>win32</classifier>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <nativeEnv>win32</nativeEnv>
        <swt>org.eclipse.swt.win32.win32.x86</swt>
      </properties>
    </profile>
    <profile>
      <id>win64</id>
      <activation>
        <property>
          <name>env</name>
          <value>win64</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
              <classifier>win64</classifier>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <nativeEnv>win64</nativeEnv>
        <swt>org.eclipse.swt.win32.win32.x86_64</swt>
      </properties>
    </profile>
    <profile>
      <id>linux64</id>
      <activation>
        <property>
          <name>env</name>
          <value>linux64</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
              <classifier>linux64</classifier>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <nativeEnv>linux64</nativeEnv>
        <swt>org.eclipse.swt.gtk.linux.x86_64</swt>
      </properties>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>maven-eclipse-repo</id>
      <url>http://maven-eclipse.github.io/maven</url>
    </repository>
  </repositories>
</project>
