Repository navigation
Expand file tree
/
Copy pathbuild_variables.bzl
More file actions
93 lines (88 loc) · 2.25 KB
/
Copy pathbuild_variables.bzl
File metadata and controls
93 lines (88 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
"""
Common build configuration definitions.
"""
GFXSTREAM_COMMON_COPTS = [
"-Wall",
"-Wextra",
"-Wformat",
"-Wshadow",
"-Wunused-result",
"-Wno-missing-field-initializers",
"-Wno-return-type-c-linkage",
"-Wno-unused-function",
"-Wno-unused-parameter",
"-Wno-unused-private-field",
"-Wno-unused-variable",
"-Wno-thread-safety-analysis",
"-Wno-thread-safety-attributes",
"-Wno-c++98-compat-pedantic",
"-Wno-old-style-cast",
"-Wno-pre-c++17-compat",
"-Wno-pre-c++20-compat-pedantic",
"-Wno-unsafe-buffer-usage",
] + select({
"@platforms//os:linux": [
"-Werror",
],
"//conditions:default": [],
})
GFXSTREAM_HOST_COPTS = GFXSTREAM_COMMON_COPTS + [
] + select({
"@platforms//os:windows": [
"/EHs-c-",
],
"//conditions:default": [
"-fno-exceptions",
],
})
GFXSTREAM_HOST_VK_DEFINES = [
"VK_GFXSTREAM_STRUCTURE_TYPE_EXT",
"VK_GOOGLE_gfxstream",
] + select({
"@platforms//os:macos": [
"VK_USE_PLATFORM_METAL_EXT",
"VK_USE_PLATFORM_MACOS_MVK",
],
"@platforms//os:windows": [
"VK_USE_PLATFORM_WIN32_KHR",
],
"@platforms//os:linux": [
"VK_USE_PLATFORM_XCB_KHR",
],
"//conditions:default": [],
})
GFXSTREAM_HOST_DEFINES = GFXSTREAM_HOST_VK_DEFINES + [
"BUILDING_EMUGL_COMMON_SHARED",
"EMUGL_BUILD",
"GFXSTREAM_ENABLE_HOST_GLES=1",
"GFXSTREAM_BUILD_WITH_SNAPSHOT_FRONTEND_SUPPORT=1",
"GFXSTREAM_BUILD_WITH_SNAPSHOT_SUPPORT=1",
"VK_BASE_VERSION_1_0",
"VK_BASE_VERSION_1_1",
"VK_BASE_VERSION_1_2",
"VK_BASE_VERSION_1_3",
"VK_BASE_VERSION_1_4",
"VK_COMPUTE_VERSION_1_0",
"VK_COMPUTE_VERSION_1_1",
"VK_COMPUTE_VERSION_1_2",
"VK_COMPUTE_VERSION_1_3",
"VK_COMPUTE_VERSION_1_4",
"VK_GRAPHICS_VERSION_1_0",
"VK_GRAPHICS_VERSION_1_1",
"VK_GRAPHICS_VERSION_1_2",
"VK_GRAPHICS_VERSION_1_3",
"VK_GRAPHICS_VERSION_1_4",
] + select({
"@platforms//os:windows": [
"WIN32_LEAN_AND_MEAN",
],
"//conditions:default": [],
})
GFXSTREAM_HOST_LINKOPTS = select({
"@platforms//os:linux": [
"-Wl,--warn-backrefs",
"-Wl,--warn-backrefs-exclude=*llvm*",
"-Wl,--fatal-warnings",
],
"//conditions:default": [],
})