|
4 | 4 | _OPERATOR_SRCS = "OPERATOR_SRCS", |
5 | 5 | _SUBGRAPH_SRCS = "SUBGRAPH_SRCS", |
6 | 6 | _TABLE_SRCS = "TABLE_SRCS", |
7 | | - # _MICROKERNEL_DEFS = "MICROKERNEL_DEFS", |
8 | | - # _MICROKERNEL_SRCS = "MICROKERNEL_SRCS", |
9 | 7 | ) |
10 | 8 | load("//backends/xnnpack/third-party/XNNPACK/gen:microkernels.bzl", "prod_srcs_for_arch") |
11 | 9 | load("@fbsource//xplat/executorch/third-party:glob_defs.bzl", "subdir_glob") |
12 | 10 |
|
| 11 | +# To get from XNNPACK:build_srcs.bzl in the future |
13 | 12 | _XNNPACK_SRCS = [ |
14 | 13 | "src/configs/argmaxpool-config.c", |
15 | 14 | "src/configs/avgpool-config.c", |
@@ -45,20 +44,20 @@ def prod_srcs_for_arch_wrapper(arch): |
45 | 44 |
|
46 | 45 | def get_xnnpack_headers(): |
47 | 46 | src_headers = subdir_glob([ |
48 | | - ("xnnpack/src", "**/*.h"), |
49 | | - ("xnnpack/src", "**/*.inc"), |
| 47 | + ("XNNPACK", "src/xnnpack/*.h"), |
| 48 | + ("XNNPACK", "src/xnnpack/**/*.h"), |
| 49 | + ("XNNPACK", "src/**/*.h"), |
50 | 50 | ]) |
51 | 51 | include_headers = subdir_glob([ |
52 | | - ("XNNPACK/include", "*.h"), |
53 | | - ("XNNPACK/include", "*.inc"), |
| 52 | + ("XNNPACK", "include/*.h"), |
54 | 53 | ]) |
55 | | - |
56 | | - return src_headers | include_headers |
| 54 | + ukernel_headers = subdir_glob([ |
| 55 | + ("XNNPACK", "src/**/*.inc"), |
| 56 | + ]) |
| 57 | + return src_headers | include_headers | ukernel_headers |
57 | 58 |
|
58 | 59 | OPERATOR_SRCS = define_xnnpack_build_src(_OPERATOR_SRCS) |
59 | 60 | SUBGRAPH_SRCS = define_xnnpack_build_src(_SUBGRAPH_SRCS) |
60 | 61 | TABLE_SRCS = define_xnnpack_build_src(_TABLE_SRCS) |
61 | 62 | XNNPACK_SRCS = define_xnnpack_build_src(_XNNPACK_SRCS) |
62 | 63 | LOGGING_SRCS = define_xnnpack_build_src(_LOGGING_SRCS) |
63 | | -# MICROKERNEL_DEFS = define_xnnpack_build_src(_MICROKERNEL_DEFS) |
64 | | -# MICROKERNEL_SRCS = define_xnnpack_build_src(_MICROKERNEL_SRCS) |
0 commit comments