Add gn variable to control compilation of asset catalogs

Desktop / Chromium - Sylvain Defresne [chromium.org] - 13 July 2017 06:45 EDT

As the use of compiled asset catalogs is transparent to code loading resources using -imageNamed:inBundle:compatibleWithCollectionTraits: (or method based on top of it like -imageNamed:), add a gn variable to control whether the resources copied with "imageset" template are copied directly or whether a compiled asset catalog is generated.

Bug: 740301 Change-Id: I0434e4d82a22142da01262def353ddfab16f375e Reviewed-on: https://chromium-review.googlesource.com/565288 Commit-Queue: Sylvain Defresne

052eb92 Add gn variable to control compilation of asset catalogs.
build/config/ios/imageset.gni | 53 +++++++++++++++++++++++++++++++++++++++----
1 file changed, 49 insertions(+), 4 deletions(-)

Upstream: git.chromium.org


  • Share