• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//base/security/huks/build/config.gni")
15import("//base/security/huks/huks.gni")
16import("//build/ohos.gni")
17
18config("huks_config") {
19  include_dirs = [ "include" ]
20}
21
22if (os_level == "standard") {
23  ohos_static_library("libhuks_utils_list_static") {
24    subsystem_name = "security"
25    part_name = "huks"
26    public_configs = [ ":huks_config" ]
27
28    sources = [ "hks_double_list.c" ]
29    cflags = [
30      "-Wall",
31      "-Werror",
32    ]
33
34    complete_static_lib = true
35
36    sanitize = {
37      integer_overflow = true
38      cfi = true
39      debug = false
40      cfi_cross_dso = true
41    }
42
43    configs = [
44      "//base/security/huks/frameworks/config/build:l2_standard_common_config",
45    ]
46    external_deps = [ "c_utils:utils" ]
47  }
48} else {
49  ohos_static_library("libhuks_utils_list_static") {
50    public_configs = [ ":huks_config" ]
51    configs = [
52      "//base/security/huks/frameworks/config/build:l1_small_common_config",
53    ]
54
55    sources = [ "hks_double_list.c" ]
56
57    complete_static_lib = true
58  }
59}
60