diff --git a/BUILD.gn b/BUILD.gn index 7c792f0e..812e6fd9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,6 +17,9 @@ config("libabigail_defaults") { cflags_cc = [ "-fexceptions", "-frtti", + "-Wno-unused-variable", + "-Wno-unused-value", + "-Wno-overloaded-virtual", ] } diff --git a/bundle.json b/bundle.json index d590089c..fc6c2715 100644 --- a/bundle.json +++ b/bundle.json @@ -22,11 +22,16 @@ "rom": "", "ram": "", "deps": { - "components": [], + "components": [ + "elfutils", + "libxml2" + ], "third_party": [] }, "build": { - "sub_component": [], + "sub_component": [ + "//third_party/libabigail:libabigail-tools_host_toolchain" + ], "inner_kits": [], "test": [] } diff --git a/config.h b/config.h index 7d1b6eee..9047ddfe 100644 --- a/config.h +++ b/config.h @@ -234,10 +234,10 @@ #define VERSION "2.4" /* Defined if user enabled BTF usage */ -#define WITH_BTF 1 +/* #define WITH_BTF 1*/ /* struct btf_enum64 is present */ -#define WITH_BTF_ENUM64 1 +/* #define WITH_BTF_ENUM64 1 */ /* The BTF_KIND_DECL_TAG enumerator is present */ /* #undef WITH_BTF_KIND_DECL_TAG */ @@ -252,7 +252,7 @@ #define WITH_BTF__TYPE_CNT 1 /* Defined if user enables and system has the libctf library */ -#define WITH_CTF 1 +/* #define WITH_CTF 1*/ /* compile the deb package support in abipkgdiff */ #define WITH_DEB 1 diff --git a/src/BUILD.gn b/src/BUILD.gn index dab5eee2..609b4b96 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -48,12 +48,12 @@ ohos_static_library("libabigail_static") { "//third_party/libabigail", "//third_party/libabigail/include", "//third_party/libabigail/src", - "//third_party/libxml2/include", ] - deps = [ "//third_party/libxml2:static_libxml2" ] - - external_deps = [ "elfutils:libdw_static" ] + external_deps = [ + "elfutils:libdw_static", + "libxml2:static_libxml2", + ] defines = [ "ABIGAIL_ROOT_SYSTEM_LIBDIR=\"lib\"" ]