1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

31 commits

Author SHA1 Message Date
Vladimir Hirsl
47135c2117 Fix for PR 91276: Cygpath on Linux for SCD?
Cygpath is now used only on Win32 platform.
2005-05-03 14:09:04 +00:00
Alain Magloire
cab81eb6a0 2005-03-18 Alain Magloire
Fix for PR 88110: Importing project that need converting would
	create NPE and ResouceException failures.
	* src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
	* src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java
	* src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject20.java
	* src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject.java
2005-03-18 17:54:39 +00:00
Vladimir Hirsl
66d9c39ea6 New Scanner Config Discovery 'framework' in preparation for per file SC discovery. Currently implemented: Per project profiles for standard make and managed builders. 2005-01-24 18:49:34 +00:00
Sean Evoy
fe16438a4d Marked remaining strings untranslatable as they belong to the extensibility schema. 2004-03-16 22:25:50 +00:00
Sean Evoy
fbf82be3cd Commit for Jeremiah Lott.
Allows the managed build system to resolve "forward references" within its extensions. In practice this is necessary to allow references between extensions in different plugins.	
Partial fix for bugzilla 54202:
No longer use the cdtbuild file for persisting the default target and configuration settings for a project. This is assumed to be an individual workspace level setting so the choices are persisted in the project's persistent settings store.
2004-03-12 19:11:53 +00:00
Sean Evoy
e4bbb5dc9e Fix for bugzilla 45311: "CVS tries to check in contents of build output"
The managed make builder generates the output directories, and the makefiles for those directories. Those files should be tagged as "derived" so that the CM system will ignore the files on check-in. Now, that is done when a new build directory or file is added to the project. The workspace will take care of files created by the build process through the Ignored Resources extension point.
2004-03-09 20:39:34 +00:00
Sean Evoy
6bd526e1b6 Committing the changes needed by our partners to better support a variety of tool references. A class hierarchy of tool references has been introduced. The base class is an abstract tool reference. Unqualified tool references, like those used in the manifest or project files will be continue to be treated as tool references. However, we now have some flexibility for the future should a more refined type of tool reference be needed; for example, a dynamic tool that reads a configuration file to determine what environment it is targetting. 2004-03-08 16:42:21 +00:00
Sean Evoy
762808825e Fix for bug 53856: "Option reference not reporting built-in includes paths to scanner". Changed the constructor for the OptionReference so it only creates a list if it finds built-in path or symbol definitions in the manifest or project file. The getter method for built-ins also concatenates the definitions it contains with those of its parent.
Undid the changes to the geenrated makefile builder since bug 53253 has been corrected.
	
Fix for bug 53861: "Cannot reset tool command back to default". Changed the way the configuration sets the tool command when the value is the same as the default.
2004-03-05 16:13:28 +00:00
Sean Evoy
a84395e43f A change in VCErrorParser to fix PR 53253 causes an IndexOutOfBounds exception when echoing a build command on Win32 if the absolute path to the make utility is specified, i.e. C:\<path>\make.exe. The work-around is to not have the launcher echo the command, and just output it to the build console directly. 2004-03-03 15:09:16 +00:00
Sean Evoy
8503542b55 Marked those strings that are non-translatable as such and externalized those strings that can be translated. There is still work to be done in this area for this plugin. 2004-03-02 16:35:03 +00:00
Sean Evoy
3948f17fa0 Work to support feature C1, "Set Tool Command in Project". Now it is possible to store an overridden tool command in a tool reference. The tool command can be overridden directly in an existing reference, or through the configuration, which creates a new tool reference. 2004-03-02 15:26:50 +00:00
Sean Evoy
440660c80b Added a header to the automatically generated makefiles to alert users not to edit them. Also added includes directives to bring in user-supplied makefiles to support additional targets, macro definitions, and custom build steps. Strings are externalized. 2004-02-27 14:54:22 +00:00
Sean Evoy
72991c1d3e Work for C14, add the ability to inherit a tool description via a tool
reference.
	
	Changed the schema to allow a tool reference to belong to a target.
	* schema/ManagedBuildTools.exsd
	
	Changed the manifest logic in the managed build manager to load and 
	retrieve tool definitions as well as target definitions. The schema 
	allowed for this, but the logic was missing.
	* src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java

	Made some bookeeping additions to the target so that it can store references 
	to tools. First, the target loads any tool references it has. Then it loads 
	tools and configurations. The target also has to consider the presence of tool 
	references when it determines how many tools it has, so the logic that counted 
	and returned the number of tools in the target was updated. Some key changes in 
	this regard relate to how the target looks up the tool references it has. It 
	now has to ask the managed build info if it has a tool definition for the reference 
	if there are no tools defined for the target level for a given reference.
	* src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
	
	Tool references now have the potential to be owned by either a target or a 
	configuration. Changed the owner to the superclass of both and figure out 
	which the parent is at runtime to perform the proper registration and information 
	look-up. Also removed the reference to a target from a tool and the interface to 
	extract the target from ITool.
	* src/org/eclipse/cdt/managedbuilder/core/ITool.java
	* src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
	* src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
	
	An unrelated bug had to do with a problem my testing uncovered with nested 
	categories. The manifest reader was looking at the wrong field to determine 
	the parent, but for the manifests we have created, this has not proven to be 
	a problem so far.
	* src/org/eclipse/cdt/managedbuilder/core/IOptionCategory.java
	* src/org/eclipse/cdt/managedbuilder/core/IOptionCategory.java
