Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / crypto / tests / BUILD.gn
1 # Copyright (c) 2020 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/build.gni")
16 import("//build_overrides/chip.gni")
17 import("//build_overrides/nlunit_test.gni")
18
19 import("${chip_root}/build/chip/chip_test_suite.gni")
20
21 chip_test_suite("tests") {
22   output_name = "libChipCryptoTests"
23
24   sources = [
25     "AES_CCM_128_test_vectors.h",
26     "AES_CCM_256_test_vectors.h",
27     "CHIPCryptoPALTest.cpp",
28     "ECDH_P256_test_vectors.h",
29     "HKDF_SHA256_test_vectors.h",
30     "Hash_SHA256_test_vectors.h",
31     "PBKDF2_SHA256_test_vectors.h",
32     "PBKDF2_SHA256_test_vectors.h",
33     "SPAKE2P_FE_MUL_test_vectors.h",
34     "SPAKE2P_FE_RW_test_vectors.h",
35     "SPAKE2P_HMAC_test_vectors.h",
36     "SPAKE2P_POINT_MUL_ADD_test_vectors.h",
37     "SPAKE2P_POINT_MUL_test_vectors.h",
38     "SPAKE2P_POINT_RW_test_vectors.h",
39     "SPAKE2P_POINT_VALID_test_vectors.h",
40     "SPAKE2P_RFC_test_vectors.h",
41     "TestCryptoLayer.h",
42   ]
43
44   cflags = [ "-Wconversion" ]
45
46   public_deps = [
47     "${chip_root}/src/crypto",
48     "${chip_root}/src/lib/core",
49     "${chip_root}/src/platform",
50     "${nlunit_test_root}:nlunit-test",
51   ]
52
53   tests = [ "CHIPCryptoPALTest" ]
54 }