File tree 3 files changed +13
-27
lines changed
src/tests/test_utils/third_party
3 files changed +13
-27
lines changed Original file line number Diff line number Diff line change @@ -497,28 +497,9 @@ config("libANGLE_config") {
497
497
498
498
if (angle_enable_vulkan ) {
499
499
config (" vulkan_config" ) {
500
- if (is_win ) {
501
- defines = [
502
- " VK_USE_PLATFORM_WIN32_KHR" ,
503
- " VK_USE_PLATFORM_WIN32_KHX" ,
504
- ]
505
- }
506
- if (is_linux ) {
507
- defines = [
508
- " VK_USE_PLATFORM_XCB_KHR" ,
509
- " VK_USE_PLATFORM_XCB_KHX" ,
510
- ]
511
- }
512
500
if (is_android ) {
513
- defines = [
514
- " VK_USE_PLATFORM_ANDROID_KHR" ,
515
- " VK_USE_PLATFORM_ANDROID_KHX" ,
516
- ]
517
501
libs = [ " vulkan" ]
518
502
}
519
- if (is_fuchsia ) {
520
- defines = [ " VK_USE_PLATFORM_FUCHSIA" ]
521
- }
522
503
}
523
504
524
505
# Use this target to include everything ANGLE needs for Vulkan.
Original file line number Diff line number Diff line change @@ -40,25 +40,17 @@ ANGLE_DISABLE_EXTRA_SEMI_WARNING
40
40
41
41
ANGLE_REENABLE_EXTRA_SEMI_WARNING
42
42
43
- #if defined(__linux__) && !defined(__ANDROID__)
44
- # define VK_USE_PLATFORM_XCB_KHR
45
- #endif
46
-
47
43
#ifdef _WIN32
48
44
# pragma comment(linker, "/subsystem:console")
49
45
# ifndef WIN32_LEAN_AND_MEAN
50
46
# define WIN32_LEAN_AND_MEAN
51
47
# endif
52
- # ifndef VK_USE_PLATFORM_WIN32_KHR
53
- # define VK_USE_PLATFORM_WIN32_KHR
54
- # endif
55
48
# ifndef NOMINMAX
56
49
# define NOMINMAX /* Don't let Windows define min() or max() */
57
50
# endif
58
51
# define APP_NAME_STR_LEN 80
59
52
#elif defined(__ANDROID__)
60
53
// Include files for Android
61
- # define VK_USE_PLATFORM_ANDROID_KHR
62
54
# include < android/log.h>
63
55
# include < unistd.h>
64
56
# include " util/OSWindow.h"
Original file line number Diff line number Diff line change @@ -10,6 +10,19 @@ import("../../gni/angle.gni")
10
10
11
11
config (" vulkan_headers_config" ) {
12
12
include_dirs = [ " src/include" ]
13
+
14
+ if (is_win ) {
15
+ defines = [ " VK_USE_PLATFORM_WIN32_KHR" ]
16
+ }
17
+ if (is_linux ) {
18
+ defines = [ " VK_USE_PLATFORM_XCB_KHR" ]
19
+ }
20
+ if (is_android ) {
21
+ defines = [ " VK_USE_PLATFORM_ANDROID_KHR" ]
22
+ }
23
+ if (is_fuchsia ) {
24
+ defines = [ " VK_USE_PLATFORM_FUCHSIA" ]
25
+ }
13
26
}
14
27
15
28
# Vulkan headers only, no compiled sources.
You can’t perform that action at this time.
0 commit comments