Provide the skia_vulkan_header variable now required by Skia's Vulkan build scripts (flutter/engine#4459)

This commit is contained in:
Jason Simmons
2017-12-13 17:17:05 -08:00
committed by GitHub
parent e5c8844f6d
commit 49769ea252
2 changed files with 12 additions and 1 deletions

View File

@@ -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.

View 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"