Skip to content

Commit

Permalink
Make libbacktrace buildable for native_bridge
Browse files Browse the repository at this point in the history
Bug: http://b/153609531

Test: m -j64 libbacktrace.native_bridge

Change-Id: I2b8a881b4e952f3b68dbcaeb14f147a6d955b406
Merged-In: I2b8a881b4e952f3b68dbcaeb14f147a6d955b406

Former-commit-id: fb60e6c9aed973759e1fbd66a1dfbfc5b7cdaef6
  • Loading branch information
Victor Khimenko committed Jul 10, 2020
1 parent 3e9b9e8 commit 9e43ebd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libbacktrace/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ cc_defaults {
cc_library {
name: "libbacktrace",
vendor_available: false,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
recovery_available: true,
apex_available: [
"//apex_available:platform",
Expand All @@ -120,6 +122,9 @@ cc_library {
recovery: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"],
},
native_bridge: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"],
},
},
}

Expand Down
2 changes: 2 additions & 0 deletions libprocinfo/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ cc_library {
name: "libprocinfo",
defaults: ["libprocinfo_defaults"],
vendor_available: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
recovery_available: true,
vndk: {
enabled: true,
Expand Down
7 changes: 7 additions & 0 deletions libunwindstack/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ cc_library {
name: "libunwindstack",
vendor_available: true,
recovery_available: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
vndk: {
enabled: true,
support_system_process: true,
Expand All @@ -134,6 +136,11 @@ cc_library {
exclude_srcs: ["DexFile.cpp"],
exclude_shared_libs: ["libdexfile_support"],
},
native_bridge: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
exclude_shared_libs: ["libdexfile_support"],
},
},

apex_available: [
Expand Down
2 changes: 2 additions & 0 deletions libutils/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ cc_library {
cc_library {
name: "libutilscallstack",
defaults: ["libutils_defaults"],
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,

srcs: [
"CallStack.cpp",
Expand Down

0 comments on commit 9e43ebd

Please sign in to comment.