1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
Commit graph

32 commits

Author SHA1 Message Date
Mat Booth
a957e8121d Bug 575145 - Importing CMake/Meson Projects
Add API to o.e.tools.templates.ui that hooks into the smart import
feature and allows easy implementation of configurators for various
CDT project types.

Project types that have a IGenerator may use this API to offer smart
import functionality by registering their implementation using the
org.eclipse.ui.ide.projectConfigurator extension point.

This change includes project import implementations for Meson and
CMake project types.

For these project types users can use the normal project import
workflow for their existing non-Eclipse CMake projects instead of
using the New Project Wizard. As an additional benefit, users
can now also import more than one project at a time, even nested
projects.

Change also includes SWTBot tests to exercise the feature.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I96589e86bee561aa200a4a4487549305765d6409
2021-10-31 11:21:35 +00:00
Mat Booth
9f1241f3ef Bug 575139 - Meson shows sanitycheckc.exe in binaries container
Exclude everything in */meson-private/* when generating meson
projects.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Id26c8dd695e5d09d158bb747b50e04544df706c9
2021-07-30 18:48:09 +01:00
Jonah Graham
2073d47084 Bug 572648: Handle cases of empty (EOF) JSON files
Change-Id: I10fae3542ae75120dad0a59b52aaf7b34a67d8e9
2021-04-08 10:56:14 -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
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
Torbjörn Svensson
0391d6ccf1 Fixed NLS and null warnings
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I6e40038e99c37a4efc25f64d8d186b00c6f55f8c
2020-07-04 04:20:49 -04:00
jantje
f5e029d19c Bug 564123 delete org.eclipse.cdt.utils.Platform
The class overrode org.eclipse.core.runtime.Platform to
workaround bugs in the platform that have since been fixed.
As 32-bit x86 and PPC support has been removed this
class is no longer needed as all the code is now
unreachable anyway.

Change-Id: I01bb00b9203aa02663ff25ce36c4c14f22dadee5
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 13:05:41 -04:00
Jonah Graham
ca1ee32031 [releng] Update comparator repo for p2 compare and replace
Change-Id: Iff7e7ba98fe37f89d1b6b0e0754ef827925e849e
2020-01-03 15:16:28 -05:00
Jonah Graham
14561b343f Bug 558638: Add nature user display names
Change-Id: I2cabb572ab2e4a1ad2c3890267628a0aa13e4211
2020-01-02 18:18:00 -05:00
Torbjörn Svensson
e6de0c9385 Bug 551817 - Add about.html to src.includes for plugins
Change-Id: Id6e1a3c4aa94bf242efd62a28f5ca9de7d64f699
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2019-10-17 10:07:18 -04:00
Jonah Graham
a9e84e4fb7 [releng] bump version numbers according to version number guidelines
See https://wiki.eclipse.org/CDT/policy#Version_Numbering

Change-Id: I54004437fa7a52b7c2b341fa9cb2d0683daf8962
2019-05-31 12:44:42 -04:00
Jeff Johnston
b5af112f86 Bug 547104 - Adding new Docker Connection causes two build dirs
- change createBuildConfiguration() method in providers:
  MesonBuildConfigurationProvider, CMakeBuildConfigurationProvider,
  AutotoolsBuildConfigurationProvider,MakefileBuildConfigurationProvider
  to not create a .x config name and instead use the found
  IBuildConfiguration so the new CBuildConfiguration will be
  overridden in the CBuildConfigurationManager

Change-Id: Ia5f460e879f3412f19a9dec7b88dd392714b54ca
2019-05-16 21:58:27 -04:00
Jeff Johnston
19e551da58 Bug 546288 - Docker images for CDT Launchbar builds cannot have a slash
- fix CMakeBuildConfigurationProvider.createBuildConfiguration() to
  massage any image name and replace all slashes with underscores
- do the same for MakefileBuildConfigurationProvider and
  MesonBuildConfigurationProvider

Change-Id: Ib09ade66059533f089084e50cba95d54e9d40547
2019-04-10 15:49:08 -04:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
The previous alignment of all the warnings/ignores
led to too many warnings that weren't there before. This
commit relaxes them a bit.

The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs
is still the "master" copy, with
releng/scripts/check_code_cleanliness.sh containing the
exceptions that apply to test plug-ins.

Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-24 10:55:06 +00:00
Jonah Graham
170e654b47 Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Format source code
- Remove trailing white spaces on all lines
and completing the wizard

Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22 21:47:02 +00:00
Jonah Graham
35996a5c5c Bug 540373: Standard .settings auto applied
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to
copy standard settings to all other projects.

Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22 21:47:02 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Jeff Johnston
a3211e7cf6 Bug 533888 - Simplify Meson Core Build to use startBuildProcess
- fix MesonBuildConfiguration to use startBuildProcess instead
  of CommandLauncherManager
- change CBuildConfiguration startBuildProcess() method to accept
  a build directory and to replace environment variables based
  on input parameter
- fix CBuildConfiguration watchProcess routines to ensure that the
  ReaderThreads have completed processing output to the console
- change StandardBuildConfiguration and CMakeBuildConfiguration to
  pass the working directory to startBuildProcess

Change-Id: Icb4f2d076f0e6bb1513b20f6f198f720eae07e51
2018-04-26 14:48:50 -04:00
Jeff Johnston
88cc9907cb Update Meson UI tests
- add new NewManualNinjaTest to test the Run ninja context
  menu item
- add a check that Project->Clean... works for Meson
  projects in NewMesonProjectTest
- fix all tests to substitute the project location instead
  of hard-coding it
- fix the build ninja code to use env to run so that
  environment variables can be overridden from run ninja dialog
- add new test to AutomatedIntegrationSuite for Meson UI tests

Change-Id: I0e338df6935f343d6ffbce99a83265d252ea37a6
2018-03-28 18:29:24 -04:00
Jeff Johnston
407352736a Bug 532917 - env vars in Meson properties causes failures to occur
- fix MesonBuildConfiguration to check if any environment variables
  have been specified in properties page and if so, to change
  the command to run /usr/bin/env ENVVARS /bin/sh -c "meson ..."
- using env will cause the current env to be used (both locally
  and in a Container where the env has been set up) and modify it
  according to what the user specifies

Change-Id: Ide3997cf78edf65857dea3119f0a9d71679cfe68
2018-03-26 18:36:36 -04:00
Jeff Johnston
0144d3e819 Update Meson UI test
- update test for create, build, and run

Change-Id: I8a7d43336f8be28bc5cbd567dffed5f4fdc1b46f
2018-03-23 20:31:06 -04:00
Jeff Johnston
60affd8b9f Bug 532420 - Make Container Core Build indexing more efficient
- add new ICBuildConfiguration2 to keep API checks happy
- remove refreshScannerInfo method from ICBuildConfiguration and
  put it in ICBuildConfiguration2
- make CBuildConfiguration implement ICBuildConfiguration2
- update ContainerPropertyVolumesModel to use new Docker plug-ins
  using docker-client 8.9.2.
- fix MesonBuildConfiguration to use a job for each compile line being
  processed, then wait until all jobs are done before causing
  an reindex to occur (this will maximize parallelism when building
  in Containers)
- fix ContainerCommandLauncherFactory to save the project so we
  can exclude project directories when copying header files using
  the new Docker Tooling interfaces
- fix CoreBuildLaunchBarTracker to use ICBuildConfiguration2
  interface to make the call to refreshScannerInfo


Change-Id: I2138f5111614e7821e46c22731397a01035eac0a
2018-03-19 21:50:31 -04:00
Alexander Kurtakov
84d6fdefaa Sonar fixes in Meson plugins.
Change-Id: I27a75d6dac41ae820d6af0b7c30922eb5bac58f7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-03-09 10:40:53 +02:00
Jeff Johnston
82b0f6ab28 Bug 531985 - Support Container build with new Core Build
- add support for Container build to Meson
- add fixes to MesonBuildConfiguration clean build to use sh -c
  like normal meson build
- add new refreshScannerInfo method to MesonBuildConfiguration to
  re-process the commands json file so indexing will correctly
  switch from local to Container build and vice-versa
- add MESON_PROJECT_ARGUMENTS to IMesonConstants
- in MesonBuildConfigurationProvider getCBuildConfiguration
  method, remove checks for toolChainfile and for Container
  build, name the configuration based on the image name

Change-Id: Ia8a85c05e0cb9d46d2987ed4d39fcee914302467
2018-03-06 14:48:48 -05:00
Jeff Johnston
dcfc276062 Bug 530000 - Add Meson Build support
- use sh -c to invoke meson and ninja commands so that
  the default environment including PATH is set up
- don't bother trying to find the commands locally and
  don't bother trying to find local environment (only
  use env options from property page or run ninja command)
- add a check after running meson to ensure that
  ninja.build file gets created, otherwise issue error
  message and stop build
- fix comments for RunNinjaPage
- add future Container support by allowing a special
  target OS when checking for isLocal build

Change-Id: Ie8d736c0909b44fe8db14265afbc8b05262b51f3
2018-02-19 20:37:43 -05:00
Jeff Johnston
e31e23bb4e Apply CMake changes from Bug 530673 to Meson
- Fix issue with Meson and changing toolchains since
  Meson is based on CMake plug-ins
- Cleaned up add and remove of toolchain files and handling of when
  a toolchain changes for a config

Change-Id: I147a30454c69e3d8d86fc50c561a1667ddfb5df3
2018-02-14 13:09:18 -05:00
Alexander Kurtakov
aac61a6123 meson: Enable warnings
And fix them.

Change-Id: I6a1594559504764aeb325f78fa47ff103b2183a9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-09 00:03:33 +02:00
Jeff Johnston
ba7f4f26eb Add Run ninja command context menu item for Meson projects
- add new RunNinjaCommandHandler, RunNinja,
  AbstractMesonCommandHandler, and
  RunNinjaPage classes to support running ninja manually
  with env variables added and options specified
- add a new build method to MesonBuildConfiguration which
  specifies ninja options and environment variables
- add SWTImagesFactory for supplying the meson logo image
- add WizardMessages class for specifying messages for
  meson ui wizards
- add new MesonUtils class and move stripEnvVars from
  MesonBuildConfiguration to here
- add new constants to IMesonConstants interface

Change-Id: I8d635b2bd96792800bb07f4b3f1730be6e41eb24
2018-02-08 15:03:09 -05:00
Jeff Johnston
33eeb12ae8 Bug 530000 - Add Meson Build support
- rewrite unconfigure Meson Property page logic to parse the
  output of meson --help and form the controls accordingly
- do not add an entry for help option
- add environment variable text entry to unconfigured property
  page to allow the user to add things such as CFLAGS=xxxxx
- fix MesonBuildConfiguration to only use the MESON_ENV property
  when running meson for the first time and to prepend the
  current environment first to ensure local path, etc.. is
  still set, otherwise it won't be able to find commands it
  needs such as execvp
- parse the environment text string to look for entries that
  use single or double quotes so that entries may use the = sign
  or spaces
- when building, have ninja use the -v option so that the compile
  and link commands are output to the console

Change-Id: I40d04234a7de74417c43f4c39bb2e21c86deb8a2
2018-01-31 18:49:06 -05:00
Jeff Johnston
127e71423e Bug 530000 - Add Meson Build support
- initial contribution of Meson Build support based upon
  Core Build CMake

Change-Id: I9a91901254b7750f4f5eef69ed5375a5c1cce0a4
2018-01-30 15:47:12 -05:00