• 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.
13
14import("//build/ohos.gni")
15config("e2fsprogs-defaults") {
16  cflags = [
17    "-Wall",
18    "-Werror",
19  ]
20}
21config("libext2-headers") {
22  include_dirs = [ "//third_party/e2fsprogs/lib" ]
23}
24ohos_shared_library("libext2_e2p") {
25  sources = [
26    "encoding.c",
27    "errcode.c",
28    "feature.c",
29    "fgetflags.c",
30    "fgetproject.c",
31    "fgetversion.c",
32    "fsetflags.c",
33    "fsetproject.c",
34    "fsetversion.c",
35    "getflags.c",
36    "getversion.c",
37    "hashstr.c",
38    "iod.c",
39    "ljs.c",
40    "ls.c",
41    "mntopts.c",
42    "ostype.c",
43    "parse_num.c",
44    "pe.c",
45    "percent.c",
46    "pf.c",
47    "ps.c",
48    "setflags.c",
49    "setversion.c",
50    "uuid.c",
51  ]
52  include_dirs = [ "." ]
53
54  configs = [
55    ":e2fsprogs-defaults",
56    ":libext2-headers",
57  ]
58  cflags = [
59    "-Wno-error=attributes",
60    "-Wno-unused-parameter",
61  ]
62  install_enable = true
63  subsystem_name = "thirdparty"
64  part_name = "e2fsprogs"
65  install_images = [
66    "system",
67    "updater",
68  ]
69}
70