1- load ("@fbcode_macros//build_defs:build_file_migration.bzl" , "fbcode_target" , "non_fbcode_target" )
2- load ("@fbcode_macros//build_defs:cpp_library.bzl" , "cpp_library" )
3- load ("../../defs.bzl" , "folly_xplat_cxx_library" )
1+ load ("@fbsource//tools/build_defs/dirsync:fb_dirsync_cpp_library.bzl" , "fb_dirsync_cpp_library" )
42
53oncall ("fbcode_entropy_wardens_folly" )
64
7- non_fbcode_target (
8- _kind = folly_xplat_cxx_library ,
9- name = "async_closure_fwd" ,
10- raw_headers = ["AsyncClosure-fwd.h" ],
11- )
12-
13- fbcode_target (
14- _kind = cpp_library ,
5+ fb_dirsync_cpp_library (
156 name = "async_closure_fwd" ,
167 headers = ["AsyncClosure-fwd.h" ],
178)
189
19- ###
20-
21- non_fbcode_target (
22- _kind = folly_xplat_cxx_library ,
23- name = "bind_captures" ,
24- raw_headers = ["BindCaptures.h" ],
25- exported_deps = ["//xplat/folly/lang/bind:bind" ],
26- )
27-
28- fbcode_target (
29- _kind = cpp_library ,
10+ fb_dirsync_cpp_library (
3011 name = "bind_captures" ,
3112 headers = ["BindCaptures.h" ],
3213 exported_deps = ["//folly/lang/bind:bind" ],
3314)
3415
35- ###
36-
37- non_fbcode_target (
38- _kind = folly_xplat_cxx_library ,
39- name = "captures" ,
40- raw_headers = ["Captures.h" ],
41- exported_deps = [
42- ":async_closure_fwd" ,
43- "//xplat/folly:portability" ,
44- "//xplat/folly:traits" ,
45- "//xplat/folly:utility" ,
46- "//xplat/folly/coro/safe/detail:define_movable_deep_const_lref_copyable" ,
47- "//xplat/folly/detail:tuple" ,
48- "//xplat/folly/lang:safe_alias_fwd" ,
49- ],
50- )
51-
52- fbcode_target (
53- _kind = cpp_library ,
16+ fb_dirsync_cpp_library (
5417 name = "captures" ,
5518 headers = ["Captures.h" ],
5619 exported_deps = [
@@ -64,40 +27,15 @@ fbcode_target(
6427 ],
6528)
6629
67- ###
68-
69- non_fbcode_target (
70- _kind = folly_xplat_cxx_library ,
71- name = "async_closure" ,
72- raw_headers = ["AsyncClosure.h" ],
73- exported_deps = [
74- "//xplat/folly/coro/safe/detail:async_closure" ,
75- ],
76- )
77-
78- fbcode_target (
79- _kind = cpp_library ,
30+ fb_dirsync_cpp_library (
8031 name = "async_closure" ,
8132 headers = ["AsyncClosure.h" ],
8233 exported_deps = [
8334 "//folly/coro/safe/detail:async_closure" ,
8435 ],
8536)
8637
87- ###
88-
89- non_fbcode_target (
90- _kind = folly_xplat_cxx_library ,
91- name = "now_task" ,
92- raw_headers = ["NowTask.h" ],
93- exported_deps = [
94- "//xplat/folly/coro:task_wrapper" ,
95- "//xplat/folly/lang:safe_alias_fwd" ,
96- ],
97- )
98-
99- fbcode_target (
100- _kind = cpp_library ,
38+ fb_dirsync_cpp_library (
10139 name = "now_task" ,
10240 headers = ["NowTask.h" ],
10341 exported_deps = [
@@ -106,21 +44,7 @@ fbcode_target(
10644 ],
10745)
10846
109- ###
110-
111- non_fbcode_target (
112- _kind = folly_xplat_cxx_library ,
113- name = "safe_task" ,
114- raw_headers = ["SafeTask.h" ],
115- exported_deps = [
116- ":now_task" ,
117- "//xplat/folly/coro:task_wrapper" ,
118- "//xplat/folly/lang:safe_alias" ,
119- ],
120- )
121-
122- fbcode_target (
123- _kind = cpp_library ,
47+ fb_dirsync_cpp_library (
12448 name = "safe_task" ,
12549 headers = ["SafeTask.h" ],
12650 exported_deps = [
0 commit comments