Yi Chou | fc39c8b | 2021-10-14 19:48:25 +0800 | [diff] [blame] | 1 | # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//common-mk/pkg_config.gni") |
| 6 | |
| 7 | group("all") { |
| 8 | deps = [ ":libpinweaver" ] |
| 9 | } |
| 10 | |
| 11 | config("target_defaults") { |
| 12 | include_dirs = [ |
| 13 | ".", |
| 14 | "eal/tpm_storage", |
| 15 | ] |
| 16 | } |
| 17 | |
| 18 | static_library("libpinweaver") { |
| 19 | sources = [ "pinweaver.c" ] |
| 20 | configs -= [ "//common-mk:use_thin_archive" ] |
| 21 | configs += [ |
| 22 | "//common-mk:nouse_thin_archive", |
| 23 | ":target_defaults", |
| 24 | ] |
Howard Yang | aa7a897 | 2022-07-26 16:39:36 +0800 | [diff] [blame^] | 25 | defines = [ |
| 26 | "BIOMETRICS_DEV=${use.biometrics_dev}", |
| 27 | ] |
Yi Chou | fc39c8b | 2021-10-14 19:48:25 +0800 | [diff] [blame] | 28 | } |