blob: b1f1e32726183a5671498b3bc558fce2f4dd4ec1 [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: ["frameworks_native_license"],
}
cc_defaults {
name: "libVkLayer_sample_defaults",
srcs: [
"sample_layer.cpp",
],
cflags: [
"-Wno-defaulted-function-deleted",
"-fvisibility=hidden",
],
header_libs: [
"vulkan_headers",
],
target: {
android: {
cflags: ["-DVK_USE_PLATFORM_ANDROID_KHR"],
shared_libs: ["liblog"],
},
},
sdk_version: "current",
stl: "c++_static",
}
cc_library_shared {
name: "libVkLayer_sample",
defaults: ["libVkLayer_sample_defaults"],
}
android_app {
name: "VkLayerSample",
manifest: "AndroidManifest.xml",
sdk_version: "system_current",
target_sdk_version: "35",
min_sdk_version: "28",
jni_libs: ["libVkLayer_sample"],
compile_multilib: "both",
use_embedded_native_libs: true,
owner: "google",
}
cc_library_shared {
name: "libVkLayer_sample_ol",
defaults: ["libVkLayer_sample_defaults"],
cflags: [
"-DLAYER_NAME=\"VK_LAYER_OEM_sample_ol\"",
"-DLAYER_DESCRIPTION=\"Android Vulkan Sample OEM Layer\"",
"-DLOG_TAG=\"VkSampleLayer_OEM\"",
],
product_specific: true,
relative_install_path: "vulkan",
}
cc_library_shared {
name: "libVkLayer_sample_pl",
defaults: ["libVkLayer_sample_defaults"],
cflags: [
"-DLAYER_NAME=\"VK_LAYER_PLATFORM_sample_pl\"",
"-DLAYER_DESCRIPTION=\"Android Vulkan Sample Platform Layer\"",
"-DLOG_TAG=\"VkSampleLayer_Platform\"",
],
relative_install_path: "vulkan",
}