mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 15:12:24 +00:00
not support permit for no ability_ability
Signed-off-by: 李帅 <leo.lishuai@huawei.com>
This commit is contained in:
parent
598d48433d
commit
442f34ee8b
7
hdc.gni
7
hdc.gni
@ -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 = [
|
||||
|
@ -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" ]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user