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

service_socket_sources =
M
init  
Mupceet 已提交
15
    [ "//base/startup/init/interfaces/innerkits/socket/init_socket.c" ]
H
handyohos 已提交
16
service_socket_include = [
M
init  
Mupceet 已提交
17 18
  "//base/startup/init/interfaces/innerkits/include",
  "//base/startup/init/services/log",
H
handyohos 已提交
19 20 21
  "//third_party/bounds_checking_function/include",
]

22 23
if (defined(ohos_lite)) {
  if (ohos_kernel_type == "linux") {
M
Mupceet 已提交
24
    static_library("libsocket") {
25 26 27 28 29 30 31
      sources = service_socket_sources
      include_dirs = service_socket_include
    }
  }
} else {
  import("//build/ohos.gni")

M
Mupceet 已提交
32
  ohos_static_library("libsocket") {
33 34 35 36
    sources = service_socket_sources
    include_dirs = service_socket_include
    part_name = "init"
  }
H
handyohos 已提交
37
}