Commit graph

16 commits

Author SHA1 Message Date
Torbjörn Svensson
8b391a7f3a Bug 568079: Reducing transitions from JAVA to native code (part 2)
Advapi32Util.registryGetValues() is more efficient to fetch all the
values since the regiter only needs to be opened once.

XXX: Due to a cycle in the dependencies we need to split this
in two parts, this previous commit handles the core.native API change
and this commit handles the use of the new API

Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I960954e332e05dfebcd0263f983bbbc6c64d46af
2020-11-11 14:56:04 -05:00
Torbjörn Svensson
7d7d21cc67 Bug 568079: Reuse existing way of fetching data from registry
Use the WindowsRegistry implementation rather than having yet another
implementation for reading the Windows registry in native code.

Change-Id: If12068319ea3b99934112208a0a21538c792909c
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-11 12:29:53 -05: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
f6016c5e0b Fixed "The value for X attribute is not externalized" warning
Change-Id: Ib2f0d85a0428a1f59cc7ccab6ebb8fd91ffa2a41
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Jonah Graham
da0d1d7df6 Bug 543122: Add additional baud rates for serial
Includes new API to allow, on platforms that support it, setting
and getting arbitrary rates.

Change-Id: I0b1134325f913bb09d1bf0cd902f89e968d80570
2020-05-15 14:32:47 -04:00
Jonah Graham
69c551ab04 Bug 562494: Updated libraries due to updated tools
As part of the rebuild of the infra images to get new Java 11, we
also got updated compilers that generate some different bytecodes
for the native libraries. This commit brings things up to date.

Change-Id: I1039a5e19172092353dc4e1ea7de1381c031d280
2020-05-05 12:43:22 -04:00
Jonah Graham
0c21abb3a6 Bug 521515: Bump version number of o.e.c.native.serial
Change-Id: I17b97079c7a3da6df78376b657014dbb81fe60ef
2020-02-18 11:34:11 -05:00
Jonah Graham
29369a555c Bug 521515: [releng] Build o.e.cdt.native.serial natives using docker
Steps:
1. Edit and commit change
2. docker run --rm -it -v $(git rev-parse --show-toplevel):/work -w /work/$(git rev-parse --show-prefix) quay.io/eclipse-cdt/cdt-infra-eclipse-full:latest  make -C jni rebuild
3. GIT_COMMITTER_DATE=$(git log -1 --pretty=format:%cI -- .) git commit --amend -a --reuse-message=HEAD

Change-Id: I9d9a576fd2eb1c5edd874098d08564ecdfa6ba09
2019-11-04 07:19:27 -05:00
Mat Booth
d07a2c5bf6 Remove remnants of no longer supported arches
Change-Id: I9fb7caf1345dff8dd33964bf62f1bc1b513fa8b3
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-06-19 16:10:21 -04:00
Waqas Ilyas
a05bc1a576 Bug 542849: List serial devices starting with ttyS
Change-Id: I874bdebaec7a04257a81aea4c8419f3a783cdf12
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2019-01-08 15:14:07 -05:00
Karsten Thoms
652602febd Bug 540610 - Add Automatic-Module-Name header
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-30 15:49:15 +01:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Doug Schaefer
4b2e1e5b41 Add a registry of open Serial Ports.
This will be used by components that need to pause an open serial
port to run some other functionality over the port. For example,
Arduino needs to pause the port to run the bootloader. This removes
the need for Serial ports to use o.e.remote.

Change-Id: Idb14598541ccf4e87c702cf2e5442335c64a6c65
2017-05-15 16:06:39 -04:00
Marc Khouzam
9e1e981b4d Move the rest of the CDT plugins to java 8
This change was generated using the script:
releng/scripts/ChangeJavaVersion.sh

Change-Id: I2ad96dc682a5acb8529c3edec40de279c331b5a4
2016-06-22 14:51:43 -04:00
Doug Schaefer
6993415180 Bug 459971 - Move serial port to it's own plug-in. Starting with Mac.
There are a number of requests to support serial port independent of
CDT and independent of Eclipse. Putting the serial port into it's
own plug-in so it's jar can be loaded into pure Java apps.

Change-Id: I9b35d9bedeee0a0b1c16ad1c884830894320a726
2015-04-06 19:39:30 -04:00