Skip to content

Commit 8f09dd4

Browse files
cccclaifacebook-github-bot
authored andcommitted
Add buck file for qnn jni (#10370)
Summary: Pull Request resolved: #10370 #8876 add dependency on the QnnWrapperUtils.hpp, add the buck file here. Reviewed By: kirklandsign Differential Revision: D73452937
1 parent a1dd017 commit 8f09dd4

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

backends/qualcomm/aot/ir/targets.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def define_common_targets():
5757
visibility = ["@EXECUTORCH_CLIENTS"],
5858
deps = [
5959
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
60+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
6061
"//executorch/runtime/backend:interface",
6162
"//executorch/runtime/core:core",
6263
"//executorch/backends/qualcomm/aot/wrappers:wrappers",

backends/qualcomm/aot/python/targets.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def define_common_targets():
3535
"//executorch/backends/qualcomm/runtime:runtime",
3636
"fbsource//third-party/pybind11:pybind11",
3737
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
38+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
3839
],
3940
external_deps = [
4041
"libtorch_python",
@@ -68,6 +69,7 @@ def define_common_targets():
6869
"//executorch/backends/qualcomm/runtime:runtime",
6970
"fbsource//third-party/pybind11:pybind11",
7071
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
72+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
7173
],
7274
external_deps = [
7375
"libtorch_python",
@@ -95,5 +97,6 @@ def define_common_targets():
9597
"//executorch/backends/qualcomm/runtime:runtime",
9698
"fbsource//third-party/pybind11:pybind11",
9799
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
100+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
98101
],
99102
)

backends/qualcomm/aot/wrappers/targets.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def define_common_targets():
2424
visibility = ["@EXECUTORCH_CLIENTS"],
2525
deps = [
2626
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
27+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
2728
"//executorch/runtime/backend:interface",
2829
"//executorch/runtime/core:core",
2930
],

backends/qualcomm/runtime/targets.bzl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def define_common_targets():
2525
visibility = ["@EXECUTORCH_CLIENTS"],
2626
deps = [
2727
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
28+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
2829
"//executorch/runtime/backend:interface",
2930
],
3031
exported_deps = [
@@ -43,14 +44,18 @@ def define_common_targets():
4344
[
4445
"*.cpp",
4546
"backends/*.cpp",
47+
"backends/irbackend/*.cpp",
4648
"backends/htpbackend/*.cpp",
47-
] + (["backends/htpbackend/x86_64/*.cpp"] if include_aot_qnn_lib else ["backends/htpbackend/aarch64/*.cpp"]),
49+
] + (["backends/htpbackend/x86_64/*.cpp"] if include_aot_qnn_lib else ["backends/htpbackend/aarch64/*.cpp"]) + (
50+
["backends/irbackend/x86_64/*.cpp"] if include_aot_qnn_lib else ["backends/irbackend/aarch64/*.cpp"]
51+
),
4852
exclude = ["Logging.cpp"],
4953
),
5054
exported_headers = glob(
5155
[
5256
"*.h",
5357
"backends/*.h",
58+
"backends/irbackend/*.h",
5459
"backends/htpbackend/*.h",
5560
],
5661
exclude = ["Logging.h"],
@@ -65,6 +70,7 @@ def define_common_targets():
6570
}),
6671
deps = [
6772
"fbsource//third-party/qualcomm/qnn/qnn-{0}:api".format(get_qnn_library_version()),
73+
"fbsource//third-party/qualcomm/qnn/qnn-{0}:app_sources".format(get_qnn_library_version()),
6874
":logging",
6975
"//executorch/backends/qualcomm:schema",
7076
"//executorch/backends/qualcomm/aot/ir:qcir_utils",

0 commit comments

Comments
 (0)