• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License version 2 as
5# published by the Free Software Foundation.
6
7import("//build/ohos.gni")
8config("f2fs-defaults") {
9  cflags = [
10    "-Wall",
11    "-Werror",
12    "-Wno-incompatible-pointer-types",
13    "-Wno-unused-function",
14    "-Wno-unused-parameter",
15    "-Wno-format",
16  ]
17}
18config("libf2fs-headers") {
19  include_dirs = [
20    ".",
21    "//third_party/f2fs-tools",
22    "//third_party/f2fs-tools/include",
23  ]
24}
25
26ohos_shared_library("libf2fs") {
27  sources = [
28    "libf2fs.c",
29    "libf2fs_io.c",
30    "libf2fs_zoned.c",
31    "nls_utf8.c",
32  ]
33
34  include_dirs = [ "." ]
35
36  configs = [
37    ":f2fs-defaults",
38    ":libf2fs-headers",
39  ]
40
41  defines = [ "HAVE_CONFIG_H" ]
42  install_enable = true
43  subsystem_name = "thirdparty"
44  part_name = "f2fs-tools"
45  install_images = [
46    "system",
47    "updater",
48  ]
49}
50