1f8af9c48Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2f8af9c48Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3f8af9c48Sopenharmony_ci# you may not use this file except in compliance with the License. 4f8af9c48Sopenharmony_ci# You may obtain a copy of the License at 5f8af9c48Sopenharmony_ci# 6f8af9c48Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7f8af9c48Sopenharmony_ci# 8f8af9c48Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9f8af9c48Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10f8af9c48Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11f8af9c48Sopenharmony_ci# See the License for the specific language governing permissions and 12f8af9c48Sopenharmony_ci# limitations under the License. 13f8af9c48Sopenharmony_ci 14f8af9c48Sopenharmony_ciimport("//build/ohos.gni") 15f8af9c48Sopenharmony_ciimport("//build/ohos_var.gni") 16f8af9c48Sopenharmony_ciimport("//foundation/deviceprofile/device_info_manager/deviceprofile.gni") 17f8af9c48Sopenharmony_ciohos_shared_library("deviceprofileradar") { 18f8af9c48Sopenharmony_ci branch_protector_ret = "pac_ret" 19f8af9c48Sopenharmony_ci 20f8af9c48Sopenharmony_ci cflags = [ 21f8af9c48Sopenharmony_ci "-fstack-protector-strong", 22f8af9c48Sopenharmony_ci "-D_FORTIFY_SOURCE=2", 23f8af9c48Sopenharmony_ci "-O2", 24f8af9c48Sopenharmony_ci ] 25f8af9c48Sopenharmony_ci 26f8af9c48Sopenharmony_ci cflags_cc = cflags 27f8af9c48Sopenharmony_ci 28f8af9c48Sopenharmony_ci sanitize = { 29f8af9c48Sopenharmony_ci boundary_sanitize = true 30f8af9c48Sopenharmony_ci integer_overflow = true 31f8af9c48Sopenharmony_ci ubsan = true 32f8af9c48Sopenharmony_ci cfi = true 33f8af9c48Sopenharmony_ci cfi_cross_dso = true 34f8af9c48Sopenharmony_ci debug = false 35f8af9c48Sopenharmony_ci } 36f8af9c48Sopenharmony_ci 37f8af9c48Sopenharmony_ci include_dirs = [ 38f8af9c48Sopenharmony_ci "include", 39f8af9c48Sopenharmony_ci "${old_device_profile_path}/common/include", 40f8af9c48Sopenharmony_ci ] 41f8af9c48Sopenharmony_ci 42f8af9c48Sopenharmony_ci sources = [ "src/dp_radar_helper.cpp" ] 43f8af9c48Sopenharmony_ci 44f8af9c48Sopenharmony_ci external_deps = [ 45f8af9c48Sopenharmony_ci "c_utils:utils", 46f8af9c48Sopenharmony_ci "hilog:libhilog", 47f8af9c48Sopenharmony_ci "hisysevent:libhisysevent", 48f8af9c48Sopenharmony_ci ] 49f8af9c48Sopenharmony_ci 50f8af9c48Sopenharmony_ci part_name = "device_info_manager" 51f8af9c48Sopenharmony_ci subsystem_name = "deviceprofile" 52f8af9c48Sopenharmony_ci} 53