Skip to content

Commit

Permalink
[WASM] Enable wasm targets for in integration_library.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718561350
  • Loading branch information
gkdn authored and copybara-github committed Jan 22, 2025
1 parent 98ecc6b commit 6e5797a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions build_defs/internal_do_not_use/j2cl_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ _J2WASM_PACKAGES = [
"jre",
"samples",
"third_party",
"transpiler",
"third_party/java_src/jsr330_inject",
"third_party/java_src/qo_metafile",
"third_party/java_src/qo_ole",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ def integration_test(
entry_points = ["gen.test.Harness"],
)

def integration_library(name, srcs = [], deps = [], exports = [], enable_nullability = False, **kwargs):
def integration_library(
name,
srcs = [],
deps = [],
exports = [],
enable_wasm = True,
enable_nullability = False, **kwargs):
default_deps = [
"//jre/java:javaemul_internal_annotations",
"//third_party:jsinterop-annotations",
Expand All @@ -135,6 +141,7 @@ def integration_library(name, srcs = [], deps = [], exports = [], enable_nullabi
exports = [to_parallel_target(e, _to_j2cl_name) for e in exports],
javacopts = JAVAC_FLAGS + kwargs.pop("javacopts", []),
generate_build_test = False,
generate_j2wasm_library = None if enable_wasm else False,
experimental_enable_jspecify_support_do_not_enable_without_jspecify_static_checking_or_you_might_cause_an_outage = enable_nullability,
**kwargs
)
Expand Down

0 comments on commit 6e5797a

Please sign in to comment.