Provide the skia_vulkan_header variable now required by Skia's Vulkan build scripts (flutter/engine#4459)
This commit is contained in:
@@ -162,7 +162,7 @@ def to_gn_args(args):
|
||||
gn_args['shell_enable_vulkan'] = True
|
||||
# Configure Skia for Vulkan support.
|
||||
gn_args['skia_use_vulkan'] = True
|
||||
gn_args['skia_vulkan_headers'] = "//third_party/vulkan/src"
|
||||
gn_args['skia_vulkan_header'] = "flutter/vulkan/skia_vulkan_header.h"
|
||||
|
||||
# We should not need a special case for x86, but this seems to introduce text relocations
|
||||
# even with -fPIC everywhere.
|
||||
|
||||
11
engine/src/flutter/vulkan/skia_vulkan_header.h
Normal file
11
engine/src/flutter/vulkan/skia_vulkan_header.h
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#ifndef VK_USE_PLATFORM_ANDROID_KHR
|
||||
#define VK_USE_PLATFORM_ANDROID_KHR 1
|
||||
#endif // VK_USE_PLATFORM_ANDROID_KHR
|
||||
#endif // __ANDROID__
|
||||
|
||||
#include "third_party/vulkan/src/vulkan/vulkan.h"
|
||||
Reference in New Issue
Block a user