Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[edt-dev] New builder for generation

Hi folks,

A change has just been committed that adds a new builder for generation. The "egl compilation" builder will no longer invoke generation; the new generation builder will run generation on new or changed IRs as they're compiled. You can also now directly edit the .eglxml files in your workspace and they will be regenerated (useful for quickly testing generation without having to recompile the source file).

New projects will automatically be configured to use the generation builder, however your existing projects will require some manual updating. For each existing project, open up the .project file and insert the following build command after the entry for EDTBuilder:

<buildCommand>
<name>org.eclipse.edt.ide.core.EDTGenBuilder</name>
<arguments>
</arguments>
</buildCommand>

A change has also been made so that when we add our builders to a project, we'll add them to the beginning of the builder order instead of the end. This should improve overall building since we produce code that must be processed by non-EDT builders (e.g. the Java builder previously ran before we generated .java files, now it will run after). Here's an example of a full buildSpec in .project:

<buildSpec>
<buildCommand>
<name>org.eclipse.edt.ide.core.EDTBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.edt.ide.core.EDTGenBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>

There's still some work to be done, such as regenerating a resource hierarchy when the generator(s) has been changed.

-Justin


Back to the top