[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [photran-dev] Update your Photran sources
|
I tried creating a managed build project using the C project wizard and
noticed another problem. The InputType definitions in the reference
tool-chains look like this:
<inputType
sourceContentType="org.eclipse.photran.core.fortranSource"
sources="f,f90,f95,f03"
dependencyContentType="org.eclipse.cdt.core.fortranSource"
dependencyExtensions="f,f90,f95,f03"
dependencyCalculator="org.eclipse.photran.managedbuilder.core/org.eclips
e.photran.managedbuilder.core.makegen.DefaultFortranDependencyCalculator
"
id="photran.managedbuild.tool.xlf.fortran.compiler.input">
</inputType>
The problem here is the use of contentTypes. The "fortranSource"
content type defines no file extensions, so the MBS recognizes no files
as belonging to the tool. "freeFormFortranSource" and
"fixedFormFortranSource" derive from "fortranSource" and define the file
extensions. Ideally then, you could define the sourceContentType and
dependencyContentType to contain both "freeFormFortranSource" and
"fixedFormFortranSource". Unfortunately, I believe those attributes
currently support only a single content type. It shouldn't be too hard
to extend that, but I don't know if anyone will have the time for CDT
3.1. The other alternative is to just use the "sources" and
"dependencyExtensions" attributes without specifying the content-type
attributes. The downside is that the user will not be able to modify
the set of file extensions recognized by the compiler.
Also, note the "typo" in the dependencyContentType where cdt is
specified rather than Photran.
Regards,
Leo
-----Original Message-----
From: photran-dev-bounces@xxxxxxxxxxx
[mailto:photran-dev-bounces@xxxxxxxxxxx] On Behalf Of Hilliard, Bill
Sent: Wednesday, March 29, 2006 10:34 AM
To: overbey2@xxxxxxxx; Photran Developer Information
Subject: RE: [photran-dev] Update your Photran sources
Thanks for the instructions Jeff. I just tried them and it worked fine
for me. When will there be Fortran managed make projects available in
the new project wizard? I only see standard make projects for Fortran.
Thanks...Bill
-----Original Message-----
From: photran-dev-bounces@xxxxxxxxxxx
[mailto:photran-dev-bounces@xxxxxxxxxxx] On Behalf Of Jeffrey Overbey
Sent: Tuesday, March 28, 2006 11:27 PM
To: Photran Developer Info
Subject: [photran-dev] Update your Photran sources
The Photran sources have changed around again due to the talk at the CDT
Summit. Please update your source tree as follows...
1. Check out the (new) org.eclipse.photran.cdtinterface project from
CVS. This contains every aspect of CDT integration (including UI).
2. Delete the org.eclipse.photran.modelicons project. The stuff that
was here is now in the cdtinterface project. This will be deleted from
CVS soon.
3. Select all of the CDT projects, right-click on the selection, and
choose Replace With > Latest from HEAD
4. Select all of the Photran projects, right-click on the selection, and
choose Team > Update (this way you will not lose any of your uncommitted
changes)
5. Right-click on the top CDT project, click Team, click Apply Patch
6. Choose Workspace, expand org.eclipse.photran-misc, and choose
photran32-cdt32-patch-20060327.txt; then click Finish
Everything should compile. After Doug gets my patch committed (I think
this will be the "final" version), the CDT patch won't be necessary
anymore.
We now have a Fortran perspective, New Fortran Project wizard, etc.
These are all in the cdtinterface project and are created by either (1)
telling Eclipse to use the relevant CDT class directly (e.g., the New
File wizard), or (2) inheriting from the relevant CDT class, replacing
relevant text and images in the constructor (e.g., New Source File
wizard).
Jeff
_______________________________________________
photran-dev mailing list
photran-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran-dev
_______________________________________________
photran-dev mailing list
photran-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran-dev