1# Copyright (c) 2023 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 16# Build libabigail 17ohos_static_library("libabigail_static") { 18 configs = [ "//third_party/libabigail:libabigail_defaults" ] 19 20 sources = [ 21 "abg-comp-filter.cc", 22 "abg-comparison.cc", 23 "abg-config.cc", 24 "abg-corpus.cc", 25 "abg-default-reporter.cc", 26 "abg-diff-utils.cc", 27 "abg-dwarf-reader.cc", 28 "abg-elf-based-reader.cc", 29 "abg-elf-helpers.cc", 30 "abg-elf-reader.cc", 31 "abg-fe-iface.cc", 32 "abg-hash.cc", 33 "abg-ini.cc", 34 "abg-ir.cc", 35 "abg-leaf-reporter.cc", 36 "abg-libxml-utils.cc", 37 "abg-reader.cc", 38 "abg-regex.cc", 39 "abg-reporter-priv.cc", 40 "abg-suppression.cc", 41 "abg-symtab-reader.cc", 42 "abg-tools-utils.cc", 43 "abg-traverse.cc", 44 "abg-writer.cc", 45 ] 46 47 include_dirs = [ 48 "//third_party/libabigail", 49 "//third_party/libabigail/include", 50 "//third_party/libabigail/src", 51 "//third_party/libxml2/include", 52 ] 53 54 deps = [ "//third_party/libxml2:static_libxml2" ] 55 56 external_deps = [ "elfutils:libdw_static" ] 57 58 defines = [ "ABIGAIL_ROOT_SYSTEM_LIBDIR=\"lib\"" ] 59 60 license_file = "../LICENSE.txt" 61 62 subsystem_name = "thirdparty" 63 part_name = "libabigail" 64} 65