BUILD.gn 2.5 KB
Newer Older
L
liuhonggang123 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
# 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.

import("//build/ohos_var.gni")
import("//drivers/adapter/uhdf2/uhdf.gni")
import("//drivers/peripheral/audio/audio.gni")
import("//test/xts/tools/build/suite.gni")

###########################NOT LITEOS##############################
module_output_path = "hdf/audio"

###########################hdf_audio_hdi_adapter_test#####################
ohos_moduletest_suite("hdf_audio_hdi_adapter_test") {
  module_out_path = module_output_path
  sources = [
    "../../common/hdi_common/src/audio_hdi_common.cpp",
    "src/audio_hdiadapter_test.cpp",
  ]

  include_dirs = [
    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
    "//drivers/peripheral/audio/interfaces/include",
    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
    "//drivers/adapter/uhdf2/include/hdi",
    "//drivers/adapter/uhdf2/shared/include",
    "//drivers/adapter/uhdf2/osal/include",
    "//drivers/framework/include/core",
    "//drivers/framework/include/utils",
    "//drivers/framework/include/osal",
    "//drivers/framework/include",
    "//drivers/framework/utils/include",
    "//third_party/bounds_checking_function/include",
    "//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
    "//third_party/googletest/googletest/include/gtest",
    "//drivers/peripheral/audio/test/systemtest/hdi/adapter/include",
  ]
  cflags = [
    "-Wall",
    "-Wextra",
    "-Werror",
    "-fsigned-char",
    "-fno-common",
    "-fno-strict-aliasing",
  ]
  deps = [
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
  ]
  defines = []
  if (enable_audio_adm_so) {
    defines += [ "AUDIO_ADM_SO" ]
  }
  if (enable_audio_mpi_so) {
    defines += [ "AUDIO_MPI_SO" ]
  }
  if (enable_audio_adm_service) {
    defines += [ "AUDIO_ADM_SERVICE" ]
  }
  if (enable_audio_mpi_service) {
    defines += [ "AUDIO_MPI_SERVICE" ]
  }
}
###########################end###########################