mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1001320. Part 5: Use #pragma GCC visibility on B2G. r=glandium
--HG-- rename : config/gcc_hidden.h => config/gcc_hidden_dso_handle.h
This commit is contained in:
parent
f2f4f31764
commit
950332b02a
@ -20,3 +20,5 @@ GENERATED_SOURCES += [
|
|||||||
DEFINES['ELFHACK_BUILD'] = True
|
DEFINES['ELFHACK_BUILD'] = True
|
||||||
|
|
||||||
NO_PGO = True
|
NO_PGO = True
|
||||||
|
|
||||||
|
NO_VISIBILITY_FLAGS = True
|
||||||
|
11
config/gcc_hidden_dso_handle.h
Normal file
11
config/gcc_hidden_dso_handle.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/* 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/. */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
void *__dso_handle;
|
||||||
|
|
||||||
|
/* Begin all files as hidden visibility */
|
||||||
|
#pragma GCC visibility push(hidden)
|
@ -407,9 +407,6 @@ DriverServices.h
|
|||||||
DriverSynchronization.h
|
DriverSynchronization.h
|
||||||
DropInPanel.h
|
DropInPanel.h
|
||||||
dvidef.h
|
dvidef.h
|
||||||
#ifdef ANDROID
|
|
||||||
EffectApi.h
|
|
||||||
#endif
|
|
||||||
elf.h
|
elf.h
|
||||||
endian.h
|
endian.h
|
||||||
Entry.h
|
Entry.h
|
||||||
@ -516,6 +513,8 @@ gtk/gtkprinter.h
|
|||||||
gtk/gtkprintjob.h
|
gtk/gtkprintjob.h
|
||||||
gtk/gtkprintunixdialog.h
|
gtk/gtkprintunixdialog.h
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
|
gui/BufferQueue.h
|
||||||
|
gui/ConsumerBase.h
|
||||||
gui/GraphicBufferAlloc.h
|
gui/GraphicBufferAlloc.h
|
||||||
gui/IConsumerListener.h
|
gui/IConsumerListener.h
|
||||||
gui/IGraphicBufferAlloc.h
|
gui/IGraphicBufferAlloc.h
|
||||||
@ -542,14 +541,6 @@ hlink.h
|
|||||||
HTTPBase.h
|
HTTPBase.h
|
||||||
#endif
|
#endif
|
||||||
ia64/sys/inline.h
|
ia64/sys/inline.h
|
||||||
#ifdef ANDROID
|
|
||||||
IAudioFlingerClient.h
|
|
||||||
IAudioFlinger.h
|
|
||||||
IAudioRecord.h
|
|
||||||
IAudioTrack.h
|
|
||||||
IEffect.h
|
|
||||||
IEffectClient.h
|
|
||||||
#endif
|
|
||||||
Icons.h
|
Icons.h
|
||||||
iconv.h
|
iconv.h
|
||||||
ieeefp.h
|
ieeefp.h
|
||||||
@ -911,6 +902,7 @@ rpc/types.h
|
|||||||
sane/sane.h
|
sane/sane.h
|
||||||
sane/sanei.h
|
sane/sanei.h
|
||||||
sane/saneopts.h
|
sane/saneopts.h
|
||||||
|
sched.h
|
||||||
Scrap.h
|
Scrap.h
|
||||||
Screen.h
|
Screen.h
|
||||||
Script.h
|
Script.h
|
||||||
|
18
configure.in
18
configure.in
@ -2550,17 +2550,19 @@ dnl ===============================================================
|
|||||||
if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
|
if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
|
||||||
AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
||||||
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
|
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
|
||||||
if test -n "$gonkdir"; then
|
case "$OS_TARGET" in
|
||||||
visibility_target=Gonk
|
Darwin)
|
||||||
else
|
|
||||||
visibility_target=$OS_TARGET
|
|
||||||
fi
|
|
||||||
case "$visibility_target" in
|
|
||||||
Darwin|Gonk)
|
|
||||||
VISIBILITY_FLAGS='-fvisibility=hidden'
|
VISIBILITY_FLAGS='-fvisibility=hidden'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
case $GCC_VERSION in
|
||||||
|
4.4*)
|
||||||
|
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden_dso_handle.h'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
WRAP_SYSTEM_INCLUDES=1
|
WRAP_SYSTEM_INCLUDES=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
#ifndef ANDROID_AUDIOSYSTEM_H_
|
#ifndef ANDROID_AUDIOSYSTEM_H_
|
||||||
#define ANDROID_AUDIOSYSTEM_H_
|
#define ANDROID_AUDIOSYSTEM_H_
|
||||||
|
|
||||||
|
#pragma GCC visibility push(default)
|
||||||
|
|
||||||
#include <utils/RefBase.h>
|
#include <utils/RefBase.h>
|
||||||
#include <utils/threads.h>
|
#include <utils/threads.h>
|
||||||
#include "IAudioFlinger.h"
|
#include "IAudioFlinger.h"
|
||||||
@ -961,4 +963,6 @@ private:
|
|||||||
|
|
||||||
}; // namespace android
|
}; // namespace android
|
||||||
|
|
||||||
|
#pragma GCC visibility pop
|
||||||
|
|
||||||
#endif /*ANDROID_AUDIOSYSTEM_H_*/
|
#endif /*ANDROID_AUDIOSYSTEM_H_*/
|
||||||
|
@ -2083,17 +2083,19 @@ dnl ===============================================================
|
|||||||
if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
|
if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
|
||||||
AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
||||||
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
|
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
|
||||||
if test -n "$gonkdir"; then
|
case "$OS_TARGET" in
|
||||||
visibility_target=Gonk
|
Darwin)
|
||||||
else
|
|
||||||
visibility_target=$OS_TARGET
|
|
||||||
fi
|
|
||||||
case "$visibility_target" in
|
|
||||||
Darwin|Gonk)
|
|
||||||
VISIBILITY_FLAGS='-fvisibility=hidden'
|
VISIBILITY_FLAGS='-fvisibility=hidden'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
case $GCC_VERSION in
|
||||||
|
4.4*)
|
||||||
|
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden_dso_handle.h'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
WRAP_SYSTEM_INCLUDES=1
|
WRAP_SYSTEM_INCLUDES=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -31,9 +31,10 @@
|
|||||||
#include <utils/threads.h>
|
#include <utils/threads.h>
|
||||||
#include <utils/KeyedVector.h>
|
#include <utils/KeyedVector.h>
|
||||||
|
|
||||||
|
#include "mozilla/Types.h"
|
||||||
#include "GonkBufferQueue.h"
|
#include "GonkBufferQueue.h"
|
||||||
|
|
||||||
struct ANativeWindow_Buffer;
|
struct MOZ_EXPORT ANativeWindow_Buffer;
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
|
@ -27,9 +27,10 @@
|
|||||||
#include <utils/threads.h>
|
#include <utils/threads.h>
|
||||||
#include <utils/KeyedVector.h>
|
#include <utils/KeyedVector.h>
|
||||||
|
|
||||||
|
#include "mozilla/Types.h"
|
||||||
#include "GonkBufferQueue.h"
|
#include "GonkBufferQueue.h"
|
||||||
|
|
||||||
struct ANativeWindow_Buffer;
|
struct MOZ_EXPORT ANativeWindow_Buffer;
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <binder/IInterface.h>
|
#include <binder/IInterface.h>
|
||||||
#include <ui/Rect.h>
|
#include <ui/Rect.h>
|
||||||
|
|
||||||
|
#include "mozilla/Types.h"
|
||||||
#include "mozilla/layers/LayersSurfaces.h"
|
#include "mozilla/layers/LayersSurfaces.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
@ -39,9 +40,9 @@ class TextureClient;
|
|||||||
namespace android {
|
namespace android {
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
class IConsumerListener;
|
class MOZ_EXPORT IConsumerListener;
|
||||||
class GraphicBuffer;
|
class MOZ_EXPORT GraphicBuffer;
|
||||||
class Fence;
|
class MOZ_EXPORT Fence;
|
||||||
|
|
||||||
class IGonkGraphicBufferConsumer : public IInterface {
|
class IGonkGraphicBufferConsumer : public IInterface {
|
||||||
typedef mozilla::layers::TextureClient TextureClient;
|
typedef mozilla::layers::TextureClient TextureClient;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user