Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 298dc558 authored by Jesse Hall's avatar Jesse Hall Committed by android-build-merger
Browse files

Prepare for moving Vulkan headers

am: 408eda00

Change-Id: I29458285d7b7b82bc8be85d4704c7a566e10a3e6
parents 822b5e42 408eda00
Loading
Loading
Loading
Loading
+23 −13
Original line number Diff line number Diff line
@@ -12,8 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// This module defines which headers are included in the NDK sysroot during
// the NDK build process.
ndk_headers {
    name: "libvulkan_headers",
    name: "ndk_vulkan_headers",
    from: "include",
    to: "",
    srcs: [
@@ -25,8 +27,28 @@ ndk_headers {
    license: "include/vulkan/NOTICE",
}

// This module makes Vulkan headers available to other modules without
// having to link against libvulkan.so, e.g. for the Vulkan loader and
// drivers, or things that dlopen libvulkan.so. It's available to system
// modules, as part of the VNDK, and to unbundled modules.
cc_library_headers {
    name: "vulkan_headers",
    export_include_dirs: ["include"],
    vendor_available: true,
    sdk_version: "24",
}

// This module makes Vulkan headers available to vendor code that is
// restricted to LLNDK dependencies.
llndk_headers {
    name: "vulkan_headers_llndk",
    export_include_dirs: ["include"],
}

// This module makes the Vulkan libhardware HAL headers available, for
// the loader and for HAL/driver implementations.
cc_library_headers {
    name: "hwvulkan_headers",
    vendor_available: true,
    header_libs: [
        "libcutils_headers",
@@ -39,18 +61,6 @@ cc_library_headers {
    export_include_dirs: ["include"],
}

cc_library_headers {
    name: "vulkan_headers_ndk",
    export_include_dirs: ["include"],
    sdk_version: "24",
}

llndk_library {
    name: "libvulkan",
    symbol_file: "libvulkan/libvulkan.map.txt",
    export_include_dirs: ["include"],
}

subdirs = [
    "nulldrv",
    "libvulkan",
+10 −1
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@ ndk_library {
    unversioned_until: "current",
}

llndk_library {
    name: "libvulkan",
    symbol_file: "libvulkan.map.txt",
    export_llndk_headers: [
        "vulkan_headers_llndk",
    ],
}

cc_library_shared {
    name: "libvulkan",
    clang: true,
@@ -65,10 +73,11 @@ cc_library_shared {
        "swapchain.cpp",
    ],

    export_header_lib_headers: ["vulkan_headers"],
    header_libs: [
        "hwvulkan_headers",
        "vulkan_headers",
    ],
    export_header_lib_headers: ["vulkan_headers"],
    shared_libs: [
        "android.hardware.configstore@1.0",
        "android.hardware.configstore-utils",
+4 −1
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ cc_library_shared {
        "null_driver_gen.cpp",
    ],

    header_libs: ["vulkan_headers"],
    header_libs: [
        "hwvulkan_headers",
        "vulkan_headers",
    ],
    shared_libs: ["liblog"],
}
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ cc_library_static {
        "libjsoncpp_ndk",
    ],
    header_libs: [
        "vulkan_headers_ndk",
        "vulkan_headers",
    ],
    sdk_version: "24",
    stl: "libc++_static",