2018-02-22 21:59:06 +00:00
|
|
|
AllowCompilerWarnings()
|
2021-02-05 02:14:04 +00:00
|
|
|
|
2020-12-28 22:35:37 +00:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-final-dtor-non-final-class',
|
|
|
|
'-Wno-implicit-const-int-float-conversion',
|
|
|
|
'-Wno-range-loop-construct',
|
|
|
|
]
|
2018-02-22 21:59:06 +00:00
|
|
|
|
2021-07-30 11:39:39 +00:00
|
|
|
CXXFLAGS += CONFIG['MOZ_X11_CFLAGS']
|
2021-02-05 02:14:04 +00:00
|
|
|
|
2018-03-06 05:46:12 +00:00
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
|
|
|
CXXFLAGS += CONFIG['SSE2_FLAGS']
|
2021-02-05 02:14:04 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
DEFINES['ANGLE_IS_WIN'] = True
|
|
|
|
|
|
|
|
# ANGLE wants NTDDI_WIN10_VB, but:
|
2021-08-30 21:29:35 +00:00
|
|
|
# > /builds/worker/checkouts/gecko/vs2017_15.9.6/SDK/include/10.0.17134.0/winrt/wrl/def.h(48,2):
|
2021-02-05 02:14:04 +00:00
|
|
|
# > #error WRL requires NTDDI_VERSION to be #defined at least to NTDDI_VISTA or greater
|
|
|
|
DEFINES['NTDDI_VERSION'] = 'NTDDI_WIN10_RS2'
|
|
|
|
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
|
|
|
DEFINES['X86_WINDOWS'] = True
|
|
|
|
else:
|
|
|
|
DEFINES['ANGLE_PLATFORM_EXPORT'] = ''
|
|
|
|
|
2018-02-22 21:59:06 +00:00
|
|
|
DEFINES['__NDK_FPABI__'] = ''
|
|
|
|
DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
|
2018-07-17 02:52:06 +00:00
|
|
|
DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = True
|
2021-02-05 02:14:04 +00:00
|
|
|
DEFINES['ANGLE_TRANSLATOR_ESSL_ONLY'] = True
|