| load("//build_defs:rules.bzl", "j2kt_jvm_library") | |
| load( | |
| "//transpiler/javatests/com/google/j2cl/readable:readable_example.bzl", | |
| "readable_example", | |
| ) | |
| package( | |
| default_applicable_licenses = ["//:j2cl_license"], | |
| licenses = ["reciprocal"], | |
| ) | |
| # Exclude native sources from j2kt_jvm_library and j2kt_native_library. | |
| j2kt_jvm_library( | |
| name = "readable-j2kt-jvm", | |
| srcs = glob(["*.java"]), | |
| j2kt_j2objc_interop_enabled = False, | |
| deps = ["//third_party:jsinterop-annotations-j2kt-jvm"], | |
| ) | |
| readable_example( | |
| srcs = glob( | |
| [ | |
| "*.java", | |
| "*.js", | |
| ], | |
| ), | |
| # Native JsType does not make sense for j2kt-native. | |
| build_kt_native_readables = False, | |
| deps = ["//third_party:jsinterop-annotations-j2cl"], | |
| ) |