Migrate libvulkan to ndk_library.
Test: make native Bug: http://b/30465923 Change-Id: I97199a600b71447fd14181e06be3f9221c2529f3
This commit is contained in:
parent
c43908821c
commit
0fbb5321ae
4 changed files with 198 additions and 0 deletions
|
@ -10,4 +10,5 @@ subdirs = [
|
|||
"libs/*",
|
||||
"opengl",
|
||||
"services/*",
|
||||
"vulkan",
|
||||
]
|
||||
|
|
24
vulkan/Android.bp
Normal file
24
vulkan/Android.bp
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright (C) 2016 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.
|
||||
|
||||
ndk_headers {
|
||||
name: "libvulkan_headers",
|
||||
from: "include",
|
||||
to: "",
|
||||
srcs: ["include/vulkan/**/*.h"],
|
||||
}
|
||||
|
||||
subdirs = [
|
||||
"libvulkan",
|
||||
]
|
20
vulkan/libvulkan/Android.bp
Normal file
20
vulkan/libvulkan/Android.bp
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright (C) 2016 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.
|
||||
|
||||
// Headers module is in frameworks/native/vulkan/Android.bp.
|
||||
ndk_library {
|
||||
name: "libvulkan.ndk",
|
||||
symbol_file: "libvulkan.map.txt",
|
||||
first_version: "24",
|
||||
}
|
153
vulkan/libvulkan/libvulkan.map.txt
Normal file
153
vulkan/libvulkan/libvulkan.map.txt
Normal file
|
@ -0,0 +1,153 @@
|
|||
LIBVULKAN {
|
||||
global:
|
||||
vkAcquireNextImageKHR;
|
||||
vkAllocateCommandBuffers;
|
||||
vkAllocateDescriptorSets;
|
||||
vkAllocateMemory;
|
||||
vkBeginCommandBuffer;
|
||||
vkBindBufferMemory;
|
||||
vkBindImageMemory;
|
||||
vkCmdBeginQuery;
|
||||
vkCmdBeginRenderPass;
|
||||
vkCmdBindDescriptorSets;
|
||||
vkCmdBindIndexBuffer;
|
||||
vkCmdBindPipeline;
|
||||
vkCmdBindVertexBuffers;
|
||||
vkCmdBlitImage;
|
||||
vkCmdClearAttachments;
|
||||
vkCmdClearColorImage;
|
||||
vkCmdClearDepthStencilImage;
|
||||
vkCmdCopyBuffer;
|
||||
vkCmdCopyBufferToImage;
|
||||
vkCmdCopyImage;
|
||||
vkCmdCopyImageToBuffer;
|
||||
vkCmdCopyQueryPoolResults;
|
||||
vkCmdDispatch;
|
||||
vkCmdDispatchIndirect;
|
||||
vkCmdDraw;
|
||||
vkCmdDrawIndexed;
|
||||
vkCmdDrawIndexedIndirect;
|
||||
vkCmdDrawIndirect;
|
||||
vkCmdEndQuery;
|
||||
vkCmdEndRenderPass;
|
||||
vkCmdExecuteCommands;
|
||||
vkCmdFillBuffer;
|
||||
vkCmdNextSubpass;
|
||||
vkCmdPipelineBarrier;
|
||||
vkCmdPushConstants;
|
||||
vkCmdResetEvent;
|
||||
vkCmdResetQueryPool;
|
||||
vkCmdResolveImage;
|
||||
vkCmdSetBlendConstants;
|
||||
vkCmdSetDepthBias;
|
||||
vkCmdSetDepthBounds;
|
||||
vkCmdSetEvent;
|
||||
vkCmdSetLineWidth;
|
||||
vkCmdSetScissor;
|
||||
vkCmdSetStencilCompareMask;
|
||||
vkCmdSetStencilReference;
|
||||
vkCmdSetStencilWriteMask;
|
||||
vkCmdSetViewport;
|
||||
vkCmdUpdateBuffer;
|
||||
vkCmdWaitEvents;
|
||||
vkCmdWriteTimestamp;
|
||||
vkCreateAndroidSurfaceKHR;
|
||||
vkCreateBuffer;
|
||||
vkCreateBufferView;
|
||||
vkCreateCommandPool;
|
||||
vkCreateComputePipelines;
|
||||
vkCreateDescriptorPool;
|
||||
vkCreateDescriptorSetLayout;
|
||||
vkCreateDevice;
|
||||
vkCreateEvent;
|
||||
vkCreateFence;
|
||||
vkCreateFramebuffer;
|
||||
vkCreateGraphicsPipelines;
|
||||
vkCreateImage;
|
||||
vkCreateImageView;
|
||||
vkCreateInstance;
|
||||
vkCreatePipelineCache;
|
||||
vkCreatePipelineLayout;
|
||||
vkCreateQueryPool;
|
||||
vkCreateRenderPass;
|
||||
vkCreateSampler;
|
||||
vkCreateSemaphore;
|
||||
vkCreateShaderModule;
|
||||
vkCreateSwapchainKHR;
|
||||
vkDestroyBuffer;
|
||||
vkDestroyBufferView;
|
||||
vkDestroyCommandPool;
|
||||
vkDestroyDescriptorPool;
|
||||
vkDestroyDescriptorSetLayout;
|
||||
vkDestroyDevice;
|
||||
vkDestroyEvent;
|
||||
vkDestroyFence;
|
||||
vkDestroyFramebuffer;
|
||||
vkDestroyImage;
|
||||
vkDestroyImageView;
|
||||
vkDestroyInstance;
|
||||
vkDestroyPipeline;
|
||||
vkDestroyPipelineCache;
|
||||
vkDestroyPipelineLayout;
|
||||
vkDestroyQueryPool;
|
||||
vkDestroyRenderPass;
|
||||
vkDestroySampler;
|
||||
vkDestroySemaphore;
|
||||
vkDestroyShaderModule;
|
||||
vkDestroySurfaceKHR;
|
||||
vkDestroySwapchainKHR;
|
||||
vkDeviceWaitIdle;
|
||||
vkEndCommandBuffer;
|
||||
vkEnumerateDeviceExtensionProperties;
|
||||
vkEnumerateDeviceLayerProperties;
|
||||
vkEnumerateInstanceExtensionProperties;
|
||||
vkEnumerateInstanceLayerProperties;
|
||||
vkEnumeratePhysicalDevices;
|
||||
vkFlushMappedMemoryRanges;
|
||||
vkFreeCommandBuffers;
|
||||
vkFreeDescriptorSets;
|
||||
vkFreeMemory;
|
||||
vkGetBufferMemoryRequirements;
|
||||
vkGetDeviceMemoryCommitment;
|
||||
vkGetDeviceProcAddr;
|
||||
vkGetDeviceQueue;
|
||||
vkGetEventStatus;
|
||||
vkGetFenceStatus;
|
||||
vkGetImageMemoryRequirements;
|
||||
vkGetImageSparseMemoryRequirements;
|
||||
vkGetImageSubresourceLayout;
|
||||
vkGetInstanceProcAddr;
|
||||
vkGetPhysicalDeviceFeatures;
|
||||
vkGetPhysicalDeviceFormatProperties;
|
||||
vkGetPhysicalDeviceImageFormatProperties;
|
||||
vkGetPhysicalDeviceMemoryProperties;
|
||||
vkGetPhysicalDeviceProperties;
|
||||
vkGetPhysicalDeviceQueueFamilyProperties;
|
||||
vkGetPhysicalDeviceSparseImageFormatProperties;
|
||||
vkGetPhysicalDeviceSurfaceCapabilitiesKHR;
|
||||
vkGetPhysicalDeviceSurfaceFormatsKHR;
|
||||
vkGetPhysicalDeviceSurfacePresentModesKHR;
|
||||
vkGetPhysicalDeviceSurfaceSupportKHR;
|
||||
vkGetPipelineCacheData;
|
||||
vkGetQueryPoolResults;
|
||||
vkGetRenderAreaGranularity;
|
||||
vkGetSwapchainImagesKHR;
|
||||
vkInvalidateMappedMemoryRanges;
|
||||
vkMapMemory;
|
||||
vkMergePipelineCaches;
|
||||
vkQueueBindSparse;
|
||||
vkQueuePresentKHR;
|
||||
vkQueueSubmit;
|
||||
vkQueueWaitIdle;
|
||||
vkResetCommandBuffer;
|
||||
vkResetCommandPool;
|
||||
vkResetDescriptorPool;
|
||||
vkResetEvent;
|
||||
vkResetFences;
|
||||
vkSetEvent;
|
||||
vkUnmapMemory;
|
||||
vkUpdateDescriptorSets;
|
||||
vkWaitForFences;
|
||||
local:
|
||||
*;
|
||||
};
|
Loading…
Reference in a new issue