blob: 671f516cd8d3ef98e08a2afdfa801cc98a2ebc14 [file] [edit]
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
package(
default_testonly = True,
default_visibility = ["//visibility:public"],
)
cc_library(
name = "jumbf_creator",
srcs = ["jumbf_creator.cc"],
hdrs = ["jumbf_creator.h"],
deps = [
"//utils:byte_writers",
"@abseil-cpp//absl/strings:string_view",
],
)
cc_library(
name = "app_segment_creator",
srcs = ["app_segment_creator.cc"],
hdrs = ["app_segment_creator.h"],
deps = [
"//utils:byte_readers",
"//utils:byte_writers",
"@abseil-cpp//absl/status",
"@abseil-cpp//absl/status:status_macros",
"@abseil-cpp//absl/status:statusor",
"@abseil-cpp//absl/strings:string_view",
],
)
cc_library(
name = "jpeg_creator",
srcs = ["jpeg_creator.cc"],
hdrs = ["jpeg_creator.h"],
deps = ["//utils:byte_writers"],
)
cc_test(
name = "app_segment_creator_test",
srcs = ["app_segment_creator_test.cc"],
deps = [
":app_segment_creator",
"@abseil-cpp//absl/status",
"@abseil-cpp//absl/status:status_matchers",
"@googletest//:gtest_main",
],
)