Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 1 | # Copyright (c) 2021 Project CHIP Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://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, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | import("//build_overrides/chip.gni") |
| 16 | |
| 17 | import("${chip_root}/build/chip/tools.gni") |
| 18 | |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 19 | assert(chip_build_tools) |
| 20 | |
| 21 | executable("chip-cert") { |
| 22 | sources = [ |
| 23 | "CertUtils.cpp", |
| 24 | "Cmd_ConvertCert.cpp", |
| 25 | "Cmd_ConvertKey.cpp", |
Evgeny Margolis | c3f1ee5 | 2021-07-05 12:42:57 -0700 | [diff] [blame] | 26 | "Cmd_GenAttCert.cpp", |
Evgeny Margolis | 1d10ef8 | 2021-10-27 00:42:46 -0700 | [diff] [blame] | 27 | "Cmd_GenCD.cpp", |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 28 | "Cmd_GenCert.cpp", |
Evgeny Margolis | 3d33309 | 2022-09-15 07:27:59 -0700 | [diff] [blame] | 29 | "Cmd_PrintCD.cpp", |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 30 | "Cmd_PrintCert.cpp", |
| 31 | "Cmd_ResignCert.cpp", |
Evgeny Margolis | d7bcb65 | 2022-02-17 20:41:46 -0800 | [diff] [blame] | 32 | "Cmd_ValidateAttCert.cpp", |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 33 | "Cmd_ValidateCert.cpp", |
| 34 | "GeneralUtils.cpp", |
| 35 | "KeyUtils.cpp", |
| 36 | "chip-cert.cpp", |
| 37 | "chip-cert.h", |
| 38 | ] |
| 39 | |
Boris Zbarsky | 9c631df | 2023-02-09 12:29:36 -0500 | [diff] [blame] | 40 | if (chip_crypto == "openssl") { |
| 41 | public_configs = [ "${chip_root}/src/crypto:openssl_config" ] |
| 42 | } |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 43 | |
| 44 | cflags = [ "-Wconversion" ] |
| 45 | |
| 46 | public_deps = [ |
| 47 | "${chip_root}/src/credentials", |
| 48 | "${chip_root}/src/crypto", |
| 49 | "${chip_root}/src/lib/asn1", |
| 50 | "${chip_root}/src/lib/core", |
| 51 | "${chip_root}/src/lib/support", |
| 52 | ] |
Evgeny Margolis | 1486eb7 | 2021-07-12 20:18:00 -0700 | [diff] [blame] | 53 | |
| 54 | output_dir = root_out_dir |
Evgeny Margolis | f0e9f91 | 2021-05-13 16:02:38 -0700 | [diff] [blame] | 55 | } |