moz.build (5473B)
1 # Generated by update-angle.py 2 3 include("../../moz.build.common") 4 5 DEFINES["ANGLE_DISABLE_POOL_ALLOC"] = True 6 DEFINES["ANGLE_ENABLE_D3D11"] = True 7 DEFINES["ANGLE_ENABLE_D3D11_COMPOSITOR_NATIVE_WINDOW"] = True 8 DEFINES["ANGLE_ENABLE_D3D9"] = True 9 DEFINES["ANGLE_ENABLE_SHARE_CONTEXT_LOCK"] = "1" 10 # DEFINES["ANGLE_IS_WIN"] = True 11 DEFINES["ANGLE_SHARED_LIBVULKAN"] = "1" 12 DEFINES["ANGLE_USE_CUSTOM_LIBVULKAN"] = True 13 DEFINES["ANGLE_VK_LAYERS_DIR"] = '"angledata"' 14 DEFINES["ANGLE_VK_MOCK_ICD_JSON"] = '"angledata/VkICD_mock_icd.json"' 15 DEFINES["ANGLE_VMA_VERSION"] = "2003000" 16 # DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 17 DEFINES["CR_CLANG_REVISION"] = '"llvmorg-16-init-6578-g0d30e92f-2"' 18 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 19 # DEFINES["NDEBUG"] = True 20 DEFINES["NOMINMAX"] = True 21 # DEFINES["NTDDI_VERSION"] = "NTDDI_WIN10_FE" 22 # DEFINES["NVALGRIND"] = True 23 # DEFINES["PSAPI_VERSION"] = "2" 24 DEFINES["UNICODE"] = True 25 # DEFINES["USE_AURA"] = "1" 26 # DEFINES["VK_USE_PLATFORM_WIN32_KHR"] = True 27 # DEFINES["WIN32"] = True 28 # DEFINES["WIN32_LEAN_AND_MEAN"] = True 29 # DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 30 DEFINES["WINVER"] = "0x0A00" 31 DEFINES["_ATL_NO_OPENGL"] = True 32 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 33 DEFINES["_CRT_RAND_S"] = True 34 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 35 DEFINES["_HAS_EXCEPTIONS"] = "0" 36 # DEFINES["_HAS_NODISCARD"] = True 37 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 38 DEFINES["_SECURE_ATL"] = True 39 DEFINES["_UNICODE"] = True 40 # DEFINES["_WIN32_WINNT"] = "0x0A00" 41 # DEFINES["_WINDOWS"] = True 42 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 43 # DEFINES["__STD_C"] = True 44 45 LOCAL_INCLUDES += [ 46 "../../checkout/", 47 "../../checkout/include/", 48 "../../checkout/out/gen/", 49 "../../checkout/src/", 50 "../../checkout/src/common/third_party/base/", 51 "../../checkout/src/third_party/volk/", 52 "../../checkout/third_party/vulkan-deps/vulkan-headers/src/include/", 53 ] 54 55 # CXXFLAGS += [ 56 # "-add-plugin", 57 # "-D__DATE__=", 58 # "-D__TIME__=", 59 # "-D__TIMESTAMP__=", 60 # "-fcolor-diagnostics", 61 # "-fcomplete-member-pointers", 62 # "-fcrash-diagnostics-dir=../tools/clang/crashreports", 63 # "-ffile-compilation-dir=.", 64 # "-ffile-reproducible", 65 # "-fmerge-all-constants", 66 # "-fmsc-version=1916", 67 # "-fno-delete-null-pointer-checks", 68 # "-fno-ident", 69 # "-ftrivial-auto-var-init=pattern", 70 # "-fuse-ctor-homing", 71 # "-gcodeview-ghash", 72 # "-instcombine-lower-dbg-declare=0", 73 # "-m64", 74 # "-mllvm", 75 # "-msse3", 76 # "-no-canonical-prefixes", 77 # "-plugin-arg-find-bad-constructs", 78 # "-Wbad-function-cast", 79 # "-Wconditional-uninitialized", 80 # "-Wenum-compare-conditional", 81 # "-Wexit-time-destructors", 82 # "-Wextra-semi", 83 # "-Wextra-semi-stmt", 84 # "-Wfloat-conversion", 85 # "-Wglobal-constructors", 86 # "-Wheader-hygiene", 87 # "-Wimplicit-fallthrough", 88 # "-Winconsistent-missing-destructor-override", 89 # "-Wloop-analysis", 90 # "-Wmissing-field-initializers", 91 # "-Wnewline-eof", 92 # "-Wno-bitfield-constant-conversion", 93 # "-Wno-builtin-macro-redefined", 94 # "-Wno-deprecated-builtins", 95 # "-Wno-ignored-pragma-optimize", 96 # "-Wno-missing-field-initializers", 97 # "-Wno-nonportable-include-path", 98 # "-Wno-psabi", 99 # "-Wno-trigraphs", 100 # "-Wno-unneeded-internal-declaration", 101 # "-Wno-unused-parameter", 102 # "-Wnon-virtual-dtor", 103 # "-Wparentheses", 104 # "-Wrange-loop-analysis", 105 # "-Wredundant-parens", 106 # "-Wreturn-std-move", 107 # "-Wshadow", 108 # "-Wshadow-field", 109 # "-Wshorten-64-to-32", 110 # "-Wstrict-prototypes", 111 # "-Wstring-conversion", 112 # "-Wsuggest-destructor-override", 113 # "-Wsuggest-override", 114 # "-Wtautological-overlap-compare", 115 # "-Wtautological-type-limit-compare", 116 # "-Wthread-safety", 117 # "-Wundefined-reinterpret-cast", 118 # "-Wunneeded-internal-declaration", 119 # "-Wunreachable-code-aggressive", 120 # "-Wunused-but-set-variable", 121 # "-Xclang", 122 # "/bigobj", 123 # "/Brepro", 124 # "/clang:-ffp-contract=off", 125 # "/D__WRL_ENABLE_FUNCTION_STATICS__", 126 # "/FS", 127 # "/GR-", 128 # "/guard:cf", 129 # "/Gw", 130 # "/Gy", 131 # "/MT", 132 # "/O1", 133 # "/Ob2", 134 # "/Oi", 135 # "/Oy-", 136 # "/std:c++17", 137 # "/TP", 138 # "/utf-8", 139 # "/W4", 140 # "/we4244", 141 # "/we4312", 142 # "/we4456", 143 # "/we4458", 144 # "/we4715", 145 # "/we4800", 146 # "/we4838", 147 # "/WX", 148 # "/Z7", 149 # "/Zc:inline", 150 # "/Zc:sizedDealloc-", 151 # "/Zc:twoPhase", 152 # "find-bad-constructs", 153 # "raw-ref-template-as-trivial-member", 154 # ] 155 156 SOURCES += [ 157 "../../checkout/src/common/vulkan/libvulkan_loader.cpp", 158 "../../checkout/src/common/vulkan/vulkan_icd.cpp", 159 "../../checkout/src/gpu_info_util/SystemInfo.cpp", 160 "../../checkout/src/gpu_info_util/SystemInfo_vulkan.cpp", 161 "../../checkout/src/third_party/volk/volk.c", 162 ] 163 164 if CONFIG["OS_ARCH"] == "WINNT": 165 SOURCES += [ 166 "../../checkout/src/gpu_info_util/SystemInfo_win.cpp", 167 ] 168 169 USE_LIBS += [ 170 "angle_common", 171 ] 172 173 OS_LIBS += [ 174 "dxgi", 175 "setupapi", 176 ] 177 178 # LDFLAGS += [ 179 # "--color-diagnostics", 180 # "/call-graph-profile-sort:no", 181 # "/CETCOMPAT", 182 # "/DEBUG:GHASH", 183 # "/DELAYLOAD:d3d9.dll", 184 # "/FIXED:NO", 185 # "/INCREMENTAL:NO", 186 # "/lldignoreenv", 187 # "/OPT:ICF", 188 # "/OPT:NOLLDTAILMERGE", 189 # "/OPT:REF", 190 # "/PROFILE", 191 # "/TIMESTAMP:1664686800", 192 # "/WX", 193 # ] 194 195 Library("angle_gpu_info_util")