not support permit for no ability_ability

Signed-off-by: 李帅 <leo.lishuai@huawei.com>
This commit is contained in:
李帅 2024-04-08 10:03:02 +00:00
parent 598d48433d
commit 442f34ee8b
2 changed files with 10 additions and 2 deletions

View File

@ -22,6 +22,13 @@ declare_args() {
hdc_jdwp_test = false
js_jdwp_connect = true
hdc_version_check = false
support_hdcd_user_permit = false
if (defined(global_parts_info)) {
if (defined(global_parts_info.ability_ability_base)) {
support_hdcd_user_permit = true
}
}
}
code_check_flag = [

View File

@ -12,9 +12,10 @@
# limitations under the License.
import("//build/ohos.gni")
import("//developtools/hdc/hdc.gni")
ohos_executable("exec_hdcd_user_permit") {
if (device_company != "qemu") {
if (support_hdcd_user_permit) {
sources = [
"src/connection.cpp",
"src/main.cpp",
@ -36,7 +37,7 @@ ohos_executable("exec_hdcd_user_permit") {
}
group("hdcd_user_permit") {
if (device_company != "qemu") {
if (support_hdcd_user_permit) {
deps = [ ":exec_hdcd_user_permit" ]
}
}