5 Star 2 Fork 20

OpenHarmony/third_party_gptfdisk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.gn 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
y30045862 提交于 2023-06-16 11:28 . gptfdisk 构建整改
# Copyright (c) 2021 Huawei Device Co., Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
import("//build/ohos.gni")
import("//build/ohos/ndk/ndk.gni")
config("gptdisk_config") {
include_dirs = [
".",
"//third_party/e2fsprogs/e2fsprogs/lib/",
"//third_party/popt/",
]
cflags_cc = [
"-Wall",
"-D_FILE_OFFSET_BITS=64",
"-Wno-unused-parameter",
"-Wno-pragma-pack",
"-Wno-error=header-hygiene",
"-Wno-register",
"-Wno-unused-but-set-variable",
]
}
ohos_executable("sgdisk") {
install_enable = true
sources = [
"attributes.cc",
"basicmbr.cc",
"bsd.cc",
"crc32.cc",
"diskio-unix.cc",
"diskio.cc",
"gpt.cc",
"gptcl.cc",
"gptpart.cc",
"guid.cc",
"mbr.cc",
"mbrpart.cc",
"parttypes.cc",
"sgdisk.cc",
"support.cc",
]
public_configs = [ ":gptdisk_config" ]
deps = [
"//third_party/e2fsprogs:libext2_uuid",
"//third_party/popt:popt_static",
]
subsystem_name = "thirdparty"
part_name = "gptfdisk"
install_images = [ "system" ]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_gptfdisk.git
git@gitee.com:openharmony/third_party_gptfdisk.git
openharmony
third_party_gptfdisk
third_party_gptfdisk
master

搜索帮助