| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # Both shared objects, in one directory, under the names jolt's `:jolt/native` |
| 2 | # looks for. `just build` copies this directory's contents where a consumer |
| 3 | # points LD_LIBRARY_PATH. |
| 4 | genrule( |
| 5 | name = "libvidya", |
| 6 | out = "libvidya.so", |
| 7 | cmd = "cp $(location //crates/jolt-vidya:vidya-ffi[shared]) $OUT", |
| 8 | visibility = ["PUBLIC"], |
| 9 | ) |
| 10 | |
| Paint the same tree into a terminal, for the machines with no window a7f6202 nandi 17d ago | 11 | genrule( |
| 12 | name = "libjolttui", |
| 13 | out = "libjolttui.so", |
| 14 | cmd = "cp $(location //crates/jolt-tui:jolt-tui[shared]) $OUT", |
| 15 | visibility = ["PUBLIC"], |
| 16 | ) |
| 17 | |
| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 18 | genrule( |
| 19 | name = "libjoltmoq", |
| 20 | out = "libjoltmoq.so", |
| 21 | cmd = "cp $(location //crates/jolt-moq:jolt-moq[shared]) $OUT", |
| 22 | visibility = ["PUBLIC"], |
| 23 | ) |
| 24 | |
| 25 | filegroup( |
| 26 | name = "libs", |
| Paint the same tree into a terminal, for the machines with no window a7f6202 nandi 17d ago | 27 | srcs = [":libjoltmoq", ":libjolttui", ":libvidya"], |
| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 28 | visibility = ["PUBLIC"], |
| 29 | ) |
| Build libvidya for the phone, and hold the glue that boots it d942053 nandi 19d ago | 30 | |
| Let the media plane cross to the phone, camera and all fd0e21a nandi 18d ago | 31 | # The same two C ABIs, cross-compiled for the phone. The sources and the deps |
| 32 | # are the ones above; only the target configuration moves, which is what |
| 33 | # configured_alias is for — build scripts and proc macros still run on the host. |
| Build libvidya for the phone, and hold the glue that boots it d942053 nandi 19d ago | 34 | configured_alias( |
| 35 | name = "vidya-ffi-android", |
| 36 | actual = "//crates/jolt-vidya:vidya-ffi", |
| 37 | platform = "//platforms:android-arm64", |
| 38 | visibility = ["PUBLIC"], |
| 39 | ) |
| 40 | |
| 41 | genrule( |
| 42 | name = "libvidya-android", |
| 43 | out = "libvidya.so", |
| 44 | cmd = "cp $(location :vidya-ffi-android[shared]) $OUT", |
| 45 | visibility = ["PUBLIC"], |
| 46 | ) |
| Let the media plane cross to the phone, camera and all fd0e21a nandi 18d ago | 47 | |
| 48 | configured_alias( |
| 49 | name = "jolt-moq-android", |
| 50 | actual = "//crates/jolt-moq:jolt-moq", |
| 51 | platform = "//platforms:android-arm64", |
| 52 | visibility = ["PUBLIC"], |
| 53 | ) |
| 54 | |
| 55 | genrule( |
| 56 | name = "libjoltmoq-android", |
| 57 | out = "libjoltmoq.so", |
| 58 | cmd = "cp $(location :jolt-moq-android[shared]) $OUT", |
| 59 | visibility = ["PUBLIC"], |
| 60 | ) |
| 61 | |
| 62 | # Both device objects, for a build that wants them in one go. |
| 63 | filegroup( |
| 64 | name = "libs-android", |
| 65 | srcs = [":libjoltmoq-android", ":libvidya-android"], |
| 66 | visibility = ["PUBLIC"], |
| 67 | ) |