1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00
Commit graph

1171 commits

Author SHA1 Message Date
Jonah Graham
90e53382fb [releng] Update target plaform to 4.18 M2
Change-Id: Id60d944684870278cef5512fc769c4fcde5a18d2
2020-11-02 12:10:44 -05:00
Torbjörn Svensson
6431307e70 Bug 568079: Reformat source code using clang-format
This will enforce formatting when building the native code

Change-Id: I6c047f4c0672609df322b7ba716fc786f0e3aab4
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:13:42 -04:00
Torbjörn Svensson
9a440e0b44 [releng] Return exit code from GCC in wrapper
Change-Id: I73ce7fb4cb58b25809359f3bc8e805704737b7d8
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:21:26 +01:00
Torbjörn Svensson
c5a53bb7fe Bug 568079: Format C/C++ code
Added a new C/C++ formatter profile called "Unmanaged profile 'CDT'"
(name stolen from the Java formatter) that is basically K&R with the
tweak of maxium line width set to 120 (same width as for .java files).

Added enforcement of the formatter during build.

libspawner.so/jnilib have differences because the re-formatting changes
line numbers and therefore the __LINE__ macro expands to a different
value.

Change-Id: Id3a0619cb31640c7817dc684c72139f90cab0fc6
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-24 16:54:40 -04:00
Torbjörn Svensson
0429be17e1 [releng] Report more than one failed bundle per invocation
List as many as possible of the failed bundles when doing the baseline
compare.

Change-Id: I0d2817c418cf865f7fc6ea1c7e25d5b3b7b41bd5
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-24 18:39:47 +02:00
Alexander Fedorov
4849609c6d Remove redundant attributes for category.xml
Attributes `url` and `version` can be omitted for features

Change-Id: I37ef5f52cd3a22dc9ccbce0905aa6642edf60a39
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-10-15 09:15:22 +03:00
Martin Weber
af1b6fa238 Bug 567488: Move cmake code to cmake dir
Change-Id: If3df1f176ed82475d01a047c3a6d8c0882bb1d76
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-10-13 20:42:22 -04:00
Jonah Graham
1a89aef090 [releng] Bump version to 10.1.0
Change-Id: Ia89f4c20e59d07bd692c648cfca36efcae210160
2020-10-12 09:07:23 -04:00
Jonah Graham
938729c522 [releng] Update to Platform 4.18 M1a
Change-Id: Iab57caf16dc5ea97b646376f9ef8f3882619f6e1
2020-10-12 08:49:46 -04:00
Jonah Graham
24639efcee [releng] Bump version to 10.1.0
Change-Id: I39f7c379c0b43c086a25b047b3af564f6f24d670
2020-10-06 16:20:18 -04:00
Alexander Fedorov
379e300382 Bug 567554 - Configure CDT.setup and .target for 2020-12 development
Add repository list for 2020-12
Update Orbit to 2020-12

Change-Id: Ib1dd63606be177e0e17000903c9efe5aeea851fa
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-10-04 02:28:49 -04:00
Marc-Andre Laperle
6a9d212c0e Update target and baseline after 2020-09 release
Change-Id: I631545a1ceaf18e576f85f744d6b141c35363fe1
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-19 14:04:37 -04:00
Jonah Graham
9b94dbd5ef [releng] CDT target platform update for RC2
Use Platform 4.17 RC2 and update CDT's self referenced version

Change-Id: I782b55048da266f56b6b23b626aa1cca9764b22d
2020-09-06 21:57:56 -04:00
Alexander Fedorov
26e994af15 Bug 566492 - Add CDT LSP to CDT Optional features
Add "LSP4E C/C++ Support" to "CDT Optional Features"

Change-Id: I88d554b5bf614649e6763e192e151a90b33da545
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 13:47:57 -04:00
Alexander Fedorov
718088b907 Bug 566610 - CDT 10.0 stream should use LSP4E 0.16.0 release
Use https://download.eclipse.org/lsp4e/releases/0.16.0/ instead of
snapshots for CDT 10.0 stream.

