• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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.
13
14import("//build/ohos.gni")
15
16ohos_static_library("libip4tc") {
17  sources = [ "//third_party/iptables/libiptc/libip4tc.c" ]
18
19  include_dirs = [
20    "//third_party/iptables/libiptc",
21    "//third_party/iptables/include",
22  ]
23
24  cflags = [
25    "-D_LARGEFILE_SOURCE=1",
26    "-D_LARGE_FILES",
27    "-D_FILE_OFFSET_BITS=64",
28    "-D_REENTRANT",
29    "-DENABLE_IPV4",
30    "-DENABLE_IPV6",
31    "-Wall",
32    "-Werror",
33    "-Wno-pointer-arith",
34    "-Wno-sign-compare",
35    "-Wno-unused-parameter",
36    "-Wno-pointer-sign",
37    "-Wno-unused-function",
38  ]
39
40  deps = []
41
42  part_name = "netmanager_base"
43  subsystem_name = "communication"
44}
45
46ohos_static_library("libip6tc") {
47  sources = [ "//third_party/iptables/libiptc/libip6tc.c" ]
48
49  include_dirs = [
50    "//third_party/iptables/libiptc",
51    "//third_party/iptables/include",
52  ]
53  license_file = "//third_party/iptables/COPYING"
54  cflags = [
55    "-D_LARGEFILE_SOURCE=1",
56    "-D_LARGE_FILES",
57    "-D_FILE_OFFSET_BITS=64",
58    "-D_REENTRANT",
59    "-DENABLE_IPV4",
60    "-DENABLE_IPV6",
61    "-Wall",
62    "-Werror",
63    "-Wno-pointer-arith",
64    "-Wno-sign-compare",
65    "-Wno-unused-parameter",
66    "-Wno-pointer-sign",
67    "-Wno-unused-function",
68  ]
69
70  deps = []
71
72  part_name = "netmanager_base"
73  subsystem_name = "communication"
74}
75