blob: d126d5ae6b2a10d866e0170c0d443f159311cb90 [file] [log] [blame]
Evgeny Margolisf0e9f912021-05-13 16:02:38 -07001# 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
15import("//build_overrides/chip.gni")
16
17import("${chip_root}/build/chip/tools.gni")
18
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070019assert(chip_build_tools)
20
21executable("chip-cert") {
22 sources = [
23 "CertUtils.cpp",
24 "Cmd_ConvertCert.cpp",
25 "Cmd_ConvertKey.cpp",
Evgeny Margolisc3f1ee52021-07-05 12:42:57 -070026 "Cmd_GenAttCert.cpp",
Evgeny Margolis1d10ef82021-10-27 00:42:46 -070027 "Cmd_GenCD.cpp",
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070028 "Cmd_GenCert.cpp",
Evgeny Margolis3d333092022-09-15 07:27:59 -070029 "Cmd_PrintCD.cpp",
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070030 "Cmd_PrintCert.cpp",
31 "Cmd_ResignCert.cpp",
Evgeny Margolisd7bcb652022-02-17 20:41:46 -080032 "Cmd_ValidateAttCert.cpp",
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070033 "Cmd_ValidateCert.cpp",
34 "GeneralUtils.cpp",
35 "KeyUtils.cpp",
36 "chip-cert.cpp",
37 "chip-cert.h",
38 ]
39
Boris Zbarsky9c631df2023-02-09 12:29:36 -050040 if (chip_crypto == "openssl") {
41 public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
42 }
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070043
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 Margolis1486eb72021-07-12 20:18:00 -070053
54 output_dir = root_out_dir
Evgeny Margolisf0e9f912021-05-13 16:02:38 -070055}