Skip to content

Commit

Permalink
Change the profiles in ide/pom.xml some more to build only the current
Browse files Browse the repository at this point in the history
architecture (32 vs 64bit).  Ordering of profiles is such that the
-Pall-platforms will supersede the autoactivated profiles on most
machines.

(really) Fixes #259
  • Loading branch information
joey-coleman committed Jan 23, 2014
1 parent 9d2125c commit f39bc92
Showing 1 changed file with 134 additions and 79 deletions.
213 changes: 134 additions & 79 deletions ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,19 @@
</repositories>

<profiles>
<!-- Use this profile to build Overture for all platforms, but
remember to add -P\!linux (or whichever os) to disable the
autodetected profile (see below), otherwise the autodetected
profile will take precedence over the command-line specified
profile. -jwc/23Jan2014
<!-- These next five profiles will autodetect which OS maven is
being executed on and then build the matching version of
Overture for that OS. -jwc/23Jan2014
-->
<profile>
<id>all-platforms</id>
<id>win</id>
<activation>
<activeByDefault>false</activeByDefault>
<os>
<family>windows</family>
<arch>x86</arch>
</os>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -167,21 +172,56 @@
<ws>win32</ws>
<arch>x86</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>win64</id>
<activation>
<activeByDefault>false</activeByDefault>
<os>
<family>windows</family>
<arch>amd64</arch>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>mac</id>
<activation>
<activeByDefault>false</activeByDefault>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
Expand All @@ -194,84 +234,94 @@
</build>
</profile>

<!-- These next three profiles will autodetect which OS maven is
being executed on and then build the matching version of
Overture for that OS; because Maven uses OR across all
activation conditions, win and linux build both 32- and
64-bit versions of Overture. -jwc/23Jan2014
-->
<profile>
<id>win</id>
<id>linux</id>
<activation>
<os>
<family>windows</family>
</os>
<activeByDefault>false</activeByDefault>
<os>
<family>unix</family>
<name>linux</name>
<arch>x86</arch>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>mac</id>
<id>linux64</id>
<activation>
<os>
<family>mac</family>
</os>
<activeByDefault>false</activeByDefault>
<os>
<family>unix</family>
<name>linux</name>
<arch>amd64</arch>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<!-- Use this profile to build Overture for all platforms, but you
may need to add -P\!linux (or whichever os) to disable the
autodetected profile (per above), otherwise the autodetected
profile may take precedence over the command-line specified
profile. -jwc/23Jan2014
-->
<profile>
<id>linux</id>
<activation>
<os>
<family>unix</family>
<name>linux</name>
</os>
</activation>
<id>all-platforms</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
Expand All @@ -282,10 +332,15 @@
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Expand Down

0 comments on commit f39bc92

Please sign in to comment.