BUILD.gn 1.8 KB
Newer Older
H
hujixiang1 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#
# Copyright (c) 2020 Huawei Device Co., Ltd.
# 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 28 29 30 31
  include_dirs = [
    "//base/security/huks/interfaces/innerkits/huks_standard/main/include",
    "include",
  ]
}

A
aaronwangjun 已提交
32
static_library("huks_test_common") {
H
hujixiang1 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  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 = [
    "//utils/native/base/include",
    "//third_party/bounds_checking_function/include",

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

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

  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" ]
      deps += [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
    }
  }
}