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 the 9f9f848faSopenharmony_ci# documentation and/or other materials provided with the distribution. 10f9f848faSopenharmony_ci# 11f9f848faSopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 12f9f848faSopenharmony_ci# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 13f9f848faSopenharmony_ci# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 14f9f848faSopenharmony_ci# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 15f9f848faSopenharmony_ci# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 16f9f848faSopenharmony_ci# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 17f9f848faSopenharmony_ci# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 18f9f848faSopenharmony_ci# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 19f9f848faSopenharmony_ci# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 20f9f848faSopenharmony_ci# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 21f9f848faSopenharmony_ci 22f9f848faSopenharmony_ciimport("//build/ohos.gni") 23f9f848faSopenharmony_ciconfig("vfat-defaults") { 24f9f848faSopenharmony_ci cflags = [ 25f9f848faSopenharmony_ci "-O2", 26f9f848faSopenharmony_ci "-g", 27f9f848faSopenharmony_ci "-Wall", 28f9f848faSopenharmony_ci "-Werror", 29f9f848faSopenharmony_ci "-D_BSD_SOURCE", 30f9f848faSopenharmony_ci "-D_LARGEFILE_SOURCE", 31f9f848faSopenharmony_ci "-D_FILE_OFFSET_BITS=64", 32f9f848faSopenharmony_ci "-DELFTC_NEED_BYTEORDER_EXTENSIONS", 33f9f848faSopenharmony_ci "-Wno-unused-variable", 34f9f848faSopenharmony_ci "-Wno-unused-const-variable", 35f9f848faSopenharmony_ci "-Wno-format", 36f9f848faSopenharmony_ci "-Wno-sign-compare", 37f9f848faSopenharmony_ci "-Wno-implicit-function-declaration", 38f9f848faSopenharmony_ci "-Wno-return-type", 39f9f848faSopenharmony_ci "-Wno-implicit-int", 40f9f848faSopenharmony_ci ] 41f9f848faSopenharmony_ci include_dirs = [] 42f9f848faSopenharmony_ci} 43f9f848faSopenharmony_ci 44f9f848faSopenharmony_ci################################################### 45f9f848faSopenharmony_ci##Build fsck_msdos 46f9f848faSopenharmony_ciohos_executable("fsck_msdos") { 47f9f848faSopenharmony_ci configs = [ ":vfat-defaults" ] 48f9f848faSopenharmony_ci sources = [ 49f9f848faSopenharmony_ci "boot.c", 50f9f848faSopenharmony_ci "check.c", 51f9f848faSopenharmony_ci "dir.c", 52f9f848faSopenharmony_ci "fat.c", 53f9f848faSopenharmony_ci "main.c", 54f9f848faSopenharmony_ci ] 55f9f848faSopenharmony_ci 56f9f848faSopenharmony_ci include_dirs = [ 57f9f848faSopenharmony_ci ".", 58f9f848faSopenharmony_ci "../../sys", 59f9f848faSopenharmony_ci ] 60f9f848faSopenharmony_ci 61f9f848faSopenharmony_ci deps = [] 62f9f848faSopenharmony_ci install_enable = true 63f9f848faSopenharmony_ci subsystem_name = "thirdparty" 64f9f848faSopenharmony_ci part_name = "FreeBSD" 65f9f848faSopenharmony_ci install_images = [ "system" ] 66f9f848faSopenharmony_ci} 67