119e95205Sopenharmony_ci# Copyright (C) 2021-2022 Huawei Device Co., Ltd.
219e95205Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
319e95205Sopenharmony_ci# you may not use this file except in compliance with the License.
419e95205Sopenharmony_ci# You may obtain a copy of the License at
519e95205Sopenharmony_ci#
619e95205Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
719e95205Sopenharmony_ci#
819e95205Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
919e95205Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1019e95205Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1119e95205Sopenharmony_ci# See the License for the specific language governing permissions and
1219e95205Sopenharmony_ci# limitations under the License.
1319e95205Sopenharmony_ci
1419e95205Sopenharmony_ciimport("//build/ohos.gni")
1519e95205Sopenharmony_ci
1619e95205Sopenharmony_ciSUBSYSTEM_DIR = "//foundation/communication"
1719e95205Sopenharmony_ciPART_DIR = "$SUBSYSTEM_DIR/bluetooth_service/services/bluetooth"
1819e95205Sopenharmony_ci
1919e95205Sopenharmony_ciconfig("btdummy_config") {
2019e95205Sopenharmony_ci  cflags_cc = [
2119e95205Sopenharmony_ci    "-fPIC",
2219e95205Sopenharmony_ci    "-fexceptions",
2319e95205Sopenharmony_ci    "-Wno-unused-private-field",
2419e95205Sopenharmony_ci    "-Wno-format-nonliteral",
2519e95205Sopenharmony_ci    "-Wno-non-c-typedef-for-linkage",
2619e95205Sopenharmony_ci  ]
2719e95205Sopenharmony_ci  include_dirs = [ "$PART_DIR/common" ]
2819e95205Sopenharmony_ci}
2919e95205Sopenharmony_ci
3019e95205Sopenharmony_ciconfig("btdummy_public_config") {
3119e95205Sopenharmony_ci  include_dirs = [ "dummy/include" ]
3219e95205Sopenharmony_ci}
3319e95205Sopenharmony_ci
3419e95205Sopenharmony_ciohos_shared_library("btdummy") {
3519e95205Sopenharmony_ci  # sanitize = {
3619e95205Sopenharmony_ci  #   cfi = true
3719e95205Sopenharmony_ci  # }
3819e95205Sopenharmony_ci  stack_protector_ret = true
3919e95205Sopenharmony_ci  configs = [ ":btdummy_config" ]
4019e95205Sopenharmony_ci  public_configs = [ ":btdummy_public_config" ]
4119e95205Sopenharmony_ci  sources = [ "dummy/src/stub.cpp" ]
4219e95205Sopenharmony_ci  deps = []
4319e95205Sopenharmony_ci  external_deps = [
4419e95205Sopenharmony_ci    "bluetooth:btcommon",
4519e95205Sopenharmony_ci    "hilog:libhilog",
4619e95205Sopenharmony_ci  ]
4719e95205Sopenharmony_ci  subsystem_name = "communication"
4819e95205Sopenharmony_ci  part_name = "bluetooth_service"
4919e95205Sopenharmony_ci}
50