1f8af9c48Sopenharmony_ci# Copyright (c) 2021-2023 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_ci 18f8af9c48Sopenharmony_ciconfig("dp_tools_config") { 19f8af9c48Sopenharmony_ci visibility = [ ":*" ] 20f8af9c48Sopenharmony_ci include_dirs = [ "include" ] 21f8af9c48Sopenharmony_ci} 22f8af9c48Sopenharmony_ci 23f8af9c48Sopenharmony_ciohos_executable("dp") { 24f8af9c48Sopenharmony_ci sanitize = { 25f8af9c48Sopenharmony_ci cfi = true 26f8af9c48Sopenharmony_ci cfi_cross_dso = true 27f8af9c48Sopenharmony_ci debug = false 28f8af9c48Sopenharmony_ci } 29f8af9c48Sopenharmony_ci install_enable = true 30f8af9c48Sopenharmony_ci 31f8af9c48Sopenharmony_ci configs = [ 32f8af9c48Sopenharmony_ci ":dp_tools_config", 33f8af9c48Sopenharmony_ci "${old_device_profile_test}/resource:coverage_flags", 34f8af9c48Sopenharmony_ci ] 35f8af9c48Sopenharmony_ci 36f8af9c48Sopenharmony_ci sources = [ 37f8af9c48Sopenharmony_ci "src/dp_command.cpp", 38f8af9c48Sopenharmony_ci "src/main.cpp", 39f8af9c48Sopenharmony_ci "src/shell_command.cpp", 40f8af9c48Sopenharmony_ci ] 41f8af9c48Sopenharmony_ci 42f8af9c48Sopenharmony_ci deps = [ 43f8af9c48Sopenharmony_ci "${old_device_profile_innerkits}/core:distributed_device_profile_client", 44f8af9c48Sopenharmony_ci ] 45f8af9c48Sopenharmony_ci external_deps = [ 46f8af9c48Sopenharmony_ci "c_utils:utils", 47f8af9c48Sopenharmony_ci "dsoftbus:softbus_client", 48f8af9c48Sopenharmony_ci "eventhandler:libeventhandler", 49f8af9c48Sopenharmony_ci "hilog:libhilog", 50f8af9c48Sopenharmony_ci "ipc:ipc_core", 51f8af9c48Sopenharmony_ci ] 52f8af9c48Sopenharmony_ci 53f8af9c48Sopenharmony_ci part_name = "device_info_manager" 54f8af9c48Sopenharmony_ci subsystem_name = "deviceprofile" 55f8af9c48Sopenharmony_ci} 56