1# Copyright 2020 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15include($ENV{PW_ROOT}/pw_build/pigweed.cmake) 16 17pw_add_library(pw_blob_store INTERFACE 18 PUBLIC_DEPS 19 pw_bytes 20 pw_containers 21 pw_kvs 22 pw_span 23 pw_status 24 pw_stream 25 PRIVATE_DEPS 26 pw_assert 27 pw_checksum 28 pw_log 29 pw_random 30 pw_string 31) 32 33pw_add_library(pw_blob_store.flat_file_system_entry INTERFACE 34 PUBLIC_DEPS 35 pw_blob_store 36 pw_bytes 37 pw_containers 38 pw_file.flat_file_system 39 pw_kvs 40 pw_span 41 pw_status 42 pw_stream 43 pw_sync.mutex 44 PRIVATE_DEPS 45 pw_assert 46 pw_checksum 47 pw_log 48 pw_random 49 pw_string 50) 51 52pw_add_test(pw_blob_store.blob_store_chunk_write_test 53 SOURCES 54 blob_store_chunk_write_test.cc 55 PRIVATE_DEPS 56 pw_blob_store 57 GROUPS 58 pw_blob_store 59) 60 61pw_add_test(pw_blob_store.blob_store_deferred_write_test 62 SOURCES 63 blob_store_deferred_write_test.cc 64 PRIVATE_DEPS 65 pw_blob_store 66 GROUPS 67 pw_blob_store 68) 69 70pw_add_test(pw_blob_store.flat_file_system_entry_test 71 SOURCES 72 flat_file_system_entry_test.cc 73 PRIVATE_DEPS 74 pw_blob_store 75 pw_blob_store.flat_file_system_entry 76 GROUPS 77 pw_blob_store 78) 79 80