• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2020 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") {
26  include_dirs = [
27    "//base/security/huks/interfaces/innerkits/huks_standard/main/include",
28    "include",
29  ]
30}
31
32static_library("huks_3.0_test_common") {
33  sources = [
34    "hks_test_aes.c",
35    "hks_test_api_performance.c",
36    "hks_test_cipher.c",
37    "hks_test_common.c",
38    "hks_test_curve25519.c",
39    "hks_test_file_operator.c",
40    "hks_test_log.c",
41    "hks_test_mem.c",
42  ]
43
44  deps = []
45
46  configs += [ ":huks_test_common" ]
47
48  if (ohos_kernel_type == "liteos_m") {
49    cflags = [
50      "-D_CUT_LOG_",
51      "-Wall",
52      "-Werror",
53    ]
54    configs += [ ":hilog_lite_dir" ]
55    deps += [ "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" ]
56  } else {
57    cflags = [
58      "-Wall",
59      "-Werror",
60    ]
61    configs += [ ":hilog_dir" ]
62    deps += [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
63  }
64}
65