Skip to content

Commit

Permalink
fix jni compliation error in java matter controller example
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Apr 13, 2024
1 parent 6de4b88 commit f4ba9e4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/controller/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,24 @@ source_set("android_chip_im_jni") {
ldflags = [ "-Wl,--gc-sections" ]
}

if (matter_enable_java_compilation) {
include_dirs = java_matter_controller_dependent_paths
if (current_os == "mac") {
deps += [ "${chip_root}/src/platform/Darwin" ]
} else {
deps += [ "${chip_root}/src/platform/Linux" ]
}

cflags = [
"-Wno-unknown-pragmas",
"-Wconversion",
]

output_dir = "${root_out_dir}/lib/jni"
} else {
deps += [ "${chip_root}/src/platform/android" ]
output_dir = "${root_out_dir}/lib/jni/${android_abi}"
}
public_configs = [ "${chip_root}/src:includes" ]
}

Expand Down

0 comments on commit f4ba9e4

Please sign in to comment.