mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal
This commit is contained in:
parent
e861db37d3
commit
629ba560a7
@ -47,11 +47,6 @@ LOCAL_INCLUDES += [
|
|||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
# The midl generated code include Windows headers which defines min and max
|
|
||||||
# macros which conflicts with std::min/max. Suppress the macros:
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
||||||
include('/ipc/chromium/chromium-config.mozbuild')
|
include('/ipc/chromium/chromium-config.mozbuild')
|
||||||
|
@ -19,10 +19,6 @@ LOCAL_INCLUDES += [
|
|||||||
'/accessible/xul',
|
'/accessible/xul',
|
||||||
]
|
]
|
||||||
|
|
||||||
# The midl generated code include Windows headers which defines min and max
|
|
||||||
# macros which conflicts with std::min/max. Suppress the macros:
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
@ -19,9 +19,4 @@ LOCAL_INCLUDES += [
|
|||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
# The midl generated code include Windows headers which defines min and max
|
|
||||||
# macros which conflicts with std::min/max. Suppress the macros:
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
# http://support.microsoft.com/kb/143208
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
GeckoCppUnitTests([
|
GeckoCppUnitTests([
|
||||||
'TestWebGLElementArrayCache',
|
'TestWebGLElementArrayCache',
|
||||||
])
|
])
|
||||||
|
@ -36,9 +36,6 @@ EXPORTS.mozilla.dom += [
|
|||||||
'WebGLVertexArrayObject.h',
|
'WebGLVertexArrayObject.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
# http://support.microsoft.com/kb/143208
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
# Canvas 2D and common sources
|
# Canvas 2D and common sources
|
||||||
UNIFIED_SOURCES += [
|
UNIFIED_SOURCES += [
|
||||||
'CanvasImageCache.cpp',
|
'CanvasImageCache.cpp',
|
||||||
|
@ -41,6 +41,3 @@ FINAL_LIBRARY = 'xul'
|
|||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
'/media/webrtc/trunk/webrtc/modules/video_capture/windows',
|
'/media/webrtc/trunk/webrtc/modules/video_capture/windows',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
@ -23,8 +23,5 @@ FINAL_LIBRARY = 'xul'
|
|||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
if CONFIG['MOZ_GONK_MEDIACODEC']:
|
if CONFIG['MOZ_GONK_MEDIACODEC']:
|
||||||
DEFINES['MOZ_GONK_MEDIACODEC'] = True
|
DEFINES['MOZ_GONK_MEDIACODEC'] = True
|
||||||
|
@ -23,6 +23,3 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
@ -82,6 +82,3 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
@ -31,9 +31,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
||||||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||||
|
@ -83,9 +83,6 @@ if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
|
|||||||
]
|
]
|
||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
|
|
||||||
if CONFIG['_MSC_VER']:
|
if CONFIG['_MSC_VER']:
|
||||||
CXXFLAGS += [
|
CXXFLAGS += [
|
||||||
|
@ -98,7 +98,6 @@ if CONFIG['GNU_CXX']:
|
|||||||
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
||||||
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
||||||
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
||||||
DEFINES['_HAS_EXCEPTIONS'] = 0
|
DEFINES['_HAS_EXCEPTIONS'] = 0
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ if CONFIG['GNU_CXX']:
|
|||||||
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
||||||
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
||||||
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
||||||
DEFINES['_HAS_EXCEPTIONS'] = 0
|
DEFINES['_HAS_EXCEPTIONS'] = 0
|
||||||
|
|
||||||
|
@ -193,7 +193,6 @@ if CONFIG['GNU_CXX']:
|
|||||||
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
||||||
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
||||||
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
||||||
DEFINES['_HAS_EXCEPTIONS'] = 0
|
DEFINES['_HAS_EXCEPTIONS'] = 0
|
||||||
|
|
||||||
|
@ -54,7 +54,6 @@ FINAL_LIBRARY = 'gkmedias'
|
|||||||
|
|
||||||
DEFINES['PACKAGE_VERSION'] = '"moz"'
|
DEFINES['PACKAGE_VERSION'] = '"moz"'
|
||||||
DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
|
DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
||||||
DEFINES['OTS_DLL'] = True
|
DEFINES['OTS_DLL'] = True
|
||||||
|
@ -23,7 +23,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||||||
DEFINES.update({
|
DEFINES.update({
|
||||||
'UNICODE': True,
|
'UNICODE': True,
|
||||||
'_UNICODE': True,
|
'_UNICODE': True,
|
||||||
'NOMINMAX': True,
|
|
||||||
'_CRT_RAND_S': True,
|
'_CRT_RAND_S': True,
|
||||||
'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS': True,
|
'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS': True,
|
||||||
'_SECURE_ATL': True,
|
'_SECURE_ATL': True,
|
||||||
|
@ -77,7 +77,6 @@ elif CONFIG['OS_TARGET'] == 'WINNT':
|
|||||||
DEFINES['WIN'] = True
|
DEFINES['WIN'] = True
|
||||||
# for stun.h
|
# for stun.h
|
||||||
DEFINES['WIN32'] = True
|
DEFINES['WIN32'] = True
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
'/media/mtransport/third_party/nrappkit/src/port/win32/include',
|
'/media/mtransport/third_party/nrappkit/src/port/win32/include',
|
||||||
]
|
]
|
||||||
|
@ -72,7 +72,6 @@ if CONFIG['OS_TARGET'] == 'WINNT':
|
|||||||
DEFINES['WIN'] = True
|
DEFINES['WIN'] = True
|
||||||
# for stun.h
|
# for stun.h
|
||||||
DEFINES['WIN32'] = True
|
DEFINES['WIN32'] = True
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
DEFINES['__Userspace_os_Windows'] = 1
|
DEFINES['__Userspace_os_Windows'] = 1
|
||||||
else:
|
else:
|
||||||
# Works for Darwin, Linux, Android. Probably doesn't work for others.
|
# Works for Darwin, Linux, Android. Probably doesn't work for others.
|
||||||
|
@ -39,7 +39,7 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
|
|||||||
SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
|
SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
|
||||||
|
|
||||||
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
||||||
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
'_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
|
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
|
||||||
|
@ -17,7 +17,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||||||
SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
|
SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
|
||||||
|
|
||||||
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
||||||
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
'_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
|
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
|
||||||
|
@ -19,8 +19,7 @@ EXPORTS += [
|
|||||||
'sandboxBroker.h',
|
'sandboxBroker.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'NOMINMAX',
|
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS'):
|
||||||
'SANDBOX_EXPORTS'):
|
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
|
@ -16,7 +16,7 @@ Library('google_breakpad_libxul_s')
|
|||||||
|
|
||||||
FINAL_LIBRARY = 'xul'
|
FINAL_LIBRARY = 'xul'
|
||||||
|
|
||||||
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD', 'NOMINMAX'):
|
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD'):
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
|
@ -10,7 +10,7 @@ SOURCES += [
|
|||||||
|
|
||||||
Library('google_breakpad_libxul_staticruntime_s')
|
Library('google_breakpad_libxul_staticruntime_s')
|
||||||
|
|
||||||
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD', 'NOMINMAX'):
|
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD'):
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
FINAL_LIBRARY = 'breakpadinjector'
|
FINAL_LIBRARY = 'breakpadinjector'
|
||||||
|
|
||||||
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD', 'NOMINMAX'):
|
for var in ('UNICODE', 'UNICODE_', 'BREAKPAD_NO_TERMINATE_THREAD'):
|
||||||
DEFINES[var] = True
|
DEFINES[var] = True
|
||||||
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
|
@ -29,8 +29,6 @@ DEFINES['SHARED_LIBRARY'] = '%s%s%s' % (
|
|||||||
CONFIG['DLL_SUFFIX']
|
CONFIG['DLL_SUFFIX']
|
||||||
)
|
)
|
||||||
|
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
|
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
'../google-breakpad/src/',
|
'../google-breakpad/src/',
|
||||||
]
|
]
|
||||||
|
@ -27,7 +27,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||||||
RCINCLUDE = '%supdater.rc' % updater_rel_path
|
RCINCLUDE = '%supdater.rc' % updater_rel_path
|
||||||
DEFINES['UNICODE'] = True
|
DEFINES['UNICODE'] = True
|
||||||
DEFINES['_UNICODE'] = True
|
DEFINES['_UNICODE'] = True
|
||||||
DEFINES['NOMINMAX'] = True
|
|
||||||
USE_STATIC_LIBS = True
|
USE_STATIC_LIBS = True
|
||||||
|
|
||||||
# Pick up nsWindowsRestart.cpp
|
# Pick up nsWindowsRestart.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user