David Rogers | 2d19502 | 2020-07-16 14:07:47 -0700 | [diff] [blame] | 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 | |
| 15 | # gn-format disable |
| 16 | import("//build_overrides/pigweed.gni") |
| 17 | |
| 18 | import("$dir_pw_build/target_types.gni") |
| 19 | import("$dir_pw_docgen/docs.gni") |
| 20 | import("$dir_pw_unit_test/test.gni") |
| 21 | config("default_config") { |
| 22 | include_dirs = [ "public" ] |
| 23 | } |
| 24 | |
| 25 | pw_source_set("pw_blob_store") { |
| 26 | public_configs = [ ":default_config" ] |
| 27 | public = [ "public/pw_blob_store/blob_store.h" ] |
David Rogers | 9692257 | 2020-08-04 10:24:57 -0700 | [diff] [blame] | 28 | sources = [ "blob_store.cc" ] |
David Rogers | 2d19502 | 2020-07-16 14:07:47 -0700 | [diff] [blame] | 29 | public_deps = [ |
| 30 | dir_pw_kvs, |
| 31 | dir_pw_status, |
| 32 | dir_pw_stream, |
| 33 | ] |
David Rogers | 9692257 | 2020-08-04 10:24:57 -0700 | [diff] [blame] | 34 | deps = [ |
| 35 | dir_pw_assert, |
| 36 | dir_pw_checksum, |
| 37 | dir_pw_log, |
| 38 | ] |
David Rogers | 2d19502 | 2020-07-16 14:07:47 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | pw_test_group("tests") { |
| 42 | tests = [ ":blob_store_test" ] |
| 43 | } |
| 44 | |
| 45 | pw_test("blob_store_test") { |
David Rogers | 9692257 | 2020-08-04 10:24:57 -0700 | [diff] [blame] | 46 | 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 Rogers | 2d19502 | 2020-07-16 14:07:47 -0700 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | pw_doc_group("docs") { |
| 58 | sources = [ "docs.rst" ] |
| 59 | } |