1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/config/ohos/config.gni") 15import("//build/config/sanitizers/sanitizers.gni") 16import("//build/ohos.gni") 17 18declare_args() { 19 common_feature_verify = false 20} 21 22group("common_packages") { 23 if (device_name == "hi3516dv300") { 24 assert(common_feature_verify) 25 } 26 deps = [ "//third_party/sqlite:sqlite" ] 27 28 deps += [ "musl:musl_install" ] 29 30 deps += [ "asan:libclang_rt.asan.so" ] 31 32 if (is_asan) { 33 deps += [ 34 "asan:asan.cfg", 35 "asan:asan.options", 36 "asan:asan_helper", 37 ] 38 } else { 39 # ubsan.cfg defines the log_path, different with asan.cfg 40 deps += [ 41 "ubsan:libclang_rt.ubsan_minimal.so", 42 "ubsan:libclang_rt.ubsan_standalone.so", 43 "ubsan:ubsan.cfg", 44 ] 45 } 46} 47