[wx-dev] Supporting MacOS X frameworks

Anders F Björklund afb at algonet.se
Wed Jan 31 03:51:27 PST 2007


Vadim Zeitlin wrote:

> I know of at least one other wxMac application which uses wxWidgets as 
> a
> private framework. And, AFAIR, doing this was as simple as building the
> shared libraries normally, copying them in the appropriate Contents
> subdirectory and running install_name_tool to change the names to
> @executable_path/whatever (this can be done easily with
> misc/scripts/set_install_name).

Sure, but that doesn't gain anything over just doing the same thing 
with dylibs.
The main reason for a framework (that I see) would be sharing it 
between apps...

i.e. instead of downloading each app with wxWidgets bundled, one would 
download
two: .app and .framework. One to Applications, the other to 
Library/Frameworks.

And as a bonus, the same shared .framework can be used for development 
since it
also contains the Headers. (unlike RPM/DEB/etc, which has one libs and 
one devel)

>  Unless I'm missing something, I think a similar approach could be 
> used to
> create a non-private wx framework. The question is how to integrate 
> this
> with the normal build system. Probably there should be just a separate
> "make framework" target.

Yes, that would be the best (a "make framework", with wx-config 
integration)
Probably a Framework target for the Xcode projects too, as mentioned 
earlier ?

--anders





More information about the wx-dev mailing list