1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
Find a file
Alexander Kurtakov a7635221af Move away of deprecated Integer/Boolean
constructor.


Change-Id: Iab91e05314206725d8175d30bfb2866c0d99a8d7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 22:37:24 +02:00
.mvn Switch to build with Tycho 1.6.0 2020-01-21 15:15:22 +02:00
build Bug 559641 - No Meson in CDT due to Meson UI causing OSGi wiring issue 2020-02-04 15:42:32 -05:00
codan Bug 534420 - Add support for [[maybe_unused]] attribute 2020-01-30 13:56:44 -05:00
core Remove unnecessary SuppressWarning(cast) and casts. 2020-02-15 04:01:57 -05:00
cross Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
debug Move away of deprecated tasks in maven-antrun-plugin configs. 2020-02-05 21:29:48 +02:00
doc Bug 559800 - Content in cdt.doc.isv badly outdated and broken 2020-02-05 20:49:03 +02:00
dsf Move away of the deprecated AbstractUIPlugin.getWorkbench 2020-02-04 14:43:53 +02:00
dsf-gdb Move away of deprecated tasks in maven-antrun-plugin configs. 2020-02-05 21:29:48 +02:00
jtag Get rid of some annoying non-Javadoc comments. 2020-02-14 23:09:59 +02:00
launch Move away of the deprecated AbstractUIPlugin.getWorkbench 2020-02-04 14:43:53 +02:00
launchbar Bug 558439: Upversion launcbar features 2020-01-14 12:24:34 -05:00
llvm Bug 560038 - Mark LlvmResourceListener for deletion 2020-02-15 13:31:41 +01:00
lrparser Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
lsp Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
memory Move away of the deprecated AbstractUIPlugin.getWorkbench 2020-02-04 14:43:53 +02:00
native [releng] Bump to CDT version 9.11.0 2019-12-07 15:24:34 -05:00
qt Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
releng Bug 560157: [releng] Update mylyn docs for new LSP4E dependency requirement 2020-02-14 10:02:16 -05:00
remote [releng] Bump to CDT version 9.11.0 2019-12-07 15:24:34 -05:00
terminal Move away of deprecated Integer/Boolean 2020-02-15 22:37:24 +02:00
testsrunner Move away of the deprecated AbstractUIPlugin.getWorkbench 2020-02-04 14:43:53 +02:00
toolchains/arduino Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
tools.templates Bug 558439: Integrate releng for launchbar and tools.templates 2020-01-13 22:05:04 -05:00
upc Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
util Bug 558827: Add build id timestamp to features properly 2020-01-06 19:37:46 -05:00
visualizer Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
windows Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
xlc Bug 558827: Add and/or fix branding on all features 2020-01-09 15:11:35 -05:00
.gitattributes Bug 559474: Add all file types to .gitattributes 2020-01-31 12:20:41 -05:00
.gitignore [releng] Add auto-generated files to gitignore 2019-11-07 20:44:23 -05:00
CONTRIBUTING.md Bug 551817 - Add missing CONTRIBUTING file to CDT 2020-01-16 14:35:07 -05:00
disable_intro_in_tests.ini Bug 552745: Disable intro screen (webkit use) in tests 2019-11-06 17:26:04 -05:00
pom.xml Open Maven versions 2020-02-04 08:18:03 -05:00
README.md [releng] Document regenHelp profile 2020-01-27 12:05:39 -05:00

Eclipse CDT

Contributing

Please see [CONTRIBUTING.md] for contributing information

Developing CDT

Most developers, developing CDT in the Eclipse IDE, should use https://wiki.eclipse.org/Getting_started_with_CDT_development.

Command-line Build instructions with Maven

Eclipse CDT uses the standard Maven and Tycho workflow for building CDT using Maven 3.6.0 and Java 8. Therefore to package CDT do:

mvn package

and the resulting p2 repository will be in releng/org.eclipse.cdt.repo/target/repository

The current set of options to Maven used for building on the CI can be seen in the Jenkinsfiles on cdt-infra: https://github.com/eclipse-cdt/cdt-infra/tree/master/jenkins/pipelines/cdt

To build CDT plug-ins you need a standard Maven & Java developement environment. The Dockerfiles used for CDT's images are published in cdt-infra https://github.com/eclipse-cdt/cdt-infra/tree/master/docker. The requirements for running all tests successfully and for rebuilding non-Java parts of CDT are much more extensive than standard Maven & Java and include items such as GCC, GDB, yarn, Node, etc. Refer to the Dockerfiles for the current versions of those dependencies.

Profiles

There are a number of profiles (-P to mvn) to control the behaviour of the build.

cdtRepo, simrelRepo, defaultCdtTarget

Individual p2 repos can be turned on and off to allow building CDT, or parts of CDT against different target platforms easily. For example, you can:

  • test CDT against a pre-built CDT by using the cdtRepo profile.
  • build the standalone rcp debugger against the latest simrel mvn verify -DuseSimrelRepo -f debug/org.eclipse.cdt.debug.application.product

build-standalone-debugger-rcp

Using the build-standalone-debugger-rcp profile will include the standalone debugger, located in debug/org.eclipse.cdt.debug.application.product

skip-all-tests, skip-tests-except-cdt-ui, skip-tests-except-dsf-gdb, skip-tests-except-lsp, skip-tests-except-cdt-other

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/

baseline-compare-and-replace

baseline-compare-and-replace profile controls whether baseline replace and compare is performed. On a local build you want to avoid baseline replace and compare, especially if you have different versions of Java than the baseline was built with.

If you have the same version of Java as the build machine you can run baseline comparison and replace. To do that run with the baseline-compare-and-replace profile.

Requires verify phase of maven to run, i.e. will not run with mvn package even if profile is specified.

production

Runs the production steps of the build. This profile can only be run on the CDT CI machines as access to Eclipse key signing server is needed to sign the jars.

regenHelp

Some of the help systems in Eclipse CDT require the regenHelp profile to rebuild their HTML from the source documents. For example, to regenerate the help for Autotools or Meson do:

mvn generate-resources -DuseSimrelRepo -f build/org.eclipse.cdt.meson.docs -PregenHelp
mvn generate-resources -DuseSimrelRepo -f build/org.eclipse.cdt.autotools.docs -PregenHelp

Properties

There are a number of properties (-D to mvn) to control the behaviour of the build. Refer to the pom.xml for the full list. Many of the properties are not intended to be set at the command line.

skipDoc

Documentation generation for CDT can be time consuming. For local builds this can be skipped with -DskipDoc=true

skipTests

Running tests for CDT can be time consuming. For local builds this can be skipped with -DskipTests=true.

jgit.dirtyWorkingTree-cdtDefault

Running a build with uncommitted changes will normally cause an error. To run a build with uncommited changes use -Djgit.dirtyWorkingTree-cdtDefault=warning

dsf.gdb.tests.gdbPath

For running CDT's DSF-GDB tests, this specifies the path to the location of gdb.

cdt.tests.dsf.gdb.versions

For running CDT's DSF-GDB tests, this specifies the executable names of the gdbs to run, comma-separated.