mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Use the agreed upon include path for spirv-cross.
Everyone using spirv-cross includes its headers via <spirv_msl.hpp> for example. Make Dawn match that convention so it can play better with the setup used by other projects. Still leave <spirv-cross/spirv_msl.hpp> working for now because it is used by shaderc_spvc. A follow up CL to that repo will do the same change. BUG= Change-Id: I9dc590a809d7ba733113b07930a285acfca64a66 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10801 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
ce2adba679
commit
f5c44772a6
9
third_party/BUILD.gn
vendored
9
third_party/BUILD.gn
vendored
@@ -12,9 +12,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("../scripts/dawn_overrides_with_defaults.gni")
|
||||
import("../scripts/dawn_features.gni")
|
||||
import("//build_overrides/build.gni")
|
||||
import("../scripts/dawn_features.gni")
|
||||
import("../scripts/dawn_overrides_with_defaults.gni")
|
||||
|
||||
is_msvc = is_win && !is_clang
|
||||
|
||||
@@ -26,7 +26,10 @@ is_msvc = is_win && !is_clang
|
||||
spirv_cross_dir = dawn_spirv_cross_dir
|
||||
|
||||
config("spirv_cross_public") {
|
||||
include_dirs = [ "${spirv_cross_dir}/.." ]
|
||||
include_dirs = [
|
||||
"${spirv_cross_dir}",
|
||||
"${spirv_cross_dir}/..",
|
||||
]
|
||||
defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user