BUILD.gn 2.2 KB
Newer Older
M
mamingshuai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 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")

T
the-minions-of-cplu 已提交
16
module_output_path = "i18n/zone_util_test"
M
mamingshuai 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

ohos_unittest("zone_util_test") {
  module_out_path = module_output_path

  sources = [
    "//third_party/googletest/googletest/src/gtest-death-test.cc",
    "//third_party/googletest/googletest/src/gtest-filepath.cc",
    "//third_party/googletest/googletest/src/gtest-port.cc",
    "//third_party/googletest/googletest/src/gtest-printers.cc",
    "//third_party/googletest/googletest/src/gtest-test-part.cc",
    "//third_party/googletest/googletest/src/gtest-typed-test.cc",
    "//third_party/googletest/googletest/src/gtest.cc",
    "//third_party/googletest/googletest/src/gtest_main.cc",
    "//third_party/googletest/googletest/src/hwext/gtest-ext.cc",
    "//third_party/googletest/googletest/src/hwext/gtest-filter.cc",
    "//third_party/googletest/googletest/src/hwext/gtest-tag.cc",
    "//third_party/googletest/googletest/src/hwext/gtest-utils.cc",
    "unittest/zone_util_test.cpp",
  ]
  remove_configs = [ "//build/config/compiler:no_rtti" ]
  cflags_cc = [ "-frtti" ]
  include_dirs = [
    "//third_party/googletest/googletest/include",
    "//third_party/googletest/googletest",
T
the-minions-of-cplu 已提交
41
    "//base/global/i18n/interfaces/native/innerkits/zone/include",
M
mamingshuai 已提交
42 43 44 45 46 47 48 49
    "//third_party/icu/icu4c/source/common/unicode",
    "//third_party/icu/icu4c/source/common",
    "//third_party/libphonenumber/cpp/src",
    "//third_party/protobuf/src",
    "//third_party/protobuf/src/google",
    "//third_party/protobuf/src/google/protobuf",
  ]
  deps = [
T
the-minions-of-cplu 已提交
50
    "//base/global/i18n/frameworks/zone:zone_util",
M
mamingshuai 已提交
51 52 53 54
    "//third_party/libphonenumber/cpp:phonenumber_standard",
    "//utils/native/base:utils",
  ]
}