1cc290419Sopenharmony_ci# Copyright (C) 2023 Huawei Device Co., Ltd. 2cc290419Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3cc290419Sopenharmony_ci# you may not use this file except in compliance with the License. 4cc290419Sopenharmony_ci# You may obtain a copy of the License at 5cc290419Sopenharmony_ci# 6cc290419Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7cc290419Sopenharmony_ci# 8cc290419Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9cc290419Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10cc290419Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11cc290419Sopenharmony_ci# See the License for the specific language governing permissions and 12cc290419Sopenharmony_ci# limitations under the License. 13cc290419Sopenharmony_ci 14cc290419Sopenharmony_ciimport("//build/ohos.gni") 15cc290419Sopenharmony_ciimport("//developtools/hdc/hdc.gni") 16cc290419Sopenharmony_ci 17cc290419Sopenharmony_ciohos_executable("exec_hdcd_user_permit") { 18cc290419Sopenharmony_ci if (support_hdcd_user_permit) { 19cc290419Sopenharmony_ci sources = [ 20cc290419Sopenharmony_ci "src/connection.cpp", 21cc290419Sopenharmony_ci "src/main.cpp", 22cc290419Sopenharmony_ci ] 23cc290419Sopenharmony_ci deps = [] 24cc290419Sopenharmony_ci external_deps = [ 25cc290419Sopenharmony_ci "ability_base:want", 26cc290419Sopenharmony_ci "ability_base:zuri", 27cc290419Sopenharmony_ci "ability_runtime:ability_connect_callback_stub", 28cc290419Sopenharmony_ci "ability_runtime:extension_manager", 29cc290419Sopenharmony_ci "c_utils:utils", 30cc290419Sopenharmony_ci "init:libbegetutil", 31cc290419Sopenharmony_ci "ipc:ipc_core", 32cc290419Sopenharmony_ci "window_manager:libwsutils", 33cc290419Sopenharmony_ci ] 34cc290419Sopenharmony_ci output_name = "hdcd_user_permit" 35cc290419Sopenharmony_ci subsystem_name = "developtools" 36cc290419Sopenharmony_ci part_name = "hdc" 37cc290419Sopenharmony_ci } 38cc290419Sopenharmony_ci} 39cc290419Sopenharmony_ci 40cc290419Sopenharmony_cigroup("hdcd_user_permit") { 41cc290419Sopenharmony_ci if (support_hdcd_user_permit) { 42cc290419Sopenharmony_ci deps = [ ":exec_hdcd_user_permit" ] 43cc290419Sopenharmony_ci } 44cc290419Sopenharmony_ci} 45