# 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/test.gni")
import("sms_mms_test.gni")
import("../smsmms.gni")

config("sms_mms_test_config") {
  include_dirs = sms_mms_incluedirs
}

ohos_static_library("tel_sms_mms_test_base") {
  sanitize = {
    cfi = true
    cfi_cross_dso = true
    debug = false
  }
  branch_protector_ret = "pac_ret"
  sources = sms_mms_src
  public_configs = [ ":sms_mms_test_config" ]
  external_deps = sms_mms_external_deps
  external_deps += [ "core_service:ffrt_mocked" ]
  defines = sms_mms_defines + global_defines
  cflags = sms_mms_cflags
  cflags_cc = cflags
  part_name = "sms_mms"
  subsystem_name = "telephony"
}

group("unittest") {
  testonly = true
  deps = []
  deps += [ "gtest:unittest" ]
}