From 4b1999792537270b46d0750ff8b4155b10b0320c Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Mon, 7 Mar 2016 19:52:34 +0000 Subject: Add support for resources to bundling rules. Will need to release before we can remove resources from objcbinary rules. -- MOS_MIGRATED_REVID=116571890 --- examples/objc/BUILD | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/objc/BUILD b/examples/objc/BUILD index 66a8fa0e00..d6c833dffe 100644 --- a/examples/objc/BUILD +++ b/examples/objc/BUILD @@ -15,8 +15,11 @@ ios_application( name = "PrenotCalculator", binary = ":PrenotCalculator_binary", + bundles = [":PrenotCalculatorResources"], + datamodels = glob(["PrenotCalculator/DataModel.xcdatamodeld/**"]), infoplist = "PrenotCalculator/PrenotCalculator-Info.plist", visibility = ["//visibility:public"], + xibs = ["PrenotCalculator/CalculatorViewController.xib"], ) objc_binary( @@ -35,13 +38,8 @@ objc_binary( ["**/*.h"], exclude = ["PrenotCalculator/Expression.h"], ), - bundles = [":PrenotCalculatorResources"], sdk_frameworks = ["CoreData"], - xibs = ["PrenotCalculator/CalculatorViewController.xib"], - deps = [ - ":CoreDataResources", - ":ExpressionPrebuilt", - ], + deps = [":ExpressionPrebuilt"], ) # A prebuilt library that contains multiple architectures. @@ -77,11 +75,6 @@ objc_bundle_library( resources = glob(["PrenotCalculator/Resources/**"]), ) -objc_library( - name = "CoreDataResources", - datamodels = glob(["PrenotCalculator/DataModel.xcdatamodeld/**"]), -) - filegroup( name = "srcs", srcs = glob([ -- cgit v1.2.3