1*2680e0c0SChristopher Ferris// 2*2680e0c0SChristopher Ferris// Copyright (C) 2022 The Android Open Source Project 3*2680e0c0SChristopher Ferris// 4*2680e0c0SChristopher Ferris// Licensed under the Apache License, Version 2.0 (the "License"); 5*2680e0c0SChristopher Ferris// you may not use this file except in compliance with the License. 6*2680e0c0SChristopher Ferris// You may obtain a copy of the License at 7*2680e0c0SChristopher Ferris// 8*2680e0c0SChristopher Ferris// http://www.apache.org/licenses/LICENSE-2.0 9*2680e0c0SChristopher Ferris// 10*2680e0c0SChristopher Ferris// Unless required by applicable law or agreed to in writing, software 11*2680e0c0SChristopher Ferris// distributed under the License is distributed on an "AS IS" BASIS, 12*2680e0c0SChristopher Ferris// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*2680e0c0SChristopher Ferris// See the License for the specific language governing permissions and 14*2680e0c0SChristopher Ferris// limitations under the License. 15*2680e0c0SChristopher Ferris// 16*2680e0c0SChristopher Ferris 17*2680e0c0SChristopher Ferrispackage { 18*2680e0c0SChristopher Ferris default_applicable_licenses: ["external_dlmalloc_license"], 19*2680e0c0SChristopher Ferris} 20*2680e0c0SChristopher Ferris 21*2680e0c0SChristopher Ferris 22*2680e0c0SChristopher Ferrislicense { 23*2680e0c0SChristopher Ferris name: "external_dlmalloc_license", 24*2680e0c0SChristopher Ferris visibility: [":__subpackages__"], 25*2680e0c0SChristopher Ferris license_kinds: ["legacy_unencumbered"], 26*2680e0c0SChristopher Ferris license_text: ["NOTICE"], 27*2680e0c0SChristopher Ferris} 28*2680e0c0SChristopher Ferris 29*2680e0c0SChristopher Ferris// In an ideal world, dlmalloc should be declared as a cc_static_library and 30*2680e0c0SChristopher Ferris// linked against libart, but at the moment dlmalloc.c (the source file) is 31*2680e0c0SChristopher Ferris// included directly in art/runtime/gc/allocator/art-dlmalloc.cc, and that is 32*2680e0c0SChristopher Ferris// made possible by this declaration of dlmalloc as cc_library_headers. 33*2680e0c0SChristopher Ferris// 34*2680e0c0SChristopher Ferris// TODO: Find a better solution to make dlmalloc be linked against libart 35*2680e0c0SChristopher Ferris// without the current dlmalloc.c source inclusion. 36*2680e0c0SChristopher Ferriscc_library_headers { 37*2680e0c0SChristopher Ferris name: "dlmalloc", 38*2680e0c0SChristopher Ferris host_supported: true, 39*2680e0c0SChristopher Ferris export_include_dirs: ["."], 40*2680e0c0SChristopher Ferris apex_available: [ 41*2680e0c0SChristopher Ferris "com.android.art", 42*2680e0c0SChristopher Ferris "com.android.art.debug", 43*2680e0c0SChristopher Ferris "//apex_available:platform", 44*2680e0c0SChristopher Ferris ], 45*2680e0c0SChristopher Ferris min_sdk_version: "apex_inherit", 46*2680e0c0SChristopher Ferris tidy: false, 47*2680e0c0SChristopher Ferris} 48