Commit f3be67f
fbcode_builder: per-package --extra-cmake-defines for GHA generator
Summary:
Add --package-extra-cmake-defines PACKAGE=JSON to generate-github-actions
so a generated workflow can pin defines to a single dependency's build
step (e.g. THRIFT_SERIALIZATION_ONLY=ON only for fbthrift) without
applying them to every other dep. Multiple uses accumulate; the value
must be a JSON object.
Also reorder the cmake builder so caller-supplied extra_cmake_defines
apply *after* the --shared-libs defaults. Without this, a per-package
override cannot turn BUILD_SHARED_LIBS back off for a specific
dependency in a mostly-shared build, which is the main reason the
per-package flag exists.
Reviewed By: bigfootjon
Differential Revision: D103767906
fbshipit-source-id: da61d3c30b8e6f7111c75de9fc48d975b1e954c91 parent 18b0b2d commit f3be67f
2 files changed
Lines changed: 59 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1261 | 1265 | | |
1262 | 1266 | | |
1263 | 1267 | | |
| |||
1396 | 1400 | | |
1397 | 1401 | | |
1398 | 1402 | | |
1399 | | - | |
| 1403 | + | |
1400 | 1404 | | |
1401 | 1405 | | |
1402 | 1406 | | |
| |||
1437 | 1441 | | |
1438 | 1442 | | |
1439 | 1443 | | |
1440 | | - | |
| 1444 | + | |
1441 | 1445 | | |
1442 | 1446 | | |
1443 | 1447 | | |
| |||
1569 | 1573 | | |
1570 | 1574 | | |
1571 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1572 | 1615 | | |
1573 | 1616 | | |
1574 | 1617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
786 | | - | |
787 | 785 | | |
788 | 786 | | |
789 | 787 | | |
| |||
799 | 797 | | |
800 | 798 | | |
801 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
802 | 808 | | |
803 | 809 | | |
804 | 810 | | |
| |||
0 commit comments