From 631fdd255f4d0c4dba289f9745ce649193afec4d Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Wed, 20 Jan 2016 19:28:17 +0000 Subject: Fix up our external sample PrenotCalculator so it uses ios_application instead of just objc_binary. RELNOTES: -- MOS_MIGRATED_REVID=112601304 --- examples/objc/BUILD | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/objc/BUILD b/examples/objc/BUILD index 3aeee3918f..e7e4bfb233 100644 --- a/examples/objc/BUILD +++ b/examples/objc/BUILD @@ -12,20 +12,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -objc_binary( +ios_application( name = "PrenotCalculator", - srcs = [ - "PrenotCalculator/main.m", - ], + binary = ":PrenotCalculator_binary", infoplist = "PrenotCalculator/PrenotCalculator-Info.plist", visibility = ["//visibility:public"], - deps = [ - ":PrenotCalculatorClasses", - ], ) -objc_library( - name = "PrenotCalculatorClasses", +objc_binary( + name = "PrenotCalculator_binary", srcs = [ "PrenotCalculator/AppDelegate.m", "PrenotCalculator/CalculatedValues.m", @@ -34,6 +29,7 @@ objc_library( "PrenotCalculator/Equation.m", "PrenotCalculator/Literal.m", "PrenotCalculator/ValuesViewController.m", + "PrenotCalculator/main.m", ], hdrs = glob( ["**/*.h"], -- cgit v1.2.3