Upon further investigation, I discovered that this approach is
incomplete.
The include paths don't work out. Normal things like this:
#include <google/protobuf/message.h>
work when installed under "/usr/local/include/google/..."
But, they fail because framework searchpaths would want:
#include <$frameworkname/message.h>
So, all the #includes need to be conditional like this
#if __APPLE__
#include <GoogleProtobuf/message.h>
#else
#include <google/protobuf/message.h>
#endif
and that would also need to be changed for things generated by protoc.
If only macro substitution worked in #include , I'd #include
<##PROTO_BASE##/message.h>
XCode build project still has the advantage of being able to produce a
fat binary that simultaneously includes ppc, pp64, x86 and x86_64
object code. Maybe I should convert the framework targets to producing
static and dynamic libraries. #include installation is left as a
separate exercise.
> macosx.tar.bz2
> 11KDownload