1# Copyright (C) 2021-2022 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/ohos.gni") 15 16SUBSYSTEM_DIR = "//foundation/communication" 17PART_DIR = "$SUBSYSTEM_DIR/bluetooth_service/services/bluetooth" 18 19config("btdummy_config") { 20 cflags_cc = [ 21 "-fPIC", 22 "-fexceptions", 23 "-Wno-unused-private-field", 24 "-Wno-format-nonliteral", 25 "-Wno-non-c-typedef-for-linkage", 26 ] 27 include_dirs = [ "$PART_DIR/common" ] 28} 29 30config("btdummy_public_config") { 31 include_dirs = [ "dummy/include" ] 32} 33 34ohos_shared_library("btdummy") { 35 # sanitize = { 36 # cfi = true 37 # } 38 stack_protector_ret = true 39 configs = [ ":btdummy_config" ] 40 public_configs = [ ":btdummy_public_config" ] 41 sources = [ "dummy/src/stub.cpp" ] 42 deps = [] 43 external_deps = [ 44 "bluetooth:btcommon", 45 "hilog:libhilog", 46 ] 47 subsystem_name = "communication" 48 part_name = "bluetooth_service" 49} 50