Changes dependency on vulkan-tools typemap header.
- Changed path to include only vulkan-tools directory to allow for easier configuration in Skia which cannot use vulkan-deps at the moment. Bug: dawn:1365 Change-Id: Icbd0d3503b4af9d89b23f89c87f18fde814062f6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86582 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Shrek Shao <shrekshao@google.com> Commit-Queue: Loko Kung <lokokung@google.com>
This commit is contained in:
parent
8b8b641326
commit
83a5d52ed1
|
@ -146,6 +146,7 @@ set_if_not_defined(DAWN_SWIFTSHADER_DIR "${DAWN_THIRD_PARTY_DIR}/swiftshader" "D
|
|||
set_if_not_defined(DAWN_TINT_DIR "${Dawn_SOURCE_DIR}" "Directory in which to find Tint")
|
||||
set_if_not_defined(DAWN_VULKAN_DEPS_DIR "${DAWN_THIRD_PARTY_DIR}/vulkan-deps" "Directory in which to find vulkan-deps")
|
||||
set_if_not_defined(DAWN_VULKAN_HEADERS_DIR "${DAWN_VULKAN_DEPS_DIR}/vulkan-headers/src" "Directory in which to find Vulkan-Headers")
|
||||
set_if_not_defined(DAWN_VULKAN_TOOLS_DIR "${DAWN_VULKAN_DEPS_DIR}/vulkan-tools/src" "Directory in which to find Vulkan-Tools")
|
||||
|
||||
# Dependencies for DAWN_BUILD_NODE_BINDINGS
|
||||
set_if_not_defined(NODE_ADDON_API_DIR "${DAWN_THIRD_PARTY_DIR}/node-addon-api" "Directory in which to find node-addon-api")
|
||||
|
|
|
@ -99,9 +99,9 @@ config("vulkan_rpath") {
|
|||
}
|
||||
}
|
||||
|
||||
# Config that adds include directory for vulkan-deps, specifically for Vulkan-Tools.
|
||||
config("vulkan_deps_include") {
|
||||
include_dirs = [ "${dawn_vulkan_deps_dir}" ]
|
||||
# Config that adds include directory for vulkan-tools.
|
||||
config("vulkan_tools_include") {
|
||||
include_dirs = [ "${dawn_vulkan_tools_dir}" ]
|
||||
}
|
||||
|
||||
dawn_json_generator("utils_gen") {
|
||||
|
@ -577,7 +577,7 @@ source_set("sources") {
|
|||
}
|
||||
|
||||
if (dawn_enable_vulkan) {
|
||||
configs += [ ":vulkan_deps_include" ]
|
||||
configs += [ ":vulkan_tools_include" ]
|
||||
deps += [ "${dawn_vulkan_tools_dir}:vulkan_tools_headers" ]
|
||||
public_deps += [ "${dawn_vulkan_headers_dir}:vulkan_headers" ]
|
||||
sources += [
|
||||
|
|
|
@ -516,7 +516,7 @@ if (DAWN_ENABLE_VULKAN)
|
|||
)
|
||||
|
||||
target_link_libraries(dawn_native PUBLIC Vulkan-Headers)
|
||||
target_include_directories(dawn_native PRIVATE ${DAWN_VULKAN_DEPS_DIR})
|
||||
target_include_directories(dawn_native PRIVATE ${DAWN_VULKAN_TOOLS_DIR})
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
target_sources(dawn_native PRIVATE
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "dawn/common/vulkan_platform.h"
|
||||
#include "dawn/native/CacheKey.h"
|
||||
|
||||
#include "vulkan-tools/src/icd/generated/vk_typemap_helper.h"
|
||||
#include "icd/generated/vk_typemap_helper.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
Loading…
Reference in New Issue