@@ -90,7 +90,10 @@ template("fuchsia_fidl_library") {
90
90
library_name_json = " ${ meta_json.name } .json"
91
91
92
92
foreach (dep , meta_json .deps ) {
93
- _deps += [ " :$dep " ]
93
+ # TODO(https://fxbug.dev/42172334): Make zx less special.
94
+ if (dep != " zx" ) {
95
+ _deps += [ " :$dep " ]
96
+ }
94
97
}
95
98
96
99
config_name = " config_$target_name "
@@ -106,10 +109,6 @@ template("fuchsia_fidl_library") {
106
109
107
110
inputs = [ invoker .meta ]
108
111
109
- # TODO(fxbug.dev/39388): These are the old coding tables generated by fidlc.
110
- # Switch to the fidlgen_hlcpp coding tables.
111
- outputs = [ " $target_gen_dir /$library_name_slashes /cpp/old_tables.c" ]
112
-
113
112
args = [
114
113
" --fidlc-bin" ,
115
114
rebase_path (" ${ _fuchsia_tools_path } /fidlc" ),
@@ -119,8 +118,6 @@ template("fuchsia_fidl_library") {
119
118
rebase_path (invoker .meta ),
120
119
" --json" ,
121
120
rebase_path (" $target_gen_dir /$library_name_json " ),
122
- " --output-c-tables" ,
123
- rebase_path (" $target_gen_dir /$library_name_slashes /cpp/old_tables.c" ),
124
121
]
125
122
126
123
if (fuchsia_target_api_level != -1 ) {
@@ -130,47 +127,41 @@ template("fuchsia_fidl_library") {
130
127
]
131
128
}
132
129
133
- if (! defined (invoker .only_generate_tables ) ||
134
- ! invoker .only_generate_tables ) {
135
- outputs += [
136
- " $target_gen_dir /$library_name_slashes /cpp/fidl.cc" ,
137
- " $target_gen_dir /$library_name_slashes /cpp/fidl.h" ,
138
- " $target_gen_dir /$library_name_slashes /cpp/fidl_test_base.h" ,
139
- " $target_gen_dir /$library_name_slashes /cpp/tables.c" ,
140
-
141
- " $target_gen_dir /fidl/$library_name /cpp/common_types.cc" ,
142
- " $target_gen_dir /fidl/$library_name /cpp/common_types.h" ,
143
- " $target_gen_dir /fidl/$library_name /cpp/fidl.h" ,
144
- " $target_gen_dir /fidl/$library_name /cpp/hlcpp_conversion.h" ,
145
- " $target_gen_dir /fidl/$library_name /cpp/markers.h" ,
146
- " $target_gen_dir /fidl/$library_name /cpp/natural_messaging.cc" ,
147
- " $target_gen_dir /fidl/$library_name /cpp/natural_messaging.h" ,
148
- " $target_gen_dir /fidl/$library_name /cpp/natural_ostream.cc" ,
149
- " $target_gen_dir /fidl/$library_name /cpp/natural_ostream.h" ,
150
- " $target_gen_dir /fidl/$library_name /cpp/natural_types.cc" ,
151
- " $target_gen_dir /fidl/$library_name /cpp/natural_types.h" ,
152
- " $target_gen_dir /fidl/$library_name /cpp/type_conversions.cc" ,
153
- " $target_gen_dir /fidl/$library_name /cpp/type_conversions.h" ,
154
- " $target_gen_dir /fidl/$library_name /cpp/wire.h" ,
155
- " $target_gen_dir /fidl/$library_name /cpp/wire_messaging.cc" ,
156
- " $target_gen_dir /fidl/$library_name /cpp/wire_messaging.h" ,
157
- " $target_gen_dir /fidl/$library_name /cpp/wire_test_base.h" ,
158
- " $target_gen_dir /fidl/$library_name /cpp/wire_types.cc" ,
159
- " $target_gen_dir /fidl/$library_name /cpp/wire_types.h" ,
160
- ]
130
+ outputs = [
131
+ " $target_gen_dir /$library_name_slashes /cpp/fidl.cc" ,
132
+ " $target_gen_dir /$library_name_slashes /cpp/fidl.h" ,
133
+ " $target_gen_dir /$library_name_slashes /cpp/fidl_test_base.h" ,
134
+ " $target_gen_dir /$library_name_slashes /cpp/tables.c" ,
135
+
136
+ " $target_gen_dir /fidl/$library_name /cpp/common_types.cc" ,
137
+ " $target_gen_dir /fidl/$library_name /cpp/common_types.h" ,
138
+ " $target_gen_dir /fidl/$library_name /cpp/fidl.h" ,
139
+ " $target_gen_dir /fidl/$library_name /cpp/hlcpp_conversion.h" ,
140
+ " $target_gen_dir /fidl/$library_name /cpp/markers.h" ,
141
+ " $target_gen_dir /fidl/$library_name /cpp/natural_messaging.cc" ,
142
+ " $target_gen_dir /fidl/$library_name /cpp/natural_messaging.h" ,
143
+ " $target_gen_dir /fidl/$library_name /cpp/natural_ostream.cc" ,
144
+ " $target_gen_dir /fidl/$library_name /cpp/natural_ostream.h" ,
145
+ " $target_gen_dir /fidl/$library_name /cpp/natural_types.cc" ,
146
+ " $target_gen_dir /fidl/$library_name /cpp/natural_types.h" ,
147
+ " $target_gen_dir /fidl/$library_name /cpp/type_conversions.cc" ,
148
+ " $target_gen_dir /fidl/$library_name /cpp/type_conversions.h" ,
149
+ " $target_gen_dir /fidl/$library_name /cpp/wire.h" ,
150
+ " $target_gen_dir /fidl/$library_name /cpp/wire_messaging.cc" ,
151
+ " $target_gen_dir /fidl/$library_name /cpp/wire_messaging.h" ,
152
+ " $target_gen_dir /fidl/$library_name /cpp/wire_test_base.h" ,
153
+ " $target_gen_dir /fidl/$library_name /cpp/wire_types.cc" ,
154
+ " $target_gen_dir /fidl/$library_name /cpp/wire_types.h" ,
155
+ ]
161
156
162
- args += [
163
- " --fidlgen-bin" ,
164
- rebase_path (" ${ _fuchsia_tools_path } /fidlgen_cpp" ),
165
- " --fidlgen-bin" ,
166
- rebase_path (" ${ _fuchsia_tools_path } /fidlgen_hlcpp" ),
167
- " --fidlgen-output-root" ,
168
- rebase_path (" $target_gen_dir " ),
169
- # TODO(fxbug.dev/39388): Remove after https://fxrev.dev/953989 rolls into flutter.
170
- " --new-tables-path" ,
171
- rebase_path (" $target_gen_dir /$library_name_slashes /cpp/tables.c" ),
172
- ]
173
- }
157
+ args += [
158
+ " --fidlgen-bin" ,
159
+ rebase_path (" ${ _fuchsia_tools_path } /fidlgen_cpp" ),
160
+ " --fidlgen-bin" ,
161
+ rebase_path (" ${ _fuchsia_tools_path } /fidlgen_hlcpp" ),
162
+ " --fidlgen-output-root" ,
163
+ rebase_path (" $target_gen_dir " ),
164
+ ]
174
165
}
175
166
176
167
source_set (target_name ) {
@@ -313,12 +304,11 @@ template("fuchsia_sdk") {
313
304
meta = part_meta_rebased
314
305
}
315
306
} else if (part_type == " fidl_library" ) {
316
- fuchsia_fidl_library (subtarget_name ) {
317
- meta = part_meta_rebased
318
-
319
- # TODO(fxbug.dev/90838): Remove the zx special-case when generic
320
- # option is available.
321
- only_generate_tables = subtarget_name == " zx"
307
+ # TODO(https://fxbug.dev/42172334): Make zx less special.
308
+ if (subtarget_name != " zx" ) {
309
+ fuchsia_fidl_library (subtarget_name ) {
310
+ meta = part_meta_rebased
311
+ }
322
312
}
323
313
} else if (part_type == " cc_prebuilt_library" ) {
324
314
_fuchsia_cc_prebuilt_library (subtarget_name ) {
0 commit comments