platform_bionic/libc/malloc_hooks/Android.bp
Bob Badour aa7d835fdd Add LOCAL_LICENSE_KINDS to bionic
Added SPDX-license-identifier-Apache-2.0 to:
  apex/Android.bp
  libdl/Android.bp
  tools/Android.bp
  tools/versioner/Android.bp
  tools/versioner/src/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  benchmarks/Android.bp
  benchmarks/linker_relocation/gen/Android.bp
  libc/malloc_debug/Android.bp
  libc/system_properties/Android.bp
  tests/Android.bp
  tests/libs/Android.bp
  tests/libs/Android.build.dlext_testzip.mk
  tests/make_fortify_compile_test.mk

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-ISC SPDX-license-identifier-MIT
    legacy_notice legacy_unencumbered
to:
  libc/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT legacy_unencumbered
to:
  libm/Android.bp

Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered
to:
  libc/tools/Android.bp

Added SPDX-license-identifier-BSD
to:
  benchmarks/linker_relocation/Android.bp
  benchmarks/spawn/Android.bp
  libc/async_safe/Android.bp
  libc/malloc_hooks/Android.bp
  libfdtrack/Android.bp
  linker/Android.bp
  tests/headers/Android.bp
  tests/headers/posix/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ib05bcaa276b3aa71a7654ccbe8e67e1f16aec9f3
2021-02-19 23:38:28 +00:00

85 lines
1.8 KiB
Text

// ==============================================================
// libc_malloc_hooks.so
// ==============================================================
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "bionic_libc_license"
// to get the below license kinds:
// SPDX-license-identifier-BSD
default_applicable_licenses: ["bionic_libc_license"],
}
cc_library {
name: "libc_malloc_hooks",
srcs: [
"malloc_hooks.cpp",
],
static_libs: [
"libasync_safe",
],
multilib: {
lib32: {
version_script: "exported32.map",
},
lib64: {
version_script: "exported64.map",
},
},
include_dirs: ["bionic/libc"],
sanitize: {
never: true,
},
native_coverage: false,
cflags: [
"-Wall",
"-Werror",
"-fno-stack-protector",
],
apex_available: [
"com.android.runtime",
],
static: {
apex_available: [
"//apex_available:platform",
],
},
}
// ==============================================================
// Unit Tests
// ==============================================================
cc_test {
name: "malloc_hooks_system_tests",
isolated: true,
srcs: [
"tests/malloc_hooks_tests.cpp",
],
whole_static_libs: ["libc_malloc_hooks"],
shared_libs: ["libbase"],
local_include_dirs: ["tests"],
include_dirs: [
"bionic/libc",
"bionic"
],
header_libs: [
"bionic_libc_platform_headers",
],
cflags: [
"-Wall",
"-Werror",
"-O1", // FIXME: http://b/169206016 - issues with aligned_alloc and -O2
],
test_suites: ["general-tests"],
}