Change-Id: I163c3de4723facb45eb23a548174e8a4cd6c0e5c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 18:54:36 +03:00
Jonah Graham
1413fd90e7 [releng] Automate running of dash licenses (fixup)
Run maven with MVN to allow Jenkinsfile to set default maven options

Change-Id: I42454620e54c57ba3e08a5a33c86b9b48e0cd55d
2020-08-31 16:13:32 -04:00
Jonah Graham
98d1b9b599 [releng] Automate running of dash licenses
Change-Id: Id7e3ed46fc2989438a3fed472bb75c8cb7c83955
2020-08-31 16:09:48 -04:00
Jonah Graham
2c94bb09a0 [releng] CDT target platform update for RC1
Use Platform 4.17 RC1 and update CDT's self referenced version

Change-Id: I077ba137bac608bac042e4b27746162b4f01480c
2020-08-31 13:31:43 -04:00
Jonah Graham
a83e8924ba Bug 563494: Remove freemarker java11 workaround
Change-Id: I7fc259ff13f7d44b1aa29c6842db6d744cffcc9e
2020-08-31 09:07:10 -04:00
Jonah Graham
88b2322c38 Bug 551817: Fix legal docs - and automate their checks
Change-Id: I6f97927f0df64a28e71a2d7ab4c55b609794f751
2020-08-30 23:15:59 -04:00
Jonah Graham
53f9a12c0d [releng] Remove invalid natures and builders from features
Change-Id: I7913cbfe3ecf7da9cbe402e42745911d37de4363
2020-08-30 23:15:59 -04:00
Jonah Graham
0631233154 [releng] Add missing copyright headers to releng scripts
Change-Id: I68cdf1f8adc1e59f47bb610c8aaeb583ca6cf39b
2020-08-30 20:25:40 -04:00
Jonah Graham
6233337560 [releng] Split up check_code_cleanliness script
As more checks have been added it has gotten a little unweildy.

The new script "do_all_code_cleanups.sh" now does most of the code
formatting checks.

Change-Id: I65fd888c88e1d7e470ed5621cee18ff3bf6680b4
2020-08-30 20:09:50 -04:00
Jonah Graham
0cb1f7482a Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects
Includes updates to code cleanliness script

Change-Id: Ic495124285e3e002993f34dc12be5ad7337fe13b
2020-08-30 20:02:41 -04:00
Torbjörn Svensson
cb9249314a Fixed "An entry for plugin.xml is required in bin.includes" warning
Change-Id: I6615465fb74c2e4df812e99cd1e5e8b0ead99de3
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
07b50ba2a2 Bug 521515: Do not rely on commit date for reproducible builds
As mentioned in
https://devblogs.microsoft.com/oldnewthing/20180103-00/?p=97705,
Microsoft has stopped using the _IMAGE_FILE_HEADER.TimeDateStamp as a
time stamp and rather as a hash of the source files to make the build
result predictable.

Change-Id: I4f4a7b9557330e4c478ef7fb25653144c5b2d4ad
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-27 15:42:44 -04:00
Jeff Johnston
05c45c0bae Bug 565142 - Support using CDT in Eclipse flatpak
- modify ProcessFactory to prefix commands with flatpak-spawn
  when running under Eclipse flatpak
- add new FlatpakLaunch class to dsf.gdb to do a prelaunch
  of gdbserver and set up remote port settings when debugging
  local C/C++ application under Eclipse flatpak
- add new tab to gdb when running under Eclipse flatpak
  to allow user to specify gdbserver and port number
- add new org.eclipse.cdt.flatpak.launcher plug-in which
  contains a FlatpakCommandLauncherFactory to handle copying
  header files from host to workspace when developing under
  Eclipse flatpak
- add new FlatpakCommandLauncher class which simply extends
  CommandLauncher and can be used for debugging purposes to
  distinguish from regular command launcher
- also add new FlatpakHeaderPreferencePage to allow C/C++ users
  to delete copied headers if needed
