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 abidiff 17ohos_executable("abidiff") { 18 configs = [ "//third_party/libabigail:libabigail_defaults" ] 19 sources = [ "abidiff.cc" ] 20 21 include_dirs = [ 22 "//third_party/libabigail", 23 "//third_party/libabigail/include", 24 ] 25 26 deps = [ "//third_party/libabigail/src:libabigail_static" ] 27 external_deps = [ "elfutils:libdw_static" ] 28 29 install_enable = false 30 subsystem_name = "thirdparty" 31 part_name = "libabigail" 32 license_file = "../LICENSE.txt" 33} 34 35# Build abidw 36ohos_executable("abidw") { 37 configs = [ "//third_party/libabigail:libabigail_defaults" ] 38 sources = [ "abidw.cc" ] 39 40 include_dirs = [ 41 "//third_party/libabigail", 42 "//third_party/libabigail/include", 43 ] 44 45 deps = [ "//third_party/libabigail/src:libabigail_static" ] 46 external_deps = [ "elfutils:libdw_static" ] 47 48 install_enable = false 49 subsystem_name = "thirdparty" 50 part_name = "libabigail" 51 license_file = "../LICENSE.txt" 52} 53