• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13if (!is_linux && !is_mingw && !is_mac) {
14  import("//base/update/updater/updater_default_cfg.gni")
15}
16import("//build/ohos.gni")
17
18config("log_config") {
19  if (is_linux || is_mingw || is_mac) {
20    cflags_cc = [ "-std=c++17" ]
21    defines = [ "DIFF_PATCH_SDK" ]
22  }
23}
24
25ohos_static_library("libupdaterlog") {
26  sources = [
27    "dump.cpp",
28    "log.cpp",
29  ]
30
31  include_dirs = [
32    "//base/update/updater/services/include",
33    "//third_party/bounds_checking_function/include",
34    "//base/update/updater/utils/include",
35  ]
36
37  public_configs = [ ":log_config" ]
38
39  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
40  subsystem_name = "updater"
41  part_name = "updater"
42}
43