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:
Chris Manchester 2017-05-01 18:12:35 -07:00
Родитель 14beabf47f
Коммит fab07bc443
18 изменённых файлов: 29 добавлений и 21 удалений

Просмотреть файл

@ -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 поставляемый
Просмотреть файл

@ -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