- dynamically add the headers preference page from
FlatpakCommandLaunchFactory
  if running under Eclipse flatpak
- add new ICommandLaunchFactory3 to add an interface to check if
  headers have been modified/removed and scanner info refresh
  is required
- add new org.eclipse.cdt.flatpak.launcher-feature
- give higher priority to ContainerCommandLauncherFactory so if
  running on Eclipse flatpak, the flatpak factory won't be chosen
  if both apply (i.e. building in a container but running on
  Eclipse flatpak)

Change-Id: Id68e60c4dd37c4494af10440231ac7b7bbec8d17
2020-08-25 13:45:33 +03:00
Jonah Graham
aa5d565542 Bug 566339: Restore lost bundles to CDT's p2 repo
These were lost accidentally in commit 2bd07a89ca
In the restore version use the core PDE way of including bundles,
rather than Tycho's <iu> extension as we don't need the extended
capabilities and having an editor that works is nicer. See Bug 566340

Change-Id: If78d34737957c322b1d068840fc6f17883857070
2020-08-24 22:26:19 -04:00
Jonah Graham
0c5093d6ff Bug 566334: Turn on API Tooling & Analysis for all bundles
Change-Id: I3cb5645eba52b0cd0e9a71069264d9c589159107
2020-08-24 17:50:56 -04:00
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Jonah Graham
fbc117fd59 [releng] Update target platform Eclipse 4.17 M3
Change-Id: I5538eaa97b655137730f03a3be03af2e920e7b2e
2020-08-23 07:52:12 -04:00
Jonah Graham
a588063b23 Bug 521515: Automatically check .so, .dll, .exe files for valid deps
Because we build cross platform, we want to make sure no unexpected
dependencies are introduced on newer or non-universal libraries
in the native code.

Change-Id: Ib8ffeb5f374bcd04514c31dca9d8297fed70343a
2020-08-18 21:43:21 -04:00
Torbjörn Svensson
a025f75771 Bug 521515: Generate JNI header files as part of build
Also generate JNI header for serial component. This component does not
really need it since the implementation is in one file only, but this
would at least throw an error if the java part changes and the native
part is not updated accordingly.

Change-Id: Id598410c322580bdda37c905ed08627390c913ba
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-13 10:13:52 +02:00
Jonah Graham
7120731766 Bug 521515: Generate JNI header files as part of build
Change-Id: Ia92da44f964e1934b2c32d2536f3ec27c03d5d59
2020-08-12 21:30:42 -04:00
Jonah Graham
ba24afc3a4 Bug 521515: Save the log file all the time when building natives
Change-Id: I11b149d94f837dcb9537682a55551add289f8924
2020-08-12 21:30:42 -04:00
Jonah Graham
149ccaffcc Bug 565836: Add linux aarch64 for natives
Note: the Windows dll is not actually modified, apart from the embedded
date stamp to match the date of the jni/ modification

Also-by: Liviu Ionescu <ilg@livius.net>
Change-Id: Ice3d5e7ae5999a0e4d1866e76e515a91e30e9f11
2020-08-11 17:17:34 -04:00
Torbjörn Svensson
00a52086c9 Bug 521515: Adopt native build support on jenkins
Change-Id: I6aee7a7c94f93375d3a2ddb0171602a27a6873e7
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-06 20:55:42 -04:00
Torbjörn Svensson
69acfe4819 Bug 521515: Align directory name of native source code
The native directory can contain both libraries and utilities. In
Gerrit https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/165270,
there is a utility, so the directory name "jni", or even "library" does
not work. In order to support both utilities and libraries, the
suggested name of the directory is "native_src" and thus, this commit
syncs that change in o.e.c.native.serial.

Change-Id: Iafa9ce9ae1dca7ef563ab397e8b3eb0b8642372d
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-06 20:54:52 -04:00
Jonah Graham
2bd07a89ca Bug 559674: Include only "primary" cmake.is support by default
The vendor specific support files need to be installed separately.
Includes changing the bundles display names to match the CMake main bundle
so that in the install wizard it is clear(er) what they work with.

