1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16config("e2fsprogs-defaults") { 17 cflags = [ 18 "-Wno-int-conversion", 19 "-Wno-implicit-function-declaration", 20 ] 21 defines = [ "secure_getenv=getenv" ] 22} 23config("libext2-headers") { 24 include_dirs = [ "//third_party/e2fsprogs/lib" ] 25} 26 27ohos_shared_library("libext2_com_err") { 28 sources = [ 29 "com_err.c", 30 "com_right.c", 31 "error_message.c", 32 "et_name.c", 33 "init_et.c", 34 ] 35 36 include_dirs = [ "." ] 37 configs = [ 38 ":e2fsprogs-defaults", 39 ":libext2-headers", 40 ] 41 install_enable = true 42 part_name = "e2fsprogs" 43 install_images = [ 44 "system", 45 "updater", 46 ] 47} 48