New issue
Advanced search Search tips
Starred by 7 users
Status: New
Owner: ----
Cc:
Area: Build
Priority: Icebox
Type: Feature



Sign in to add a comment
Support building fat binaries on iOS and OS X
Reported by r.go...@gmail.com, Sep 24 2014 Back to list
OS X and iOS support so called "fat-binaries". Indeed, both systems use the Mach-O file format, which supports packing several objects in a single file. The idea being to compile the same source file targetting multiple architectures, and to glue the generated objects into a single .o file. This way we keep the 1:1 mapping between .cpp files and .o files, while still handling multiple architectures.

Being able to build Skia as a fat binary is very convenient, and I think would help adoption.

Indeed, when using Skia in an app, the 3rd-party developer will want to:
 - Use the app on the Simulator
 - Use the app on an iPhone 4 (armv7)
 - Use the app on a newer 64-bit iPhone

If we pack all those version in a single .a file, it is extremely convenient because the developer can transparently switch from one target to the other without changing anythin in his build process. His environment (likely Xcode) will build FAT binaries anyway, and the right version will be picked up at runtime by the device running the app.

Currently, Skia builds as different .a files. This is annoying when using Skia: one has to either manually re-create fat binaries, or to tweak Xcode in a fashion that's not very fun :-)

 
Project Member Comment 1 by hcm@google.com, Sep 24 2014
Cc: caryclark@google.com jvanverth@google.com
Project Member Comment 2 by hcm@google.com, Sep 24 2014
Labels: -Type-Defect -Priority-Medium Type-Feature Priority-Low
Project Member Comment 3 by hcm@google.com, Sep 24 2014
Labels: Area-Build
Project Member Comment 4 by hcm@google.com, Dec 7 2015
Labels: Hotlist-Fixit
Project Member Comment 5 by hcm@google.com, May 19 2016
Labels: -Priority-Low Priority-Icebox
Owner: ----
I think we have to icebox this, though it'd be nice to get to someday...
Sign in to add a comment