blob: ef90d21d9f02a64fc78d0de80abc897734957cb0 [file] [log] [blame]
/*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package {
default_visibility: [":__pkg__"],
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "framework-profiling-sources",
defaults: ["framework-sources-module-defaults"],
srcs: [
"java/**/*.java",
":framework-profiling-aidl-sources",
],
visibility: ["//packages/modules/Profiling/framework:__subpackages__"],
}
java_sdk_library {
name: "framework-profiling",
defaults: ["framework-module-defaults"],
installable: true,
jarjar_rules: "jarjar-rules.txt",
srcs: [
":framework-profiling-sources",
],
libs: [
"androidx.annotation_annotation",
],
aconfig_declarations: [
"android.os.profiling.flags-aconfig",
],
static_libs: [
"modules-utils-build",
"profiling_flags_not_exported_lib",
],
permitted_packages: [
"android.app",
"android.os",
"android.util",
"com.android.internal.profiling",
],
api_packages: [
"android.app",
"android.os",
"android.util",
],
hostdex: true, // for hiddenapi check
impl_library_visibility: [
"//packages/modules/Profiling/service:__subpackages__",
"//packages/modules/Profiling/tests:__subpackages__",
],
apex_available: [
"com.android.profiling",
],
min_sdk_version: "35",
}