Commit c0cf097
Support frameworks in cxx_library for apple_library swap
Summary:
Move framework search path preprocessor creation from apple_library and apple_binary into cxx_library_parameterized and cxx_executable respectively. This eliminates duplication when apple_library calls cxx_library_parameterized (or apple_binary calls cxx_executable), and enables cxx_library/cxx_binary/cxx_test to properly handle the frameworks attribute when used as replacements for apple rules in fb_xplat_cxx_library.
Changes:
- cxx_library.bzl: Add framework search path flags (-F) to both own_preprocessors and own_exported_preprocessors when frameworks attribute is set
- cxx_executable.bzl: Add framework search path flags to own_preprocessors for cxx_binary/cxx_test support
- apple_library.bzl: Remove duplicate framework_search_path_pre creation (now handled by cxx_library_parameterized)
- apple_binary.bzl: Remove duplicate framework_search_path_pre creation (now handled by cxx_executable)
- Add integration tests: build tests for apple_library, cxx_library, and cxx_binary with frameworks; compilation database test verifying -F flags are present and not duplicated
This unblocks D90707637 which swaps apple_library -> cxx_library in fb_xplat_cxx_library.
Reviewed By: milend
Differential Revision: D91696908
fbshipit-source-id: b938cf1a3a2e203cac5b45efd76fa486da84cd2e1 parent fb9dca9 commit c0cf097
File tree
4 files changed
+32
-17
lines changed- prelude
- apple
- cxx
4 files changed
+32
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
| |||
129 | 124 | | |
130 | 125 | | |
131 | 126 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 127 | | |
137 | 128 | | |
138 | 129 | | |
| |||
174 | 165 | | |
175 | 166 | | |
176 | 167 | | |
177 | | - | |
| 168 | + | |
178 | 169 | | |
179 | 170 | | |
180 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 447 | | |
453 | 448 | | |
454 | 449 | | |
| |||
528 | 523 | | |
529 | 524 | | |
530 | 525 | | |
531 | | - | |
| 526 | + | |
532 | 527 | | |
533 | 528 | | |
534 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
| 201 | + | |
199 | 202 | | |
200 | 203 | | |
201 | 204 | | |
| |||
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
250 | 263 | | |
251 | 264 | | |
252 | 265 | | |
253 | 266 | | |
254 | 267 | | |
255 | 268 | | |
256 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
257 | 273 | | |
258 | 274 | | |
259 | 275 | | |
260 | 276 | | |
261 | 277 | | |
262 | | - | |
| 278 | + | |
263 | 279 | | |
264 | 280 | | |
265 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| 237 | + | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
| |||
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
470 | 483 | | |
471 | 484 | | |
472 | 485 | | |
| |||
0 commit comments