Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-05-11 16:08:53 +0000
committerAlexander Kurtakov2016-05-12 08:35:59 +0000
commitdff6b3bae3ddb27df5433ce7ff3ebb2f4c90de6d (patch)
tree5b1a06267e3d2e7c17d3f24da72ed768c47516c1 /core
parentdecaa7f934e95b79a714774cd5bf32d408ed5ce0 (diff)
downloadorg.eclipse.cdt-dff6b3bae3ddb27df5433ce7ff3ebb2f4c90de6d.tar.gz
org.eclipse.cdt-dff6b3bae3ddb27df5433ce7ff3ebb2f4c90de6d.tar.xz
org.eclipse.cdt-dff6b3bae3ddb27df5433ce7ff3ebb2f4c90de6d.zip
Hook compiling o.e.cdt.core.linux into maven build.
Separate profiles for building single arch to allow full builds on the arch one runs the build on. Simplifies build for people building from source significantly. Change-Id: Ic7738328b8e7072654ba7a673220a43feebb6801 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core.linux/pom.xml160
1 files changed, 160 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.linux/pom.xml b/core/org.eclipse.cdt.core.linux/pom.xml
index 36a25f9619e..2b5804dca37 100644
--- a/core/org.eclipse.cdt.core.linux/pom.xml
+++ b/core/org.eclipse.cdt.core.linux/pom.xml
@@ -59,6 +59,166 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>build-native.linux.x86</id>
+ <activation>
+ <property>
+ <name>native</name>
+ <value>linux.x86</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>natives</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <exec executable="make" newenvironment="false" dir="./library">
+ <arg value="ARCH=x86" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>build-native.linux.x86_64</id>
+ <activation>
+ <property>
+ <name>native</name>
+ <value>linux.x86_64</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>natives</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <exec executable="make" newenvironment="false" dir="./library">
+ <arg value="ARCH=x86_64" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>build-native.linux.ppc</id>
+ <activation>
+ <property>
+ <name>native</name>
+ <value>linux.ppc</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>natives</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <exec executable="make" newenvironment="false" dir="./library">
+ <arg value="ARCH=ppc" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>build-native.linux.ppc64</id>
+ <activation>
+ <property>
+ <name>native</name>
+ <value>linux.ppc64</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>natives</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <exec executable="make" newenvironment="false" dir="./library">
+ <arg value="ARCH=ppc64" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>build-native.linux.ppc64le</id>
+ <activation>
+ <property>
+ <name>native</name>
+ <value>linux.ppc64le</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>natives</id>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <exec executable="make" newenvironment="false" dir="./library">
+ <arg value="ARCH=ppc64le" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<build>

Back to the top