Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 1 | filegroup( |
| 2 | name = "sysroot_files", |
| 3 | srcs = glob( |
| 4 | # TODO(austin): Only include the base files here. Need to figure out what those are. |
| 5 | # TODO(austin): Generate that list when building the rootfs? |
| 6 | include = [ |
| 7 | "include/**", |
| 8 | "lib/**", |
| 9 | "lib64/**", |
| 10 | "usr/include/**", |
| 11 | "usr/lib/**", |
| 12 | "usr/bin/**", |
| 13 | "usr/lib64/**", |
| 14 | ], |
| 15 | exclude = [ |
| 16 | "usr/share/**", |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 17 | "usr/bin/X11", |
| 18 | ], |
| 19 | ), |
| 20 | visibility = ["//visibility:public"], |
| 21 | ) |
| 22 | |
| 23 | cc_library( |
| 24 | name = "nppi", |
| 25 | srcs = [ |
| 26 | "usr/lib/x86_64-linux-gnu/libnppc.so.11", |
| 27 | "usr/lib/x86_64-linux-gnu/libnppif.so.11", |
| 28 | ], |
| 29 | hdrs = glob( |
| 30 | include = ["usr/include/nppi*.h"], |
| 31 | ), |
| 32 | visibility = ["//visibility:public"], |
| 33 | ) |
| 34 | |
| 35 | cc_library( |
| 36 | name = "cudart", |
Austin Schuh | bc79c02 | 2024-08-17 16:11:46 -0700 | [diff] [blame^] | 37 | additional_linker_inputs = [ |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 38 | "usr/lib/x86_64-linux-gnu/libcuda.so.1", |
| 39 | "usr/lib/x86_64-linux-gnu/libcudart.so.11.0", |
| 40 | ], |
Austin Schuh | bc79c02 | 2024-08-17 16:11:46 -0700 | [diff] [blame^] | 41 | linkopts = [ |
| 42 | "external/amd64_debian_sysroot/usr/lib/x86_64-linux-gnu/libcuda.so.1", |
| 43 | "external/amd64_debian_sysroot/usr/lib/x86_64-linux-gnu/libcudart.so.11.0", |
| 44 | ], |
Austin Schuh | 0bd410a | 2023-11-05 12:38:12 -0800 | [diff] [blame] | 45 | visibility = ["//visibility:public"], |
| 46 | ) |
| 47 | |
| 48 | # TODO(austin): lzma, gstreamer, opencv |