-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathBUCK
More file actions
111 lines (101 loc) · 2.65 KB
/
Copy pathBUCK
File metadata and controls
111 lines (101 loc) · 2.65 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
load(
"@fbsource//tools/build_defs:platform_defs.bzl",
"ANDROID",
)
load(
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
"vulkan_spv_shader_lib",
)
oncall("executorch")
non_fbcode_target(_kind = buck_filegroup,
name = "gpuinfo_shaders",
srcs = glob([
"glsl/*",
]),
visibility = [
"PUBLIC",
],
)
non_fbcode_target(_kind = vulkan_spv_shader_lib,
name = "gpuinfo_shader_lib",
spv_filegroups = {
":gpuinfo_shaders": "glsl",
},
)
non_fbcode_target(_kind = fb_xplat_cxx_binary,
name = "vulkan_gpuinfo",
srcs = glob([
"**/*.cpp",
]),
headers = glob([
"**/*.h",
]),
compiler_flags = select({
"DEFAULT": [
"-Wno-header-hygiene",
],
"ovr_config//compiler:cl": [],
}),
header_namespace = "/include",
include_directories = ["/include"],
platforms = ANDROID,
raw_headers = glob([
"**/*.h",
]),
deps = [
":gpuinfo_shader_lib",
"//arvr/third-party/opencl:headers",
"//arvr/third-party/opencl:runtime",
"//xplat/executorch/backends/vulkan:vulkan_graph_runtime",
"//xplat/folly:json",
],
)
# !!!! fbcode/executorch/backends/vulkan/tools/gpuinfo/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
load(
"@fbsource//tools/build_defs:platform_defs.bzl",
"ANDROID",
)
load(
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
"vulkan_spv_shader_lib",
)
fbcode_target(_kind = buck_filegroup,
name = "gpuinfo_shaders",
srcs = glob([
"glsl/*",
]),
visibility = [
"PUBLIC",
],
)
fbcode_target(_kind = vulkan_spv_shader_lib,
name = "gpuinfo_shader_lib",
is_fbcode = True,
spv_filegroups = {
":gpuinfo_shaders": "glsl",
},
)
fbcode_target(_kind = fb_xplat_cxx_binary,
name = "vulkan_gpuinfo",
srcs = glob([
"**/*.cpp",
]),
headers = glob([
"**/*.h",
]),
header_namespace = "/include",
include_directories = ["/include"],
platforms = ANDROID,
raw_headers = glob([
"**/*.h",
]),
deps = [
":gpuinfo_shader_lib",
"//executorch/backends/vulkan:vulkan_graph_runtime",
],
)