Skip to content

Commit

Permalink
Expose kt_kotlinc_options and kt_javac_options (#386)
Browse files Browse the repository at this point in the history
* Expose kotlinc and javac opts

* Add some docs
  • Loading branch information
Bencodes authored Nov 12, 2020
1 parent af99105 commit 99dac49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kotlin/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

kt_kotlinc_options(
name = "default_kotlinc_options",
# Used internally as the rule default. This should be
# considered an implementation detail and not used externally
visibility = ["//visibility:public"],
)

kt_javac_options(
name = "default_javac_options",
# Used internally as the rule default. This should be
# considered an implementation detail and not used externally
visibility = ["//visibility:public"],
)

Expand Down
4 changes: 4 additions & 0 deletions kotlin/kotlin.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ load(
load(
"//kotlin:rules.bzl",
_define_kt_toolchain = "define_kt_toolchain",
_kt_kotlinc_options = "kt_kotlinc_options",
_kt_javac_options = "kt_javac_options",
_kt_android_library = "kt_android_library",
_kt_compiler_plugin = "kt_compiler_plugin",
_kt_js_import = "kt_js_import",
Expand All @@ -32,6 +34,8 @@ load(

kotlin_repositories = _kotlin_repositories
define_kt_toolchain = _define_kt_toolchain
kt_kotlinc_options = _kt_kotlinc_options
kt_javac_options = _kt_javac_options
kt_js_library = _kt_js_library
kt_js_import = _kt_js_import
kt_register_toolchains = _kt_register_toolchains
Expand Down
7 changes: 7 additions & 0 deletions kotlin/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ load(
_define_kt_toolchain = "define_kt_toolchain",
_kt_register_toolchains = "kt_register_toolchains",
)
load(
"//kotlin/internal:opts.bzl",
_kt_kotlinc_options = "kt_kotlinc_options",
_kt_javac_options = "kt_javac_options",
)
load(
"//kotlin/internal/jvm:jvm.bzl",
_kt_compiler_plugin = "kt_compiler_plugin",
Expand All @@ -38,6 +43,8 @@ load(
)

define_kt_toolchain = _define_kt_toolchain
kt_kotlinc_options = _kt_kotlinc_options
kt_javac_options = _kt_javac_options
kt_js_library = _kt_js_library
kt_js_import = _kt_js_import
kt_register_toolchains = _kt_register_toolchains
Expand Down

0 comments on commit 99dac49

Please sign in to comment.