1*3a22c0a3SAlix# Copyright 2022 Google LLC. All rights reserved. 2*3a22c0a3SAlix# 3*3a22c0a3SAlix# Licensed under the Apache License, Version 2.0 (the License); 4*3a22c0a3SAlix# you may not use this file except in compliance with the License. 5*3a22c0a3SAlix# You may obtain a copy of the License at 6*3a22c0a3SAlix# 7*3a22c0a3SAlix# http://www.apache.org/licenses/LICENSE-2.0 8*3a22c0a3SAlix# 9*3a22c0a3SAlix# Unless required by applicable law or agreed to in writing, software 10*3a22c0a3SAlix# distributed under the License is distributed on an "AS IS" BASIS, 11*3a22c0a3SAlix# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*3a22c0a3SAlix# See the License for the specific language governing permissions and 13*3a22c0a3SAlix# limitations under the License. 14*3a22c0a3SAlix 15*3a22c0a3SAlixload("//kotlin:rules.bzl", "kt_jvm_library", "kt_jvm_test") 16*3a22c0a3SAlix 17*3a22c0a3SAlixlicenses(["notice"]) 18*3a22c0a3SAlix 19*3a22c0a3SAlixkt_jvm_library( 20*3a22c0a3SAlix name = "Bar", 21*3a22c0a3SAlix srcs = ["Bar.kt"], 22*3a22c0a3SAlix) 23*3a22c0a3SAlix 24*3a22c0a3SAlixkt_jvm_library( 25*3a22c0a3SAlix name = "FooBar", 26*3a22c0a3SAlix srcs = ["FooBar.java"], 27*3a22c0a3SAlix deps = [":Bar"], 28*3a22c0a3SAlix) 29*3a22c0a3SAlix 30*3a22c0a3SAlixjava_library( 31*3a22c0a3SAlix name = "Qux", 32*3a22c0a3SAlix srcs = ["Qux.java"], 33*3a22c0a3SAlix) 34*3a22c0a3SAlix 35*3a22c0a3SAlixkt_jvm_library( 36*3a22c0a3SAlix name = "BazQux", 37*3a22c0a3SAlix srcs = ["BazQux.kt"], 38*3a22c0a3SAlix deps = [":Qux"], 39*3a22c0a3SAlix) 40*3a22c0a3SAlix 41*3a22c0a3SAlixkt_jvm_library( 42*3a22c0a3SAlix name = "QuuxCorgeGrault", 43*3a22c0a3SAlix srcs = [ 44*3a22c0a3SAlix "Corge.java", 45*3a22c0a3SAlix "QuuxCorge.kt", 46*3a22c0a3SAlix "QuuxCorgeGrault.java", 47*3a22c0a3SAlix ], 48*3a22c0a3SAlix) 49*3a22c0a3SAlix 50*3a22c0a3SAlixkt_jvm_test( 51*3a22c0a3SAlix name = "Main", 52*3a22c0a3SAlix srcs = ["Main.kt"], 53*3a22c0a3SAlix main_class = "metasyntactic.Main", 54*3a22c0a3SAlix tags = ["darwin_x86_64_compatible"], 55*3a22c0a3SAlix deps = [ 56*3a22c0a3SAlix ":BazQux", 57*3a22c0a3SAlix ":FooBar", 58*3a22c0a3SAlix ":QuuxCorgeGrault", 59*3a22c0a3SAlix ], 60*3a22c0a3SAlix) 61