1f9f848faSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2f9f848faSopenharmony_ci# Redistribution and use in source and binary forms, with or without
3f9f848faSopenharmony_ci# modification, are permitted provided that the following conditions
4f9f848faSopenharmony_ci# are met:
5f9f848faSopenharmony_ci# 1. Redistributions of source code must retain the above copyright
6f9f848faSopenharmony_ci#    notice, this list of conditions and the following disclaimer.
7f9f848faSopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright
8f9f848faSopenharmony_ci#    notice, this list of conditions and the following disclaimer in
9f9f848faSopenharmony_ci#    the documentation and/or other materials provided with the
10f9f848faSopenharmony_ci#    distribution.
11f9f848faSopenharmony_ci#
12f9f848faSopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
13f9f848faSopenharmony_ci# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14f9f848faSopenharmony_ci# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15f9f848faSopenharmony_ci# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
16f9f848faSopenharmony_ci# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17f9f848faSopenharmony_ci# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
18f9f848faSopenharmony_ci# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
19f9f848faSopenharmony_ci# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
20f9f848faSopenharmony_ci# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
21f9f848faSopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
22f9f848faSopenharmony_ci# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23f9f848faSopenharmony_ci
24f9f848faSopenharmony_ciimport("//build/ohos.gni")
25f9f848faSopenharmony_ciconfig("vfat-defaults") {
26f9f848faSopenharmony_ci  cflags = [
27f9f848faSopenharmony_ci    "-Wall",
28f9f848faSopenharmony_ci    "-Werror",
29f9f848faSopenharmony_ci    "-Wno-unused-function",
30f9f848faSopenharmony_ci    "-Wno-unused-parameter",
31f9f848faSopenharmony_ci    "-Wno-unused-variable",
32f9f848faSopenharmony_ci    "-D_FILE_OFFSET_BITS=64",
33f9f848faSopenharmony_ci    "-D_GNU_SOURCE",
34f9f848faSopenharmony_ci    "-DSIGINFO=SIGUSR2",
35f9f848faSopenharmony_ci    "-Dnitems(x)=(sizeof((x))/sizeof((x)[0]))",
36f9f848faSopenharmony_ci    "-Wno-implicit-function-declaration",
37f9f848faSopenharmony_ci    "-D_MACHINE_IOCTL_FD_H_",
38f9f848faSopenharmony_ci  ]
39f9f848faSopenharmony_ci  include_dirs = [ "../../sys" ]
40f9f848faSopenharmony_ci}
41f9f848faSopenharmony_ci
42f9f848faSopenharmony_ci###################################################
43f9f848faSopenharmony_ci##Build newfs_msdos
44f9f848faSopenharmony_ciohos_executable("newfs_msdos") {
45f9f848faSopenharmony_ci  configs = [ ":vfat-defaults" ]
46f9f848faSopenharmony_ci  sources = [
47f9f848faSopenharmony_ci    "mkfs_msdos.c",
48f9f848faSopenharmony_ci    "newfs_msdos.c",
49f9f848faSopenharmony_ci  ]
50f9f848faSopenharmony_ci
51f9f848faSopenharmony_ci  include_dirs = []
52f9f848faSopenharmony_ci  install_enable = true
53f9f848faSopenharmony_ci  deps = []
54f9f848faSopenharmony_ci  subsystem_name = "thirdparty"
55f9f848faSopenharmony_ci  part_name = "FreeBSD"
56f9f848faSopenharmony_ci  install_images = [ "system" ]
57f9f848faSopenharmony_ci}
58