• 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_uuid") {
25  sources = [
26    "clear.c",
27    "compare.c",
28    "copy.c",
29    "gen_uuid.c",
30    "isnull.c",
31    "pack.c",
32    "parse.c",
33    "unpack.c",
34    "unparse.c",
35    "uuid_time.c",
36  ]
37  include_dirs = [ "." ]
38  cflags = [
39    "-Wno-unused-function",
40    "-Wno-unused-parameter",
41  ]
42  configs = [
43    ":e2fsprogs-defaults",
44    ":libext2-headers",
45  ]
46  install_enable = true
47  part_name = "e2fsprogs"
48  install_images = [
49    "system",
50    "updater",
51  ]
52}
53