blob: 36e894ae05053b75afa2187d62f6e1bbaca2af67 [file]
// Copyright (C) 2026 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_applicable_licenses: ["Android-Apache-2.0"],
}
java_library_static {
name: "libnative_service_gtest_runner",
srcs: ["src/**/*.java"],
static_libs: [
"am_flags_lib",
"android.os.flags-aconfig-java",
"androidx.test.ext.junit",
"androidx.test.runner",
"junit",
"platform-test-annotations",
"libgtest_native_service_interface-java",
],
}
// Build target for the native service library
cc_library_shared {
name: "libgtest_native_service",
srcs: [
"lib/GTestNativeService.cpp",
],
header_libs: [
"libbinder_headers",
],
static_libs: [
"libgtest_native_service_interface-ndk",
"libgtest",
],
shared_libs: [
"libandroid",
"libbinder_ndk",
"liblog",
],
}
aidl_interface {
name: "libgtest_native_service_interface",
unstable: true,
srcs: [
"lib/**/*.aidl",
],
local_include_dir: "lib/aidl",
backend: {
java: {
platform_apis: false,
},
ndk: {
enabled: true,
},
},
}