1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00

Bug 573121: Allow terminal to be built on its own

Change-Id: I74024d0c247159a1adef767e79ad64ab1bfd14b2
This commit is contained in:
Jonah Graham 2021-04-23 16:36:03 -04:00
parent 766d6fec6a
commit d3b0dd254a
7 changed files with 139 additions and 0 deletions

View file

@ -47,6 +47,13 @@ in `debug/org.eclipse.cdt.debug.application.product`
Using any of the above profiles can skip large sets of tests. The CI build uses this to parallelize tests. See https://ci.eclipse.org/cdt/view/Gerrit/
#### terminal-only
The terminal directory has a special profile that enables only the terminal and its dependencies when used. The allows
running maven like this `mvn -f terminal/pom.xml verify -P only-terminal` to build and test only the terminal
and its dependencies. A special terminal only p2 site is created in `terminal/repo/target/repository`. The CI build
uses this to speedup turnaround on changes only affecting the terminal. See https://ci.eclipse.org/cdt/view/Gerrit/
#### baseline-compare-and-replace
`baseline-compare-and-replace` profile controls whether baseline replace and compare

View file

@ -28,4 +28,24 @@
<module>plugins</module>
<module>features</module>
</modules>
<profiles>
<profile>
<!-- This is a special profile that allows you to build only the terminal and its CDT hosted dependencies -->
<id>only-terminal</id>
<modules>
<module>repo</module>
<module>../releng/org.eclipse.cdt.target</module>
<module>../core/org.eclipse.cdt.core.linux</module>
<module>../core/org.eclipse.cdt.core.linux.aarch64</module>
<module>../core/org.eclipse.cdt.core.linux.ppc64le</module>
<module>../core/org.eclipse.cdt.core.linux.x86_64</module>
<module>../core/org.eclipse.cdt.core.macosx</module>
<module>../core/org.eclipse.cdt.core.native</module>
<module>../core/org.eclipse.cdt.core.win32</module>
<module>../core/org.eclipse.cdt.core.win32.x86_64</module>
<module>../native/org.eclipse.cdt.native.serial</module>
<module>../releng/org.eclipse.cdt.native-feature</module>
</modules>
</profile>
</profiles>
</project>

11
terminal/repo/.project Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.cdt.terminal.repo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

View file

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

1
terminal/repo/README.md Normal file
View file

@ -0,0 +1 @@
The repo is only used when the "only-terminal" profile is activated. See root [README.md](../README.md) for more details.

View file

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature id="org.eclipse.cdt.native">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.cdt.native.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.control.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.control.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.local.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.local.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.cdtserial.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.cdtserial.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.ssh.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.ssh.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.telnet.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.telnet.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.remote.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.connector.remote.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.view.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.view.feature.source">
<category name="terminal_sdk"/>
</feature>
<feature id="org.eclipse.tm.terminal.feature">
<category name="terminal_main"/>
</feature>
<feature id="org.eclipse.tm.terminal.feature.source">
<category name="terminal_sdk"/>
</feature>
<category-def name="terminal_main" label="Terminal Features">
<description>
TM Terminal Features
</description>
</category-def>
<category-def name="terminal_sdk" label="Terminal SDK Features">
<description>
TM Terminal SDK Features
</description>
</category-def>
</site>

31
terminal/repo/pom.xml Normal file
View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, 2021 Contributors to the Eclipse Foundation
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
-->
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.cdt</groupId>
<artifactId>cdt-parent</artifactId>
<version>10.3.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<version>8.2.0-SNAPSHOT</version>
<artifactId>org.eclipse.cdt.terminal.repo</artifactId>
<packaging>eclipse-repository</packaging>
<build>
<finalName>${project.artifactId}</finalName>
</build>
</project>