• 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 as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program (in the main directory of the NTFS-3G
15# distribution in the file COPYING); if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18import("//build/ohos.gni")
19config("ntfs_default") {
20  cflags = [
21    "-Wno-error",
22    "-Wno-address-of-packed-member",
23    "-D_LARGEFILE_SOURCE",
24    "-D_FILE_OFFSET_BITS=64",
25    "-DHAVE_CONFIG_H",
26  ]
27  include_dirs = [
28    ".",
29    "../include",
30    "../include/fuse-lite",
31    "../include/ntfs-3g",
32    "..",
33  ]
34}
35
36ohos_executable("fsck.ntfs") {
37  sources = [
38    "ntfsck.c",
39    "utils.c",
40  ]
41  configs = [ ":ntfs_default" ]
42  deps = [
43    "../libfuse-lite:libfuse_lite",
44    "../libntfs-3g:libntfs_3g",
45  ]
46  install_enable = true
47  subsystem_name = "filemanagement"
48  part_name = "storage_service"
49  install_images = [ "system" ]
50}
51ohos_executable("ntfsfix") {
52  sources = [
53    "ntfsfix.c",
54    "utils.c",
55  ]
56  configs = [ ":ntfs_default" ]
57  deps = [
58    "../libfuse-lite:libfuse_lite",
59    "../libntfs-3g:libntfs_3g",
60  ]
61  install_enable = true
62  subsystem_name = "filemanagement"
63  part_name = "storage_service"
64  install_images = [ "system" ]
65}
66ohos_executable("mount.ntfs") {
67  sources = [
68    "../src/ntfs-3g.c",
69    "../src/ntfs-3g_common.c",
70  ]
71  configs = [ ":ntfs_default" ]
72  deps = [
73    "../libfuse-lite:libfuse_lite",
74    "../libntfs-3g:libntfs_3g",
75  ]
76  install_enable = true
77  subsystem_name = "filemanagement"
78  part_name = "storage_service"
79  install_images = [ "system" ]
80}
81ohos_executable("ntfsresize") {
82  sources = [
83    "ntfsresize.c",
84    "utils.c",
85  ]
86  configs = [ ":ntfs_default" ]
87  deps = [
88    "../libfuse-lite:libfuse_lite",
89    "../libntfs-3g:libntfs_3g",
90  ]
91  install_enable = true
92  subsystem_name = "filemanagement"
93  part_name = "storage_service"
94  install_images = [ "system" ]
95}
96
97ohos_executable("ntfslabel") {
98  sources = [
99    "ntfslabel.c",
100    "utils.c",
101  ]
102  configs = [ ":ntfs_default" ]
103  deps = [ "../libntfs-3g:libntfs_3g" ]
104  install_enable = true
105  subsystem_name = "filemanagement"
106  part_name = "storage_service"
107  install_images = [ "system" ]
108}
109