blob: 4576ff48ba8fdb444cad3eeaa4fe9b530f696d06 [file] [log] [blame]
David Rogers2d195022020-07-16 14:07:47 -07001# 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
15# gn-format disable
16import("//build_overrides/pigweed.gni")
17
18import("$dir_pw_build/target_types.gni")
19import("$dir_pw_docgen/docs.gni")
20import("$dir_pw_unit_test/test.gni")
21config("default_config") {
22 include_dirs = [ "public" ]
23}
24
25pw_source_set("pw_blob_store") {
26 public_configs = [ ":default_config" ]
27 public = [ "public/pw_blob_store/blob_store.h" ]
David Rogers96922572020-08-04 10:24:57 -070028 sources = [ "blob_store.cc" ]
David Rogers2d195022020-07-16 14:07:47 -070029 public_deps = [
30 dir_pw_kvs,
31 dir_pw_status,
32 dir_pw_stream,
33 ]
David Rogers96922572020-08-04 10:24:57 -070034 deps = [
35 dir_pw_assert,
36 dir_pw_checksum,
37 dir_pw_log,
38 ]
David Rogers2d195022020-07-16 14:07:47 -070039}
40
41pw_test_group("tests") {
42 tests = [ ":blob_store_test" ]
43}
44
45pw_test("blob_store_test") {
David Rogers96922572020-08-04 10:24:57 -070046 deps = [
47 ":pw_blob_store",
48 "$dir_pw_kvs:crc16",
49 "$dir_pw_kvs:fake_flash",
50 "$dir_pw_kvs:fake_flash_test_key_value_store",
51 dir_pw_log,
52 dir_pw_random,
53 ]
54 sources = [ "blob_store_test.cc" ]
David Rogers2d195022020-07-16 14:07:47 -070055}
56
57pw_doc_group("docs") {
58 sources = [ "docs.rst" ]
59}