BUILD.gn 1.7 KB
Newer Older
Z
zhong_ning 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# 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.
if (defined(ohos_lite)) {
  static_library("init_log") {
Z
zhong_ning 已提交
15 16
    sources = [ "init_log.c" ]
    public_deps = [ "//third_party/bounds_checking_function:libsec_static" ]
X
xionglei6 已提交
17 18 19 20
    include_dirs = [
      "//base/hiviewdfx/hilog_lite/interfaces/native/kits",
      "//base/startup/init_lite/interfaces/innerkits/include",
    ]
Z
zhong_ning 已提交
21
    deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
Z
zhong_ning 已提交
22 23 24 25
  }
} else {
  import("//build/ohos.gni")
  ohos_static_library("init_log") {
Z
zhong_ning 已提交
26 27
    sources = [ "init_log.c" ]
    deps = [ "//third_party/bounds_checking_function:libsec_static" ]
X
xionglei6 已提交
28
    include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
Z
zhong_ning 已提交
29 30 31
    part_name = "startup"
    subsystem_name = "startup"
  }
S
sun_fan 已提交
32

X
add ut  
xionglei6 已提交
33
  ohos_shared_library("agent_log") {
S
sun_fan 已提交
34 35
    sources = [ "init_log.c" ]
    defines = [ "INIT_AGENT" ]
X
add ut  
xionglei6 已提交
36
    deps = [ "//third_party/bounds_checking_function:libsec_static" ]
X
xionglei6 已提交
37
    include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
S
sun_fan 已提交
38
    part_name = "startup"
X
add ut  
xionglei6 已提交
39 40 41 42 43 44
    install_images = [
      "system",
      "updater",
    ]
    install_enable = true
    part_name = "init"
S
sun_fan 已提交
45 46
    subsystem_name = "startup"
  }
Z
zhong_ning 已提交
47
}