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 8import("//build/ohos.gni") 9import("//build/ohos/ndk/ndk.gni") 10 11config("gptdisk_config") { 12 cflags_cc = [ 13 "-Wall", 14 "-D_FILE_OFFSET_BITS=64", 15 "-Wno-unused-parameter", 16 "-Wno-pragma-pack", 17 "-Wno-error=header-hygiene", 18 "-Wno-register", 19 "-Wno-unused-but-set-variable", 20 ] 21} 22ohos_executable("sgdisk") { 23 install_enable = true 24 sources = [ 25 "attributes.cc", 26 "basicmbr.cc", 27 "bsd.cc", 28 "crc32.cc", 29 "diskio-unix.cc", 30 "diskio.cc", 31 "gpt.cc", 32 "gptcl.cc", 33 "gptpart.cc", 34 "guid.cc", 35 "mbr.cc", 36 "mbrpart.cc", 37 "parttypes.cc", 38 "sgdisk.cc", 39 "support.cc", 40 ] 41 public_configs = [ ":gptdisk_config" ] 42 external_deps = [ 43 "e2fsprogs:libext2_uuid", 44 "popt:popt_static", 45 ] 46 subsystem_name = "thirdparty" 47 part_name = "gptfdisk" 48 install_images = [ "system" ] 49} 50