Damien Martin-Guillerez | f88f4d8 | 2015-09-25 13:56:55 +0000 | [diff] [blame] | 1 | # Copyright 2015 The Bazel Authors. All rights reserved. |
Michael Thvedt | 583c356 | 2015-08-12 18:09:52 +0000 | [diff] [blame] | 2 | # |
| 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 | |
| 15 | java_library( |
| 16 | name = "J2ObjcExample-Java", |
| 17 | srcs = glob(["src/main/java/**/*.java"]), |
| 18 | deps = [ |
| 19 | "//third_party/java/j2objc:annotations", |
| 20 | ], |
| 21 | ) |
| 22 | |
| 23 | j2objc_library( |
| 24 | name = "J2ObjcExample-J2Objc", |
| 25 | entry_classes = ["com.example.myproject.SimpleGreeter"], |
| 26 | deps = [":J2ObjcExample-Java"], |
| 27 | ) |
| 28 | |
| 29 | objc_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 | |
| 43 | filegroup( |
| 44 | name = "srcs", |
Damien Martin-Guillerez | 7d265e0 | 2016-07-01 13:33:48 +0000 | [diff] [blame] | 45 | srcs = glob(["**"]), |
Michael Thvedt | 583c356 | 2015-08-12 18:09:52 +0000 | [diff] [blame] | 46 | visibility = ["//examples:__pkg__"], |
| 47 | ) |