2004-02-26 20:53:54 +00:00
Sean Evoy
c80f98594b 2004-02-24 Sean Evoy
Changed the makefile generator to escape any whitespace it finds in a dependency path. Now it is possible to build a project in a location with spaces but you still cannot have internal folders with spaces in the name. 
* src/org/eclipse/cdt/managedbuilder/internal/core/MakefileGenerator.java
	
Tweaked the builder to put only the make command in invocation if there were no arguments spec'd. It seemed to be causing a fake error message to be reported on Linux even though make was successfully building the project.
* src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
2004-02-24 21:25:12 +00:00
Sean Evoy
73178a9453 Work for bug 52647. 2004-02-24 15:18:13 +00:00
Sean Evoy
aba55c1109 Fixes for 41590, 44159, 51640, and 51646 2004-02-17 14:20:11 +00:00
Doug Schaefer
92669e0062 Patch for Bogda Gheorghe: (44366 & 45324)
- Moved off all dependency calculations to the Indexer thread,
created a new UpdateDependency job
- Modified CSearchOperation to only lock the workspace when
tagging resources with markers.
2003-10-27 20:57:47 +00:00
Doug Schaefer
de44b4c4a2 Merged 1.2 fixes into HEAD. Includes:
- managed make fix for infinite make recursion
- search fix for large projects
- fixes to source project so that it actually contains source
2003-10-27 18:26:54 +00:00
Doug Schaefer
0e11088e84 Patch for Sean Evoy:
Details in ChangeLog.
2003-10-02 02:56:46 +00:00
Doug Schaefer
cc6084024d Patch for Sean Evoy:
Use natures to help select what tools are available.
2003-10-01 23:56:36 +00:00
Doug Schaefer
02de2c9788 Patch for Sean Evoy:
the logic for managing the makefiles in the face of a header file 
modification. There seems to be a problem (maybe with the dependency 
calculation) for dependants in other projects when a header file is moved, 
but other than that the builder seems to respond properly.
2003-10-01 14:25:35 +00:00
Doug Schaefer
9fa37457ae Patch for Sean Evoy:
I have documented the patch in the change log; the only bonus is that it 
fixes 43214 for free. The managed builder should now respond correctly to 
deletions of any types of file in the project (or referenced projects). 
This includes makefiles, intermediate files, and the build target. It 
should also properly handle changes in the project settings in any 
referenced project. Referenced projects should now get their project views 
refreshed as a result of any changes.
2003-09-30 02:14:44 +00:00
Doug Schaefer
103296262c Patch for Sean Evoy:
This is a fix for the bug 41275. The problem was pretty simple; the delta 
passed to a project when one of the projects it depends on changes, is 
empty. I tried to optimize the managed builder to run only when a change 
was passed to it, but this is a valid case. Now, if there is a 0-length 
delta passed to a project, it simply calls make without regenerating any 
makefiles.
2003-09-29 18:49:06 +00:00
Doug Schaefer
58d60e53f4 Patch for Sean Evoy:
The builder now properly refreshes the files in 
a project after build.
2003-09-29 01:42:26 +00:00
Doug Schaefer
3b2b1c6a42 Patch for Bogdan Gheorghe:
This patch integrates the dependency calculator into
the indexer. As a result the underlying indexer file storage
format has changes. Lots of detail in the change logs of
exactly what changed...
2003-09-26 17:53:45 +00:00
Doug Schaefer
db4d819623 Patch for Sean Evoy:
the new project wizard now filters out targets that should
not be selected by the user, and that the build model
handles inherited option references properly now.
2003-09-26 00:24:42 +00:00
Doug Schaefer
5f524fb890 Patch for Sean Evoy:
To help out with bug 43051, I have changed the behaviour of the managed 
builder when asked for scanner information. The search feature needs the 
absolute paths to files. Since all the user-specified include paths 
specified in the managed builder UI are either absolute or relative to the 
build project directory, it is relatively easy to convert everything to 
absolute paths before answering the clients of this information.
2003-09-25 03:19:31 +00:00
Doug Schaefer
e09b94f945 Patch for Sean Evoy:
This patch adds a "hook" for F1 help on the new managed project wizard 
configuration selection page. It also adds functionality to the managed 
build project property page to allow the user to edit the make command and 
build artifact name. They can also add and delete configurations from a 
target. There is no support for adding another target to a project in this 
release.
2003-09-24 14:20:49 +00:00
Doug Schaefer
0abb42e093 Patch for Sean Evoy:
- I have removed the binary parser selection from the
new managed project wizard and hard-coded the proper
parser ID in the plugin spec for the build model. There is
an updated JUnit test that verifies this change to the
build model. 
- There is also a fix for the library problem on *nix. The
makefile pattern was also changed slightly to better
capture the dependencies between the build target and
the outputs of other managed projects.
2003-09-22 02:32:08 +00:00
Doug Schaefer
c7a74ef049 Patch for Sean Evoy:
- The fix is for bug 43017, something I need anyway. The 
incremental build work is to make a full rebuild happen when the build 
settings change through the UI. Tested the changes on Linux and Win32.
2003-09-16 21:27:58 +00:00
Doug Schaefer
d18851f2d7 Patch for Sean Evoy:
- Move the managed builder to it's own plugins and feature.
2003-09-15 20:44:43 +00:00