From 2238edeb4ef0b6807092645bce1aa8da1efd80c2 Mon Sep 17 00:00:00 2001 From: jparachoniak Date: Thu, 9 Nov 2023 17:45:55 -0800 Subject: [PATCH] Adding the ability to create precompilied j2kt_apple_frameworks. PiperOrigin-RevId: 581077469 --- build_defs/internal_do_not_use/j2kt_library.bzl | 5 ++++- build_defs/rules.bzl | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build_defs/internal_do_not_use/j2kt_library.bzl b/build_defs/internal_do_not_use/j2kt_library.bzl index 9d6608cfe8..90ec8ff605 100644 --- a/build_defs/internal_do_not_use/j2kt_library.bzl +++ b/build_defs/internal_do_not_use/j2kt_library.bzl @@ -14,5 +14,8 @@ def j2kt_native_library(**kwargs): def j2kt_apple_framework(**kwargs): pass +def j2kt_precompilied_apple_framework(**kwargs): + pass + def j2kt_minimal_apple_framework(**kwargs): - pass \ No newline at end of file + pass diff --git a/build_defs/rules.bzl b/build_defs/rules.bzl index 4dbc0b3ba2..da9ccb79d8 100644 --- a/build_defs/rules.bzl +++ b/build_defs/rules.bzl @@ -12,7 +12,14 @@ load("//build_defs/internal_do_not_use:j2cl_rta.bzl", _j2cl_rta = "j2cl_rta") load("//build_defs/internal_do_not_use:j2cl_test.bzl", _j2cl_test = "j2cl_test") load("//build_defs/internal_do_not_use:j2wasm_test.bzl", _j2wasm_test = "j2wasm_test") load("//build_defs/internal_do_not_use:j2kt_test.bzl", _j2kt_jvm_test = "j2kt_jvm_test", _j2kt_native_test = "j2kt_native_test") -load("//build_defs/internal_do_not_use:j2kt_library.bzl", _j2kt_apple_framework = "j2kt_apple_framework", _j2kt_jvm_library = "j2kt_jvm_library", _j2kt_minimal_apple_framework = "j2kt_minimal_apple_framework", _j2kt_native_library = "j2kt_native_library") +load( + "//build_defs/internal_do_not_use:j2kt_library.bzl", + _j2kt_apple_framework = "j2kt_apple_framework", + _j2kt_jvm_library = "j2kt_jvm_library", + _j2kt_minimal_apple_framework = "j2kt_minimal_apple_framework", + _j2kt_native_library = "j2kt_native_library", + _j2kt_precompilied_apple_framework = "j2kt_precompilied_apple_framework", +) load("//build_defs/internal_do_not_use:j2kt_import.bzl", _j2kt_jvm_import = "j2kt_jvm_import", _j2kt_native_import = "j2kt_native_import") load("//build_defs/internal_do_not_use:gen_j2cl_tests.bzl", _gen_j2cl_tests = "gen_j2cl_tests") load("//build_defs/internal_do_not_use:gen_j2kt_tests.bzl", _gen_j2kt_native_tests = "gen_j2kt_native_tests") @@ -49,6 +56,8 @@ gen_j2kt_native_tests = _gen_j2kt_native_tests j2kt_apple_framework = _j2kt_apple_framework +j2kt_precompiled_apple_framework = _j2kt_precompilied_apple_framework + j2kt_minimal_apple_framework = _j2kt_minimal_apple_framework j2kt_native_library = _j2kt_native_library