• 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 = [ "-Wno-pointer-sign" ]
17}
18
19##Build resize2fs
20ohos_executable("resize2fs") {
21  configs = [ ":e2fsprogs-defaults" ]
22  sources = [
23    "extent.c",
24    "main.c",
25    "online.c",
26    "resize2fs.c",
27    "resource_track.c",
28    "sim_progress.c",
29  ]
30
31  include_dirs = [
32    ".",
33    "//third_party/e2fsprogs/e2fsck",
34    "//third_party/e2fsprogs/lib",
35    "//third_party/e2fsprogs/lib/ext2fs",
36  ]
37  cflags = [
38    "-Wno-error=format",
39    "-Wno-error=type-limits",
40    "-Wno-format-extra-args",
41  ]
42
43  deps = [
44    "//third_party/e2fsprogs/lib/e2p:libext2_e2p",
45    "//third_party/e2fsprogs/lib/et:libext2_com_err",
46    "//third_party/e2fsprogs/lib/ext2fs:libext2fs",
47  ]
48
49  ldflags = [ "-stdlib=libc++_static" ]
50  install_enable = true
51  subsystem_name = "thirdparty"
52  part_name = "e2fsprogs"
53  install_images = [
54    "system",
55    "updater",
56  ]
57}
58