1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//build/ohos/ndk/ndk.gni") 16 17ohos_ndk_headers("vulkan_header") { 18 dest_dir = "$ndk_headers_out_dir/vulkan" 19 sources = [ 20 "//interface/sdk_c/third_party/vulkan-headers/vulkan/vk_platform.h", 21 "//interface/sdk_c/third_party/vulkan-headers/vulkan/vulkan.h", 22 "//interface/sdk_c/third_party/vulkan-headers/vulkan/vulkan_core.h", 23 "//interface/sdk_c/third_party/vulkan-headers/vulkan/vulkan_ohos.h", 24 ] 25} 26 27ohos_ndk_headers("vulkan_header_vk_video") { 28 dest_dir = "$ndk_headers_out_dir/vk_video" 29 sources = [ 30 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std.h", 31 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_decode.h", 32 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h264std_encode.h", 33 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std.h", 34 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_decode.h", 35 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codec_h265std_encode.h", 36 "//interface/sdk_c/third_party/vulkan-headers/vk_video/vulkan_video_codecs_common.h", 37 ] 38} 39 40ohos_ndk_library("libvulkan_ndk") { 41 output_name = "vulkan" 42 output_extension = "so" 43 ndk_description_file = "./libvulkan.ndk.json" 44 system_capability = "SystemCapability.Graphic.Vulkan" 45 system_capability_headers = [ 46 "vulkan/vk_platform.h", 47 "vulkan/vulkan.h", 48 "vulkan/vulkan_core.h", 49 "vulkan/vulkan_ohos.h", 50 "vk_video/vulkan_video_codec_h264std.h", 51 "vk_video/vulkan_video_codec_h264std_decode.h", 52 "vk_video/vulkan_video_codec_h264std_encode.h", 53 "vk_video/vulkan_video_codec_h265std.h", 54 "vk_video/vulkan_video_codec_h265std_decode.h", 55 "vk_video/vulkan_video_codec_h265std_encode.h", 56 "vk_video/vulkan_video_codecs_common.h", 57 ] 58} 59