• 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.
13import("//build/ohos.gni")
14service_file_sources =
15    [ "//base/startup/init_lite/interfaces/innerkits/file/init_file.c" ]
16service_file_include = [
17  "//base/startup/init_lite/interfaces/innerkits/include",
18  "//base/startup/init_lite/services/log",
19  "//base/startup/init_lite/services/include",
20  "//third_party/bounds_checking_function/include",
21]
22service_file_deps = [
23  "//base/startup/init_lite/services/log:init_log",
24  "//base/startup/init_lite/services/utils:libinit_utils",
25  "//third_party/bounds_checking_function:libsec_static",
26]
27
28ohos_static_library("libfile_static") {
29  sources = service_file_sources
30  include_dirs = service_file_include
31  deps = service_file_deps
32  part_name = "init"
33}
34
35ohos_shared_library("libfile") {
36  sources = service_file_sources
37  include_dirs = service_file_include
38  deps = service_file_deps
39  part_name = "init"
40  install_images = [ "system" ]
41}
42