BUILD.gn 1.2 KB
Newer Older
M
mamingshuai 已提交
1
# Copyright (c) 2021 Huawei Device Co., Ltd.
W
wenjun 已提交
2 3 4 5 6 7 8 9 10 11 12 13
# 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.

M
mamingshuai 已提交
14
import("//build/ohos.gni")
W
wenjun 已提交
15

M
mamingshuai 已提交
16 17 18 19 20 21 22
config("distributedtest_config") {
  include_dirs = [
    "//utils/native/base/include",
    ".",
    "utils/",
  ]
}
W
wenjun 已提交
23

M
mamingshuai 已提交
24 25 26 27 28 29 30
ohos_static_library("distributedtest_lib") {
  testonly = true
  sources = [
    "distributed_agent.cpp",
    "distributed_cfg.cpp",
    "distributed_major.cpp",
  ]
W
wenjun 已提交
31
  deps = [
M
mamingshuai 已提交
32 33
    "//third_party/googletest:gtest",
    "//utils/native/base:utils",
W
wenjun 已提交
34
  ]
H
hwb0703 已提交
35 36 37 38 39
  if (is_standard_system) {
    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
  } else {
    external_deps = [ "hilog:libhilog" ]
  }
M
mamingshuai 已提交
40
  public_configs = [ ":distributedtest_config" ]
W
wenjun 已提交
41
}