• 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 = "thirdparty"
48  part_name = "ntfs-3g"
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 = "thirdparty"
63  part_name = "ntfs-3g"
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 = "thirdparty"
78  part_name = "ntfs-3g"
79  install_images = [
80    "system",
81    "updater",
82  ]
83}
84ohos_executable("ntfsresize") {
85  sources = [
86    "ntfsresize.c",
87    "utils.c",
88  ]
89  configs = [ ":ntfs_default" ]
90  deps = [
91    "../libfuse-lite:libfuse_lite",
92    "../libntfs-3g:libntfs_3g",
93  ]
94  install_enable = true
95  subsystem_name = "thirdparty"
96  part_name = "ntfs-3g"
97  install_images = [ "system" ]
98}
99
100ohos_executable("ntfslabel") {
101  sources = [
102    "ntfslabel.c",
103    "utils.c",
104  ]
105  configs = [ ":ntfs_default" ]
106  deps = [ "../libntfs-3g:libntfs_3g" ]
107  install_enable = true
108  subsystem_name = "thirdparty"
109  part_name = "ntfs-3g"
110  install_images = [ "system" ]
111}
112