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 "../include", 29 "../include/ntfs-3g", 30 "..", 31 ] 32} 33 34ohos_static_library("libntfs_3g") { 35 sources = [ 36 "acls.c", 37 "attrib.c", 38 "attrlist.c", 39 "bitmap.c", 40 "bootsect.c", 41 "cache.c", 42 "collate.c", 43 "compat.c", 44 "compress.c", 45 "debug.c", 46 "device.c", 47 "dir.c", 48 "ea.c", 49 "efs.c", 50 "index.c", 51 "inode.c", 52 "ioctl.c", 53 "lcnalloc.c", 54 "logfile.c", 55 "logging.c", 56 "mft.c", 57 "misc.c", 58 "mst.c", 59 "object_id.c", 60 "realpath.c", 61 "reparse.c", 62 "runlist.c", 63 "security.c", 64 "unistr.c", 65 "unix_io.c", 66 "volume.c", 67 "xattrs.c", 68 ] 69 configs = [ ":ntfs_default" ] 70 71 subsystem_name = "thirdparty" 72 part_name = "ntfs-3g" 73} 74