mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0 --HG-- extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
This commit is contained in:
parent
14beabf47f
commit
fab07bc443
@ -49,7 +49,7 @@ third_party_paths.inputs = [
|
||||
]
|
||||
|
||||
DisableStlWrapping()
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
# libc++ is required to build plugins against clang on OS X.
|
||||
if CONFIG['HOST_OS_ARCH'] == 'Darwin':
|
||||
|
@ -46,4 +46,4 @@ SOURCES += [
|
||||
]
|
||||
|
||||
DisableStlWrapping()
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
@ -23,4 +23,4 @@ SOURCES += [
|
||||
|
||||
NO_PGO = True
|
||||
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
2
config/external/ffi/moz.build
vendored
2
config/external/ffi/moz.build
vendored
@ -10,7 +10,7 @@ if CONFIG['MOZ_SYSTEM_FFI']:
|
||||
OS_LIBS += CONFIG['MOZ_FFI_LIBS']
|
||||
else:
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
CONFIGURE_DEFINE_FILES += [
|
||||
'../../../js/src/ctypes/libffi/fficonfig.h',
|
||||
|
@ -10,7 +10,7 @@ with Files('**'):
|
||||
DIST_INSTALL = False
|
||||
# For sanity's sake, we compile nsinstall without the wrapped system
|
||||
# headers, so that we can use it to set up the wrapped system headers.
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
CONFIGURE_SUBST_FILES += [
|
||||
'doxygen.cfg',
|
||||
|
@ -3,7 +3,7 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# 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/.
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
EXPORTS += [
|
||||
'sqlite3.h',
|
||||
|
@ -25,7 +25,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
]
|
||||
|
||||
USE_STATIC_LIBS = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DisableStlWrapping()
|
||||
NO_PGO = True
|
||||
|
@ -27,7 +27,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
]
|
||||
|
||||
USE_STATIC_LIBS = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DisableStlWrapping()
|
||||
NO_PGO = True
|
||||
|
@ -56,7 +56,7 @@ SOURCES += [
|
||||
]
|
||||
|
||||
SYMBOLS_FILE = 'avcodec.symbols'
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
USE_LIBS += [
|
||||
'mozavutil'
|
||||
|
@ -51,7 +51,7 @@ SOURCES += [
|
||||
]
|
||||
|
||||
SYMBOLS_FILE = 'avutil.symbols'
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
OS_LIBS += CONFIG['REALTIME_LIBS']
|
||||
if CONFIG['OS_TARGET'] != 'WINNT':
|
||||
|
@ -3,7 +3,7 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# 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/.
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
EXPORTS.mozilla += [
|
||||
'mozalloc.h',
|
||||
|
@ -4,7 +4,7 @@
|
||||
# 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/.
|
||||
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
if CONFIG['WRAP_STL_INCLUDES']:
|
||||
DEFINES['_HAS_EXCEPTIONS'] = 0
|
||||
|
@ -3,7 +3,7 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# 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/.
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
|
||||
EXPORTS.mozilla += [
|
||||
'VolatileBuffer.h',
|
||||
|
@ -35,7 +35,7 @@ if not CONFIG['JS_STANDALONE']:
|
||||
# TODO: SHARED_LIBRARY_LIBS go here
|
||||
else:
|
||||
# Temporary, until bug 662814 lands
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
SOURCES += [
|
||||
'dummy.cpp',
|
||||
]
|
||||
|
@ -1257,10 +1257,6 @@ VARIABLES = {
|
||||
"""Whether profile-guided optimization is disable in this directory.
|
||||
"""),
|
||||
|
||||
'NO_VISIBILITY_FLAGS': (bool, bool,
|
||||
"""Build sources listed in this file without VISIBILITY_FLAGS.
|
||||
"""),
|
||||
|
||||
'OS_LIBS': (List, list,
|
||||
"""System link libraries.
|
||||
|
||||
@ -2219,6 +2215,16 @@ DEPRECATION_HINTS = {
|
||||
LIBRARY_NAME = 'foo'
|
||||
''',
|
||||
|
||||
'NO_VISIBILITY_FLAGS': '''
|
||||
Please use
|
||||
|
||||
NoVisibilityFlags()
|
||||
|
||||
instead of
|
||||
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
''',
|
||||
|
||||
'PROGRAM': '''
|
||||
Please use
|
||||
|
||||
|
@ -14,7 +14,7 @@ SharedLibrary('pkcs11testmodule')
|
||||
|
||||
# C_GetFunctionList needs to be exported. As it turns out, it's much easier to
|
||||
# just export all the symbols.
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
SYMBOLS_FILE = 'pkcs11testmodule.symbols'
|
||||
|
||||
NO_PGO = True
|
||||
|
@ -103,7 +103,9 @@ else:
|
||||
sandbox_vars = {
|
||||
# NSS explicitly exports its public symbols
|
||||
# with linker scripts.
|
||||
'NO_VISIBILITY_FLAGS': True,
|
||||
'COMPILE_FLAGS': {
|
||||
'VISIBILITY': [],
|
||||
},
|
||||
# XXX: We should fix these warnings.
|
||||
'ALLOW_COMPILER_WARNINGS': True,
|
||||
# NSS' build system doesn't currently build NSS with PGO.
|
||||
|
@ -16,5 +16,5 @@ if CONFIG['CPU_ARCH'] == 'x86_64':
|
||||
else:
|
||||
GeckoSharedLibrary('qipcap')
|
||||
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
NoVisibilityFlags()
|
||||
NO_PGO = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user