1# 2# Copyright (c) 2022 Huawei Device Co., Ltd. 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 16config("hilog_dir") { 17 include_dirs = 18 [ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/" ] 19} 20config("hilog_lite_dir") { 21 include_dirs = 22 [ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite/" ] 23} 24 25config("huks_test_common_dir") { 26 include_dirs = [ 27 "//base/security/huks/interfaces/inner_api/huks_standard/main/include", 28 "//third_party/bounds_checking_function/include", 29 "include", 30 ] 31} 32 33static_library("huks_test_common") { 34 sources = [ 35 "hks_test_aes.c", 36 "hks_test_api_performance.c", 37 "hks_test_cipher.c", 38 "hks_test_common.c", 39 "hks_test_curve25519.c", 40 "hks_test_file_operator.c", 41 42 #"hks_test_log.c", 43 "hks_test_mem.c", 44 ] 45 46 deps = [] 47 include_dirs = [ 48 "//commonlibrary/c_utils/base/include", 49 "//third_party/bounds_checking_function/include", 50 51 #"unittest/include", 52 "include", 53 ] 54 55 configs += [ ":huks_test_common_dir" ] 56 57 if (defined(ohos_lite)) { 58 if (ohos_kernel_type == "liteos_m") { 59 configs += [ ":hilog_lite_dir" ] 60 deps += [ "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" ] 61 } else if (ohos_kernel_type == "liteos_a") { 62 configs += [ ":hilog_dir" ] 63 deps += [ 64 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 65 "//third_party/bounds_checking_function:libsec_shared", 66 ] 67 } 68 } 69} 70