forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
50 lines (47 loc) · 1.7 KB
/
BUCK
File metadata and controls
50 lines (47 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//tools/build_defs:platform_defs.bzl", "IOS", "MACOSX")
load("@fbsource//tools/build_defs/apple:fb_apple_library.bzl", "fb_apple_library")
load("@fbsource//tools/build_defs/apple:fb_apple_resource.bzl", "fb_apple_resource")
load("@fbsource//xplat/executorch/build/fb:clients.bzl", "EXECUTORCH_CLIENTS")
oncall("executorch")
non_fbcode_target(_kind = fb_apple_library,
name = "ExecuTorch",
autoglob_mode = "EXPORT_UNLESS_INTERNAL",
extension_api_only = True,
frameworks = [
"Foundation",
],
preprocessor_flags = [
] if read_config("executorch", "enable_et_log", "true") == "true" else [
"-DET_LOG_ENABLED=0",
],
compiler_flags = [
"-Wno-switch-enum", # @cwt-override FIXME[T153556462]
"-Wno-switch-default",
],
sdks = (IOS, MACOSX),
test_deps = [
":ExecuTorchTestResource",
"//xplat/executorch/kernels/portable:generated_libApple",
],
visibility = EXECUTORCH_CLIENTS,
deps = select({
"ovr_config//os:macos": [
"//xplat/executorch/extension/module:moduleAppleMac",
"//xplat/executorch/extension/tensor:tensorAppleMac",
"//xplat/executorch/runtime/platform:platformAppleMac",
],
"DEFAULT": [
"//xplat/executorch/extension/module:moduleApple",
"//xplat/executorch/extension/tensor:tensorApple",
"//xplat/executorch/runtime/platform:platformApple",
],
}),
)
fb_apple_resource(
name = "ExecuTorchTestResource",
files = [
"ExecuTorch/__tests__/resources/add.pte",
],
visibility = ["PUBLIC"],
)