15bbf6e98Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
25bbf6e98Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35bbf6e98Sopenharmony_ci# you may not use this file except in compliance with the License.
45bbf6e98Sopenharmony_ci# You may obtain a copy of the License at
55bbf6e98Sopenharmony_ci#
65bbf6e98Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75bbf6e98Sopenharmony_ci#
85bbf6e98Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95bbf6e98Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105bbf6e98Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115bbf6e98Sopenharmony_ci# See the License for the specific language governing permissions and
125bbf6e98Sopenharmony_ci# limitations under the License.
135bbf6e98Sopenharmony_ci
145bbf6e98Sopenharmony_ciimport("//build/ohos.gni")
155bbf6e98Sopenharmony_ciimport("//test/xts/device_attest/build/devattestconfig.gni")
165bbf6e98Sopenharmony_ci
175bbf6e98Sopenharmony_ciconfig("devattest_kit_config") {
185bbf6e98Sopenharmony_ci  include_dirs = [
195bbf6e98Sopenharmony_ci    "include",
205bbf6e98Sopenharmony_ci    "${devattest_path}/common",
215bbf6e98Sopenharmony_ci    "${devattest_path}/common/log",
225bbf6e98Sopenharmony_ci    "${devattest_path}/interfaces/innerkits/native_cpp/include",
235bbf6e98Sopenharmony_ci  ]
245bbf6e98Sopenharmony_ci}
255bbf6e98Sopenharmony_ci
265bbf6e98Sopenharmony_ciohos_shared_library("deviceattest") {
275bbf6e98Sopenharmony_ci  sanitize = {
285bbf6e98Sopenharmony_ci    cfi = true
295bbf6e98Sopenharmony_ci    cfi_cross_dso = true
305bbf6e98Sopenharmony_ci    debug = false
315bbf6e98Sopenharmony_ci  }
325bbf6e98Sopenharmony_ci
335bbf6e98Sopenharmony_ci  branch_protector_ret = "pac_ret"
345bbf6e98Sopenharmony_ci
355bbf6e98Sopenharmony_ci  include_dirs = []
365bbf6e98Sopenharmony_ci  configs = [ ":devattest_kit_config" ]
375bbf6e98Sopenharmony_ci  public_configs = [ ":devattest_kit_config" ]
385bbf6e98Sopenharmony_ci  sources = [
395bbf6e98Sopenharmony_ci    "src/devattest_napi.cpp",
405bbf6e98Sopenharmony_ci    "src/devattest_napi_error.cpp",
415bbf6e98Sopenharmony_ci  ]
425bbf6e98Sopenharmony_ci  deps = [ "${devattest_path}/interfaces/innerkits/native_cpp:devattest_sdk" ]
435bbf6e98Sopenharmony_ci  external_deps = [
445bbf6e98Sopenharmony_ci    "c_utils:utils",
455bbf6e98Sopenharmony_ci    "hilog:libhilog",
465bbf6e98Sopenharmony_ci    "napi:ace_napi",
475bbf6e98Sopenharmony_ci  ]
485bbf6e98Sopenharmony_ci
495bbf6e98Sopenharmony_ci  relative_install_dir = "module"
505bbf6e98Sopenharmony_ci  subsystem_name = "xts"
515bbf6e98Sopenharmony_ci  part_name = "device_attest"
525bbf6e98Sopenharmony_ci}
53