BUILD.gn 1.9 KB
Newer Older
H
hujixiang1 已提交
1
#
H
huks  
hu-jixiang1 已提交
2
# Copyright (c) 2022 Huawei Device Co., Ltd.
H
hujixiang1 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

config("hilog_dir") {
  include_dirs =
      [ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/" ]
}
config("hilog_lite_dir") {
  include_dirs =
      [ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite/" ]
}

A
aaronwangjun 已提交
25
config("huks_test_common_dir") {
H
hujixiang1 已提交
26 27
  include_dirs = [
    "//base/security/huks/interfaces/innerkits/huks_standard/main/include",
A
aaronwangjun 已提交
28
    "//third_party/bounds_checking_function/include",
H
hujixiang1 已提交
29 30 31 32
    "include",
  ]
}

A
aaronwangjun 已提交
33
static_library("huks_test_common") {
H
hujixiang1 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
  sources = [
    "hks_test_aes.c",
    "hks_test_api_performance.c",
    "hks_test_cipher.c",
    "hks_test_common.c",
    "hks_test_curve25519.c",
    "hks_test_file_operator.c",

    #"hks_test_log.c",
    "hks_test_mem.c",
  ]

  deps = []

  include_dirs = [
49
    "//commonlibrary/c_utils/base/include",
H
hujixiang1 已提交
50 51 52 53 54 55
    "//third_party/bounds_checking_function/include",

    #"unittest/include",
    "include",
  ]

A
aaronwangjun 已提交
56
  configs += [ ":huks_test_common_dir" ]
H
hujixiang1 已提交
57 58 59 60 61 62 63

  if (defined(ohos_lite)) {
    if (ohos_kernel_type == "liteos_m") {
      configs += [ ":hilog_lite_dir" ]
      deps += [ "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" ]
    } else if (ohos_kernel_type == "liteos_a") {
      configs += [ ":hilog_dir" ]
A
aaronwangjun 已提交
64 65 66 67
      deps += [
        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
        "//third_party/bounds_checking_function:libsec_shared",
      ]
H
hujixiang1 已提交
68 69 70
    }
  }
}