mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Add build flag (-DskipDoc) to be able to skip building documentation
Building documentation can take several minutes and is often not necessary. I suggest that we leave it on by default so that people building locally still get a full, consistent build of CDT but that it should be possible to skip it on demand. My build time went from 4:14s to 1:45s (without running tests). Change-Id: Ic7c4535f3faf82080534d39ccbe6f452d8b52317 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
c6156d2ee6
commit
619216fca4
4 changed files with 182 additions and 126 deletions
|
@ -15,38 +15,48 @@
|
||||||
<artifactId>org.eclipse.cdt.autotools.docs</artifactId>
|
<artifactId>org.eclipse.cdt.autotools.docs</artifactId>
|
||||||
<packaging>eclipse-plugin</packaging>
|
<packaging>eclipse-plugin</packaging>
|
||||||
|
|
||||||
<build>
|
<profiles>
|
||||||
<plugins>
|
<profile>
|
||||||
<plugin>
|
<id>build-doc</id>
|
||||||
<groupId>org.eclipse.tycho.extras</groupId>
|
<activation>
|
||||||
<artifactId>tycho-eclipserun-plugin</artifactId>
|
<property>
|
||||||
<version>${tycho-extras-version}</version>
|
<name>!skipDoc</name>
|
||||||
<configuration>
|
</property>
|
||||||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build-index.xml build.index</appArgLine>
|
</activation>
|
||||||
<dependencies>
|
<build>
|
||||||
<dependency>
|
<plugins>
|
||||||
<artifactId>org.apache.ant</artifactId>
|
<plugin>
|
||||||
<type>eclipse-plugin</type>
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
</dependency>
|
<artifactId>tycho-eclipserun-plugin</artifactId>
|
||||||
<dependency>
|
<version>${tycho-extras-version}</version>
|
||||||
<artifactId>org.eclipse.help.base</artifactId>
|
<configuration>
|
||||||
<type>eclipse-plugin</type>
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile build-index.xml build.index</appArgLine>
|
||||||
</dependency>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>org.eclipse.ant.core</artifactId>
|
<artifactId>org.apache.ant</artifactId>
|
||||||
<type>eclipse-plugin</type>
|
<type>eclipse-plugin</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
<dependency>
|
||||||
</configuration>
|
<artifactId>org.eclipse.help.base</artifactId>
|
||||||
<executions>
|
<type>eclipse-plugin</type>
|
||||||
<execution>
|
</dependency>
|
||||||
<goals>
|
<dependency>
|
||||||
<goal>eclipse-run</goal>
|
<artifactId>org.eclipse.ant.core</artifactId>
|
||||||
</goals>
|
<type>eclipse-plugin</type>
|
||||||
<phase>compile</phase>
|
</dependency>
|
||||||
</execution>
|
</dependencies>
|
||||||
</executions>
|
</configuration>
|
||||||
</plugin>
|
<executions>
|
||||||
</plugins>
|
<execution>
|
||||||
</build>
|
<goals>
|
||||||
|
<goal>eclipse-run</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
|
@ -31,36 +31,52 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.tycho.extras</groupId>
|
|
||||||
<artifactId>tycho-eclipserun-plugin</artifactId>
|
|
||||||
<version>${tycho-extras-version}</version>
|
|
||||||
<configuration>
|
|
||||||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile customBuildCallbacks.xml build.index</appArgLine>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.apache.ant</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.help.base</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.ant.core</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>eclipse-run</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>compile</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>build-doc</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>!skipDoc</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
|
<artifactId>tycho-eclipserun-plugin</artifactId>
|
||||||
|
<version>${tycho-extras-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile customBuildCallbacks.xml build.index</appArgLine>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.apache.ant</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.help.base</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.ant.core</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>eclipse-run</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -31,36 +31,51 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.tycho.extras</groupId>
|
|
||||||
<artifactId>tycho-eclipserun-plugin</artifactId>
|
|
||||||
<version>${tycho-extras-version}</version>
|
|
||||||
<configuration>
|
|
||||||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile buildDoc.xml</appArgLine>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.apache.ant</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.help.base</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.pde.core</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>eclipse-run</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>compile</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>build-doc</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>!skipDoc</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
|
<artifactId>tycho-eclipserun-plugin</artifactId>
|
||||||
|
<version>${tycho-extras-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile buildDoc.xml</appArgLine>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.apache.ant</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.help.base</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.pde.core</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>eclipse-run</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -31,36 +31,51 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.tycho.extras</groupId>
|
|
||||||
<artifactId>tycho-eclipserun-plugin</artifactId>
|
|
||||||
<version>${tycho-extras-version}</version>
|
|
||||||
<configuration>
|
|
||||||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile customBuildCallbacks.xml build.index</appArgLine>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.apache.ant</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.help.base</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<artifactId>org.eclipse.ant.core</artifactId>
|
|
||||||
<type>eclipse-plugin</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>eclipse-run</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>compile</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>build-doc</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>!skipDoc</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
|
<artifactId>tycho-eclipserun-plugin</artifactId>
|
||||||
|
<version>${tycho-extras-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile customBuildCallbacks.xml build.index</appArgLine>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.apache.ant</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.help.base</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.ant.core</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>eclipse-run</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>compile</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue