Code Warrior Project File Listing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Warrior Project File Listing

3,381 Views
jamesd
Contributor I
Hi,
 
For configuration control purposes i would like to obtain a complete listing of all files (.c and .h) that are used to build our project. (Kind of like a makefile or a build log file).
(Basically, within clearcase, i wish to label all the files that constitute a formal software release).
 
The "Export Project as GNU Makefile" command provides a listing of directories, c files and objects but does not provide the header files used.
 
The .mpc file seems to contain the header files but is there is anyway to parse this?
 
Any help appreciated,
 
James
Labels (1)
0 Kudos
5 Replies

473 Views
jamesd
Contributor I
Thanks for your reply Daniel.
 
Unfortunately when the mcp file is exported to xml it does not show the included header files.
 
However when i open the mcp file in an editor the header files are all in there, but with a lot of other goobledegook. 
 
Unfortunately i wouldn't have a clue as to where to start with COM API as i have never used it  :smileysad:
 
Thanks,
 
James
0 Kudos

473 Views
mke_et
Contributor IV
Also be carefull if you have included files that have includes that aren't in the project list.

I know, I know, it's bad practice, but when I was dealing with the number of files limit, I would debug and have one of the 'modules' for a flash page all set, then basically take it out of the project other than the reference to the 'main' file for that flash page. As I did more and more pages, only the 'main' file for each flash page was referenced. Idealy each of these modules would be 'locked down' and the source archived and not changed unless absolutely necessary.

When I made up a 'reference tree' for my files and functions, I not only had to scan all the main files, but any included files, and then those included files, to make sure I caught everything.

With a CW license that allows me to have sub-files, that problem went away, but I still have to be carefull if I have to deal with older projects and code.
0 Kudos

473 Views
jamesd
Contributor I
Thank you for your reply Tom.
 
Yes, both the project .mpc file and the .tdf seem to contain the header file names, its just getting them out of there in a more readable form!
 
Maybe i will have to write my own parser..
0 Kudos

473 Views
CompilerGuru
NXP Employee
NXP Employee
Getting it out of the mcp is as simple as exporting the mcp to xml using the file menu.
However I really think the mcp only contains filenames which were added to the project, and not the names of all included files.
Did you look into the COM API of CodeWarrior? If there is any way to get to this information, then it is via COM. However I did not not check if it does actually provide the include file list (or dependency list).
Daniel

0 Kudos

473 Views
J2MEJediMaster
Specialist I
You could try to exprt the project as a XML file, but in a quick check, I didn't see any header files. In the yourProject_Data directory, the TargetDataWindows.tdt file contains the header files along with a lot of ohter information, but there's no easy way to parse the information that I know of.

---Tom


0 Kudos