1ac4d6d58Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2ac4d6d58Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3ac4d6d58Sopenharmony_ci# you may not use this file except in compliance with the License. 4ac4d6d58Sopenharmony_ci# You may obtain a copy of the License at 5ac4d6d58Sopenharmony_ci# 6ac4d6d58Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7ac4d6d58Sopenharmony_ci# 8ac4d6d58Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9ac4d6d58Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10ac4d6d58Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11ac4d6d58Sopenharmony_ci# See the License for the specific language governing permissions and 12ac4d6d58Sopenharmony_ci# limitations under the License. 13ac4d6d58Sopenharmony_ci 14ac4d6d58Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 15ac4d6d58Sopenharmony_ciimport("//test/xts/device_attest_lite/build/devattestconfig.gni") 16ac4d6d58Sopenharmony_ci 17ac4d6d58Sopenharmony_cishared_library("kit_device_attest") { 18ac4d6d58Sopenharmony_ci sources = [ "src/native_device_attest.cpp" ] 19ac4d6d58Sopenharmony_ci cflags = [ 20ac4d6d58Sopenharmony_ci "-ftrapv", 21ac4d6d58Sopenharmony_ci "-Werror", 22ac4d6d58Sopenharmony_ci "-Wextra", 23ac4d6d58Sopenharmony_ci "-Wshadow", 24ac4d6d58Sopenharmony_ci "-fstack-protector-all", 25ac4d6d58Sopenharmony_ci "-Wformat=2", 26ac4d6d58Sopenharmony_ci "-Wfloat-equal", 27ac4d6d58Sopenharmony_ci "-Wdate-time", 28ac4d6d58Sopenharmony_ci "-fPIC", 29ac4d6d58Sopenharmony_ci "-pthread", 30ac4d6d58Sopenharmony_ci ] 31ac4d6d58Sopenharmony_ci include_dirs = [ 32ac4d6d58Sopenharmony_ci "include", 33ac4d6d58Sopenharmony_ci "${devattest_path}/common", 34ac4d6d58Sopenharmony_ci "${devattest_path}/common/log", 35ac4d6d58Sopenharmony_ci "${devattest_path}/interfaces/innerkits", 36ac4d6d58Sopenharmony_ci "${devattest_path}/framework/small/include", 37ac4d6d58Sopenharmony_ci "//third_party/bounds_checking_function/include", 38ac4d6d58Sopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base", 39ac4d6d58Sopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi", 40ac4d6d58Sopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async", 41ac4d6d58Sopenharmony_ci ] 42ac4d6d58Sopenharmony_ci deps = [ 43ac4d6d58Sopenharmony_ci "${devattest_path}/framework:devattest_client", 44ac4d6d58Sopenharmony_ci "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 45ac4d6d58Sopenharmony_ci ] 46ac4d6d58Sopenharmony_ci} 47