James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 1 | load("@org_frc971//tools/build_rules:select.bzl", "compiler_select") |
| 2 | |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 3 | package(default_visibility = ["//visibility:public"]) |
| 4 | |
| 5 | cc_binary( |
| 6 | name = "image_streamer", |
| 7 | srcs = ["image_streamer.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 8 | target_compatible_with = ["@platforms//os:linux"], |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 9 | deps = [ |
Tyler Chatow | e024145 | 2019-03-08 21:07:50 -0800 | [diff] [blame] | 10 | ":flip_image", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 11 | "//aos:init", |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 12 | "//aos/logging", |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 13 | "//aos/vision/blob:codec", |
| 14 | "//aos/vision/events:epoll_events", |
| 15 | "//aos/vision/events:socket_types", |
| 16 | "//aos/vision/events:udp", |
| 17 | "//aos/vision/image:image_stream", |
| 18 | "//aos/vision/image:reader", |
| 19 | "//y2019:vision_proto", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 20 | "@com_google_absl//absl/flags:flag", |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 21 | ], |
| 22 | ) |
Tyler Chatow | e024145 | 2019-03-08 21:07:50 -0800 | [diff] [blame] | 23 | |
| 24 | cc_library( |
| 25 | name = "flip_image", |
| 26 | srcs = ["flip_image.cc"], |
| 27 | hdrs = ["flip_image.h"], |
| 28 | copts = [ |
| 29 | "-Wno-format-nonliteral", |
| 30 | "-Wno-cast-align", |
| 31 | "-Wno-cast-qual", |
| 32 | "-Wno-error=type-limits", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 33 | ] + compiler_select({ |
| 34 | "clang": [], |
| 35 | "gcc": [ |
| 36 | "-Wno-misleading-indentation", |
| 37 | "-Wno-char-subscripts", |
| 38 | "-Wno-class-memaccess", |
| 39 | ], |
| 40 | }), |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 41 | target_compatible_with = ["@platforms//os:linux"], |
Tyler Chatow | e024145 | 2019-03-08 21:07:50 -0800 | [diff] [blame] | 42 | deps = [ |
| 43 | "//third_party/cimg:CImg", |
| 44 | "//third_party/libjpeg", |
| 45 | ], |
| 46 | ) |