2022-02-09 06:11:30 +00:00
|
|
|
# Copyright (C) 2021 Huawei Device Co., Ltd.
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-09-25 12:07:08 +00:00
|
|
|
FUZZ_OUTPUT_PATH = "hdc/hdc"
|
|
|
|
|
2022-02-09 06:11:30 +00:00
|
|
|
declare_args() {
|
|
|
|
# build with --gn-args "hdc_debug=true, which is used to debug"
|
2022-02-11 08:38:08 +00:00
|
|
|
hdc_debug = false
|
2022-02-09 06:11:30 +00:00
|
|
|
hdc_host_hide_debug_win = true
|
|
|
|
hdc_support_uart = true
|
|
|
|
hdc_test_coverage = false
|
|
|
|
hdc_jdwp_test = false
|
|
|
|
js_jdwp_connect = true
|
2022-06-27 02:24:24 +00:00
|
|
|
hdc_version_check = false
|
2024-04-08 10:03:02 +00:00
|
|
|
support_hdcd_user_permit = false
|
2024-07-19 07:14:26 +00:00
|
|
|
hdc_feature_support_sudo = false
|
2024-04-08 10:03:02 +00:00
|
|
|
|
|
|
|
if (defined(global_parts_info)) {
|
|
|
|
if (defined(global_parts_info.ability_ability_base)) {
|
|
|
|
support_hdcd_user_permit = true
|
|
|
|
}
|
|
|
|
}
|
2022-02-09 06:11:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
code_check_flag = [
|
|
|
|
"-Wformat",
|
|
|
|
"-Wall",
|
|
|
|
"-Wmissing-field-initializers",
|
|
|
|
"-Wuninitialized",
|
|
|
|
"-Wnull-pointer-arithmetic",
|
|
|
|
"-Wunused-lambda-capture",
|
|
|
|
"-Wuser-defined-warnings",
|
|
|
|
"-Wenum-compare-switch",
|
|
|
|
"-Wunneeded-internal-declaration",
|
|
|
|
"-Wundefined-var-template",
|
|
|
|
"-Wnonportable-include-path",
|
|
|
|
"-Wformat-extra-args",
|
|
|
|
"-Wformat",
|
|
|
|
"-Wsign-compare",
|
|
|
|
"-Woverloaded-virtual",
|
|
|
|
]
|