Skip to content

Commit 594fc77

Browse files
FbsourceTargetsToBuck Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: 1746601514138727150)
Reviewed By: bigfootjon Differential Revision: D104414856
1 parent 9889c7c commit 594fc77

5 files changed

Lines changed: 65 additions & 59 deletions

File tree

backends/vulkan/tools/gpuinfo/BUCK

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
23
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
34
load(
@@ -11,7 +12,7 @@ load(
1112

1213
oncall("executorch")
1314

14-
buck_filegroup(
15+
non_fbcode_target(_kind = buck_filegroup,
1516
name = "gpuinfo_shaders",
1617
srcs = glob([
1718
"glsl/*",
@@ -21,14 +22,14 @@ buck_filegroup(
2122
],
2223
)
2324

24-
vulkan_spv_shader_lib(
25+
non_fbcode_target(_kind = vulkan_spv_shader_lib,
2526
name = "gpuinfo_shader_lib",
2627
spv_filegroups = {
2728
":gpuinfo_shaders": "glsl",
2829
},
2930
)
3031

31-
fb_xplat_cxx_binary(
32+
non_fbcode_target(_kind = fb_xplat_cxx_binary,
3233
name = "vulkan_gpuinfo",
3334
srcs = glob([
3435
"**/*.cpp",
@@ -56,3 +57,55 @@ fb_xplat_cxx_binary(
5657
"//xplat/folly:json",
5758
],
5859
)
60+
61+
# !!!! fbcode/executorch/backends/vulkan/tools/gpuinfo/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
62+
63+
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
64+
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
65+
load(
66+
"@fbsource//tools/build_defs:platform_defs.bzl",
67+
"ANDROID",
68+
)
69+
load(
70+
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
71+
"vulkan_spv_shader_lib",
72+
)
73+
74+
75+
fbcode_target(_kind = buck_filegroup,
76+
name = "gpuinfo_shaders",
77+
srcs = glob([
78+
"glsl/*",
79+
]),
80+
visibility = [
81+
"PUBLIC",
82+
],
83+
)
84+
85+
fbcode_target(_kind = vulkan_spv_shader_lib,
86+
name = "gpuinfo_shader_lib",
87+
is_fbcode = True,
88+
spv_filegroups = {
89+
":gpuinfo_shaders": "glsl",
90+
},
91+
)
92+
93+
fbcode_target(_kind = fb_xplat_cxx_binary,
94+
name = "vulkan_gpuinfo",
95+
srcs = glob([
96+
"**/*.cpp",
97+
]),
98+
headers = glob([
99+
"**/*.h",
100+
]),
101+
header_namespace = "/include",
102+
include_directories = ["/include"],
103+
platforms = ANDROID,
104+
raw_headers = glob([
105+
"**/*.h",
106+
]),
107+
deps = [
108+
":gpuinfo_shader_lib",
109+
"//executorch/backends/vulkan:vulkan_graph_runtime",
110+
],
111+
)

backends/vulkan/tools/gpuinfo/TARGETS

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

34
oncall("executorch")
45

5-
runtime.python_library(
6+
fbcode_target(_kind = runtime.python_library,
67
name = "xnnpack_partitioner_configs",
78
srcs = glob([
89
"*.py",
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

3-
runtime.python_library(
4+
fbcode_target(_kind = runtime.python_library,
45
name = "xnnpack_quantizer",
56
srcs = ["xnnpack_quantizer.py"],
67
deps = [
@@ -11,7 +12,7 @@ runtime.python_library(
1112
],
1213
)
1314

14-
runtime.python_library(
15+
fbcode_target(_kind = runtime.python_library,
1516
name = "xnnpack_quantizer_utils",
1617
srcs = ["xnnpack_quantizer_utils.py"],
1718
deps = [
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

34
oncall("executorch")
45

5-
runtime.python_library(
6+
fbcode_target(_kind = runtime.python_library,
67
name = "xnnpack_recipes",
78
srcs = [
89
"__init__.py",
@@ -15,7 +16,7 @@ runtime.python_library(
1516
],
1617
)
1718

18-
runtime.python_library(
19+
fbcode_target(_kind = runtime.python_library,
1920
name = "xnnpack_recipe_provider",
2021
srcs = [
2122
"xnnpack_recipe_provider.py",
@@ -31,7 +32,7 @@ runtime.python_library(
3132
],
3233
)
3334

34-
runtime.python_library(
35+
fbcode_target(_kind = runtime.python_library,
3536
name = "xnnpack_recipe_types",
3637
srcs = [
3738
"xnnpack_recipe_types.py",

0 commit comments

Comments
 (0)