Change-Id: I12ca155228e906c6c38fe37e37e8ce08d05a2452
2020-08-04 16:23:03 -04:00
Jonah Graham
c6f2eb5588 [releng] Update self-referenced CDT version in target
Change-Id: Ibf8f2f01d97d1d8bf8fa09483170e70372b99d26
2020-08-03 14:56:33 -04:00
Jonah Graham
285c75837e [releng] Update to Eclipse platform 4.17 M2 contribution
Change-Id: I394fd614400cae4b4ee3efe33cedc4dea67fb7f5
2020-08-03 13:03:43 -04:00
Alexander Kurtakov
0947f20764 Update build-helper-maven-plugin to 3.2.0.
Change-Id: Ifeef48c2d200c081391da693c5326b89872550f6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-07-22 09:34:23 +03:00
Marc-Andre Laperle
742dc05cb8 [releng] Remove explicit mentions of com.sun.jna.* in target platform
They come along with org.eclipse.sdk feature anyway.
org.eclipse.sdk -> org.eclipse.platform
 -> org.eclipse.rcp -> org.eclipse.e4.rcp -> com.sun.jna

Change-Id: Icc64906305b1ee96ff8a3a8850d681bf854ea784
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-07-13 23:06:46 -04:00
Jonah Graham
12ce6020e7 [releng] Add wildwebdeveloper to target platform
The Linuxtools, as of I32779335ee3f5c94d733c3fa68d1b593f9206667,
requires WWD node fragments

Change-Id: I7c8f9553c159f74941d422d136f929bb322aac27
2020-07-13 22:33:21 -04:00
Torbjörn Svensson
1073159011 Only validate features committed to git
Change-Id: Icd2427c515bb0cc79e9179ba00216c173264ca17
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 18:04:20 -04:00
Torbjörn Svensson
6e19332c33 Mark exe and dll files as executable
When git is configured to honor executable bit for files
(core.fileMode=true), the .exe and .dll files in the
repository needs to have execute bit set to be able to run
Eclipse in runtime mode on Windows.
For more details:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corefileMode
"Git for Windows" does not appear to have this problem,
but at least Cygwin does.

Change-Id: I4c164f6d99219d461c301189f101ccbf63debb50
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 16:53:47 -04:00
Alexander Fedorov
063301deca Bug 565144 - CDT.setup and .target should be configured for 2020-09
Changes for .setup and .target
* add "com.sun.jna" bundle from Orbit
* add "com.sun.jna.platform" bundle from Orbit

Changes for "org.eclipse.cdt.debug.application.product":
* remove "org.eclipse.update.configurator" bundle
* add "org.eclipse.jface.notifications" bundle
* add "com.sun.jna" bundle
* add "com.sun.jna.platform" bundle

Change-Id: Ic1a0b2d6d5189c9f3652def987d3c6a0daa4c7ee
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 19:10:58 +03:00
Alexander Fedorov
c48d1403a7 Bug 565144 - CDT.setup should be configured for 2020-09 development
Switch Eclipse Platform to 4.17 M1 for .setup and
.target
Switch baseline comparator to the latest released CDT
And I need this root project manifest to simplify my work, please

Change-Id: I8c3af45144d3859d171a87d5d37dfa7e5c7ea97b
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 13:48:39 +03:00
Alexander Fedorov
de31fb2528 Bug 565144 - CDT.setup should be configured for 2020-09 development
Updated cdt.target to 2020-09 (still use Eclipse Platform 4.16)
Updated cdt-baseline.target to 2020-06
Added repositories for 2020-09 to CDT.setup (still use Eclipse Platform
4.16)
Updated baseline to 2020-06 for CDT.setup

Change-Id: Iba1c98e5e9f89ca953727c857788298d57aa40fc
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 12:42:57 +03:00
Alexander Fedorov
81eb1b1db3 Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Change order of repositories: start the list from the most recent
platform release

Change-Id: I565f640c72f1ab67b63c8cffc0858f8303282609
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 11:10:22 +03:00