blob: 0a3d3894cf4d8f147dae8d48b860b40f60371de7 [file] [log] [blame]
Damien Martin-Guillerezf88f4d82015-09-25 13:56:55 +00001# Copyright 2015 The Bazel Authors. All rights reserved.
Michael Thvedt583c3562015-08-12 18:09:52 +00002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15java_library(
16 name = "J2ObjcExample-Java",
17 srcs = glob(["src/main/java/**/*.java"]),
18 deps = [
19 "//third_party/java/j2objc:annotations",
20 ],
21)
22
23j2objc_library(
24 name = "J2ObjcExample-J2Objc",
25 entry_classes = ["com.example.myproject.SimpleGreeter"],
26 deps = [":J2ObjcExample-Java"],
27)
28
29objc_binary(
30 name = "J2ObjcExample",
31 srcs = glob([
32 "J2ObjcExample/*.m",
33 ]),
34 hdrs = glob([
35 "J2ObjcExample/*.h",
36 ]),
37 infoplist = "J2ObjcExample/J2ObjcExample-Info.plist",
38 deps = [
39 ":J2ObjcExample-J2Objc",
40 ],
41)
42
43filegroup(
44 name = "srcs",
Damien Martin-Guillerez7d265e02016-07-01 13:33:48 +000045 srcs = glob(["**"]),
Michael Thvedt583c3562015-08-12 18:09:52 +000046 visibility = ["//examples:__pkg__"],
47)