On Aug 31, 7:42 pm, Greg Robbins <
grobb...@google.com> wrote:
> The xcode project file checked in now to the top-of-trunk sources includes a
> target for building a static library for iPhone apps. This should enable
> iPhone projects to include the GData project as a cross-project reference,
> rather than dragging all of the sources into the iPhone app's project.
>
> Static libraries with Objective-C code cannot be dead-code stripped, and
> most apps do not need most of the classes in the GData library. So to avoid
> compiling unneeded code into iPhone apps, the static library target has this
> define in Other C Flags build settings:
>
> -DGDATA_REQUIRE_SERVICE_INCLUDES=1
>
> which will exclude all of code for unneeded services. But that means that to
> use the static library, you will need to tell the target which services your
> app is using. So there is a placeholder define also in the Other C Flags
> build settings:
>
> -DGDATA_INCLUDE_nameServiceHere_SERVICE=1
>
> To avoid a build error, that should be replaced by the defines for the
> service or services your app is using, such as
>
> -DGDATA_INCLUDE_CALENDAR_SERVICE=1
>
> Note that all Mac and iPhone apps can (and should) take advantage of the
> GDATA_REQUIRE_SERVICE_INCLUDES preprocessor define to reduce the compiled
> code size, but it's only required for the iPhone static library release
> build.
>
> Linking to Objective-C static libraries also requires the -ObjC link option,