aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Dave MacLachlan <dmaclach@google.com>2016-01-20 19:28:17 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-01-21 10:33:27 +0000
commit631fdd255f4d0c4dba289f9745ce649193afec4d (patch)
treef01d8c029ffdaf8b252bb57d7bb13a01fe1913af /examples
parentd411b53873b0ea13408e85096755320c00a68062 (diff)
Fix up our external sample PrenotCalculator so it uses ios_application instead of just objc_binary.
RELNOTES: -- MOS_MIGRATED_REVID=112601304
Diffstat (limited to 'examples')
-rw-r--r--examples/objc/BUILD14
1 files changed, 5 insertions, 9 deletions
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"],