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

272 commits

Author SHA1 Message Date
Sean Evoy
ae5b03a319 Fix for bug 58714 - Cannot rebuild after renaming a referenced project 2004-05-27 20:28:20 +00:00
Sean Evoy
c092fa64d2 Fix for bug 64206 -NPE because of invalid return type on Job.run method 2004-05-27 17:57:10 +00:00
Sean Evoy
e21a791587 Fix for bug 60957 and 63937. In the first case, the builder was being too strict when deciding what to do in the face of change notifications delivered by Eclipse during a build of a chain of dependent projects. In the second case, the managed build system needed to separate out the need to save project settings from the need to rebuild a project. Now there is a new set of variables to keep track of needing a rebuild. 2004-05-27 15:53:16 +00:00
Sean Evoy
40249879e8 Final commit for 64085 -- added a better message when the build stops on an empty project 2004-05-26 15:34:27 +00:00
Sean Evoy
f6db199fe7 Fix for bug64085 -- NPE on New managed project creation. Getting the working directory for an empty project was a no-no, and one of the changes I made introduced the possibility of this happening during autobuild. 2004-05-26 15:24:01 +00:00
Sean Evoy
77a7513b82 New build messages to address bugzilla 63410 -- Wrong message is displayed during build 2004-05-25 19:42:32 +00:00
Sean Evoy
a8917334a4 Removed the dependency on the GCC 3.x preprocessor flag '-MP' to add phony targets to the dependency makefiles. Now the move header file event is handled by make itself as a trigger to regenerate the makefiles, not complain about missing targets. 2004-05-25 18:15:22 +00:00
Sean Evoy
cc0e391d69 Avoid an NPE on Gnu targets for POSIX systems that do not have an executable extension by default. NPE was happening when the tool ref for the linker tried to figure out what it's uninitialized output extension was. Duh 2004-05-25 00:04:08 +00:00
Sean Evoy
d03b0f48a0 Large commit. Two components. The first is to switch all the managed build components over to the new plugin loading scheme. The second is to remove the dependency between the indexer and the build system for dependency calculation. Currently, to make this work, there is a flag that is only available on the 3.x GCC compilers, but I will be addressing that shortly. 2004-05-24 23:23:36 +00:00
Doug Schaefer
de0397f03e Cleaned up the build.properties files to ensure the right things end up in the binary and source builds. 2004-05-24 17:18:38 +00:00
Sean Evoy
f64e265d26 Final fix for bug 61505. When an option was set, a toolr reference was created but the "copy constructor" was not doing a complete copy, so the output of the tool was lost. This fix addresses that 2004-05-19 17:39:16 +00:00
Sean Evoy
437c6840b1 Fix for bug 61505 - closing and opening a project causes "null" to appear in the makefile 2004-05-13 18:52:25 +00:00
Sean Evoy
dc30014f0a Fix for bug 62141 - Option categories displayed out of sequence in UI 2004-05-13 18:05:28 +00:00
Sean Evoy
1f6a68d596 Commit for Dave Daoust removing a problem with the BootLoader call to figure out the OS. 2004-05-12 18:41:53 +00:00
Sean Evoy
6db86e2257 Work for bugzilla 43021 - Search: cannot find things in stdio.h 2004-05-11 17:09:07 +00:00
Sean Evoy
08c13e8969 External commit for Leo Treggiari. The archList attribute of the target object specifies the list of architectures that the target is supported on. The valid list of architectures is the string values returned by BootLoader.getOSArch(). If the archList attribute is not specified, or if the value is "all", then the target is supported on all architectures. Otherwise, the target is only displayed when CDT is running on one of the specified architectures, unless the user has requested to see all targets. 2004-05-10 15:44:32 +00:00
Sean Evoy
aceec3d10f Updated the implementation to match the new method signature for the IScannerInfoCollector interface 2004-05-10 13:34:53 +00:00
Sean Evoy
a7ad0b285d Adding the capability of dynamically discovering the built-in compiler paths and symbols and storing them in a PathContainer. The UI has been modified to allw users to turn off indexing for a managed project 2004-05-07 18:55:24 +00:00
Sean Evoy
c8bbe7c2eb Forgot to mark a string as non-externalized 2004-05-04 19:52:47 +00:00
Sean Evoy
f971a5046c Changed the toolchain specification for Gnu tools to add a generic set of target definitions for POSIX targets. There is also a redefined set of tools and options. There is also a conversion routine that runs on workspace startup to convert older projects into the newer format. 2004-05-04 15:06:54 +00:00
Sean Evoy
b66bb2d4b7 External code commit from Leo Treggiari from Intel that adds support for adding and removing error psarser on a managed build project 2004-04-22 18:04:54 +00:00
Sean Evoy
4f86ebbdd4 Work to support the versioning of the managed build tool definition schema and project files. This work was needed in order to refactor the rather large default tool definitions and to support ongoing enhancements to the managed build system. 2004-04-20 15:09:51 +00:00
Sean Evoy
ecdbf0cd6e Fix for bugzilla 58164 "Change the tool command "gcc" not resetable" and bugzilla 58497 "Can't create a Managed Project". In the first case, the version testing did not take the qualifier the nightly build adds into account so it thought the plugin version was too high, and in the second, the configuration was not flagged as dirty, so after the reset, the change back was not saved. 2004-04-14 19:39:22 +00:00
Sean Evoy
976822c247 Fix for bugzilla 58305 "Tool command overide is not kept in a Team Environment". In some cases, the managed build system was losing track that the command change should force a rewrite of the build file. Cleaning up the logic for save on minimal or no changes caused this problem to become evident. 2004-04-13 20:21:30 +00:00
Doug Schaefer
d546766bee Removed the reference to xerces. 2004-04-07 17:22:09 +00:00
Sean Evoy
0d4329b166 Partial implementation of bugzilla 45172: "Add Infos on Build, which Target is being build". There is now a message about the project and configuration being built, along with the type of build, displayed on the console 2004-04-06 15:21:18 +00:00
Sean Evoy
8ae9494db3 Build error reported for new browse functionality. Corrected the "problem" by calling a more explicit version of getShell() 2004-04-06 13:42:03 +00:00
Sean Evoy
66c786380a Added a field to the option schema that allows a browse type to be encoded and a new sequence to the option reference with list values 2004-04-05 15:28:23 +00:00
Doug Schaefer
62a5a610ad Added back the xerces deps. 2004-04-01 20:52:48 +00:00
Doug Schaefer
e3569cbd19 Removing plugin and feature references to xerces. 2004-04-01 20:39:39 +00:00
Sean Evoy
ef50454dbd This patch implements 2 pieces of additional option functionality that were discussed on CDT-DEV.
1.	For a String option, if the defaultValue attribute is present, and contains a string of length > 0, then the command string (if any) is prepended to the defaultValue string to form the command line string.
2.	Add a commandFalse attribute to the Option Schema to be used, if specified, when the value of a Boolean option is False.
2004-03-22 21:28:40 +00:00
Sean Evoy
d980d24f00 Removed the AbstractToolReference class because there is no longer any need for it with the introduction of a dynamic styrategy for model element creation. I kept the IToolReference interface, though. Moved several public methods into it and changed the clients of those methods so that the interface is used. 2004-03-19 16:38:49 +00:00
Sean Evoy
481715a2b8 More I18N work. Externalizing the vlaue of the name field of the extension point and extension is only needed to satisfy an automatic string checker. The value of these tags is never displayed to an end-user. However, better to get rid of the erros than expect the poor testers to always track the exception. 2004-03-19 15:32:07 +00:00
Sean Evoy
e25c54c01d Adding more work from Timesys to support dynamic toolchain model elements. 2004-03-18 21:26:23 +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
1661bb8022 Changes for bugzilla 54202 - Changing the active configuration forces a save in the cdtbuildfile. 2004-03-16 22:12:27 +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
8cceffb272 Fix the classpaths to use dynamic containers again.
My apologies :-)
2004-01-05 21:16:28 +00:00
Doug Schaefer
e1b04cf0c0 Added org.eclipse.core.runtime.compatability as a
dependency to satisfy Eclipse 3.0M6 requirements.
2004-01-05 20:26:57 +00:00