[GCC-XML] Mac OSX, gccxml, and the -framework option
Shane Holloway (IEEE)
shane.holloway at ieee.org
Tue Aug 1 11:53:32 EDT 2006
On Jul 31, 2006, at 08:46, Brad King wrote:
> Shane Holloway (IEEE) wrote:
>> I'm trying to use gccxml to examine Mac OSX frameworks, but the
>> -framework option does not seem to exist in gccxml.
>>
>> gccxml_cc1plus: error: unrecognized option `-framework'
>>
>>
>> Would anybody have a direction to point me in to enable framework
>> processing for gccxml? Or is there another tool that will help me
>> work
>> around framework inclusion?
>
> GCC-XML is built on the GNU release of GCC 3.3 and therefore does not
> have any of the framework code added by the Apple version. You'll
> have
> to manually add the appropriate -I flags to point at the include
> directories inside the frameworks you want.
>
> -Brad
I tried that, but they use two part namespaces <QuickTime/
QuickTime.h>. I looked at the GCC 4.1 sources, and the framework
includes are evaluated when the system encounters a missing header
file. It also mentioned looking up the header files "in context" for
subframeworks. In short, I don't know that framework includes can be
spoofed with -I includes directly for everything.
The best thing I can think to do is find the 3.5 patch from Apple for
the frameworks, and then try to backport it to 3.3. Either that, or
try to merge GCCXML with gcc 3.5 -- which sounds like a ton of work.
Until then, I've made this little python script to parse the makefile
dependency list built by the system gcc and then turn that result set
into a set of symlinks to the framework directories. Using these
files in my local include directory, I was able to successfully run
gccxml and generate the xml file. Hope this helps the next Carbon +
GCCXML customer! ;)
Thanks,
-Shane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genQuickTime.c
Type: application/octet-stream
Size: 73 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/d36d65f9/attachment.obj>
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basicMakeToLinks.py
Type: text/x-python-script
Size: 5298 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/d36d65f9/attachment.bin>
-------------- next part --------------
More information about the gccxml
mailing list