mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 894941 - Move SSE.{h,cpp} and arm.{h,cpp} to mozglue/build/. r=glandium
--HG-- rename : xpcom/glue/SSE.cpp => mozglue/build/SSE.cpp rename : xpcom/glue/SSE.h => mozglue/build/SSE.h rename : xpcom/glue/arm.cpp => mozglue/build/arm.cpp rename : xpcom/glue/arm.h => mozglue/build/arm.h rename : xpcom/tests/ShowSSEConfig.cpp => mozglue/tests/ShowSSEConfig.cpp
This commit is contained in:
parent
cb038f099c
commit
d99657eb53
@ -8,8 +8,8 @@
|
||||
#ifndef mozilla_SSE_h_
|
||||
#define mozilla_SSE_h_
|
||||
|
||||
// for definition of NS_COM_GLUE
|
||||
#include "nscore.h"
|
||||
// for definition of MFBT_DATA
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
/**
|
||||
* The public interface of this header consists of a set of macros and
|
||||
@ -176,28 +176,28 @@ namespace mozilla {
|
||||
namespace sse_private {
|
||||
#if defined(MOZILLA_SSE_HAVE_CPUID_DETECTION)
|
||||
#if !defined(MOZILLA_PRESUME_MMX)
|
||||
extern bool NS_COM_GLUE mmx_enabled;
|
||||
extern bool MFBT_DATA mmx_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE)
|
||||
extern bool NS_COM_GLUE sse_enabled;
|
||||
extern bool MFBT_DATA sse_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE2)
|
||||
extern bool NS_COM_GLUE sse2_enabled;
|
||||
extern bool MFBT_DATA sse2_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE3)
|
||||
extern bool NS_COM_GLUE sse3_enabled;
|
||||
extern bool MFBT_DATA sse3_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSSE3)
|
||||
extern bool NS_COM_GLUE ssse3_enabled;
|
||||
extern bool MFBT_DATA ssse3_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE4A)
|
||||
extern bool NS_COM_GLUE sse4a_enabled;
|
||||
extern bool MFBT_DATA sse4a_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE4_1)
|
||||
extern bool NS_COM_GLUE sse4_1_enabled;
|
||||
extern bool MFBT_DATA sse4_1_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_SSE4_2)
|
||||
extern bool NS_COM_GLUE sse4_2_enabled;
|
||||
extern bool MFBT_DATA sse4_2_enabled;
|
||||
#endif
|
||||
#endif
|
||||
}
|
@ -7,8 +7,8 @@
|
||||
#ifndef mozilla_arm_h_
|
||||
#define mozilla_arm_h_
|
||||
|
||||
// for definition of NS_COM_GLUE
|
||||
#include "nscore.h"
|
||||
// for definition of MFBT_DATA
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
/* This is patterned after SSE.h, but provides ARMv5E, ARMv6, and NEON
|
||||
detection. For reasons similar to the SSE code, code using NEON (even just
|
||||
@ -104,16 +104,16 @@ namespace mozilla {
|
||||
namespace arm_private {
|
||||
#if defined(MOZILLA_ARM_HAVE_CPUID_DETECTION)
|
||||
#if !defined(MOZILLA_PRESUME_EDSP)
|
||||
extern bool NS_COM_GLUE edsp_enabled;
|
||||
extern bool MFBT_DATA edsp_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_ARMV6)
|
||||
extern bool NS_COM_GLUE armv6_enabled;
|
||||
extern bool MFBT_DATA armv6_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_ARMV7)
|
||||
extern bool NS_COM_GLUE armv7_enabled;
|
||||
extern bool MFBT_DATA armv7_enabled;
|
||||
#endif
|
||||
#if !defined(MOZILLA_PRESUME_NEON)
|
||||
extern bool NS_COM_GLUE neon_enabled;
|
||||
extern bool MFBT_DATA neon_enabled;
|
||||
#endif
|
||||
#endif
|
||||
}
|
@ -30,5 +30,22 @@ if CONFIG['OS_TARGET'] == 'Android':
|
||||
'BionicGlue.cpp',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla += [
|
||||
'SSE.h',
|
||||
'arm.h',
|
||||
]
|
||||
|
||||
if CONFIG['CPU_ARCH'].startswith('x86'):
|
||||
CPP_SOURCES += [
|
||||
'SSE.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['CPU_ARCH'] == 'arm':
|
||||
CPP_SOURCES += [
|
||||
'arm.cpp',
|
||||
]
|
||||
|
||||
|
||||
|
||||
LIBRARY_NAME = 'mozglue'
|
||||
|
||||
|
@ -9,4 +9,5 @@ NO_DIST_INSTALL = True
|
||||
if CONFIG['MOZ_LINKER']:
|
||||
CPP_SOURCES += [
|
||||
'TestZip.cpp',
|
||||
'ShowSSEConfig.cpp',
|
||||
]
|
||||
|
@ -79,8 +79,6 @@ EXPORTS.mozilla += [
|
||||
'Mutex.h',
|
||||
'Observer.h',
|
||||
'ReentrantMonitor.h',
|
||||
'SSE.h',
|
||||
'arm.h',
|
||||
'unused.h',
|
||||
]
|
||||
|
||||
|
@ -45,7 +45,7 @@ OS_COMPILE_CFLAGS += -Zl
|
||||
DEFINES += -D_USE_ANSI_CPP
|
||||
endif
|
||||
|
||||
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp $(topsrcdir)/xpcom/glue/GenericModule.cpp $(topsrcdir)/xpcom/glue/DeadlockDetector.h $(topsrcdir)/xpcom/glue/SSE.h $(topsrcdir)/xpcom/glue/arm.h
|
||||
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp $(topsrcdir)/xpcom/glue/GenericModule.cpp $(topsrcdir)/xpcom/glue/DeadlockDetector.h
|
||||
$(INSTALL) $^ .
|
||||
|
||||
ifdef TARGET_XPCOM_ABI
|
||||
|
@ -38,15 +38,10 @@ XPCOM_GLUE_SRC_CPPSRCS = $(addprefix $(topsrcdir)/xpcom/glue/, $(XPCOM_GLUE_SRC_
|
||||
XPCOM_GLUENS_SRC_LCPPSRCS = \
|
||||
BlockingResourceBase.cpp \
|
||||
DeadlockDetector.cpp \
|
||||
SSE.cpp \
|
||||
unused.cpp \
|
||||
nsProxyRelease.cpp \
|
||||
nsTextFormatter.cpp \
|
||||
GenericFactory.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter arm%,$(TARGET_CPU)))
|
||||
XPCOM_GLUENS_SRC_LCPPSRCS += arm.cpp
|
||||
endif
|
||||
|
||||
XPCOM_GLUENS_SRC_CPPSRCS = $(addprefix $(topsrcdir)/xpcom/glue/,$(XPCOM_GLUENS_SRC_LCPPSRCS))
|
||||
|
@ -42,7 +42,7 @@ OS_COMPILE_CFLAGS += -Zl
|
||||
DEFINES += -D_USE_ANSI_CPP
|
||||
endif
|
||||
|
||||
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp $(topsrcdir)/xpcom/glue/GenericModule.cpp $(topsrcdir)/xpcom/glue/DeadlockDetector.h $(topsrcdir)/xpcom/glue/SSE.h $(topsrcdir)/xpcom/glue/arm.h
|
||||
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp $(topsrcdir)/xpcom/glue/GenericModule.cpp $(topsrcdir)/xpcom/glue/DeadlockDetector.h
|
||||
$(INSTALL) $^ .
|
||||
|
||||
ifdef TARGET_XPCOM_ABI
|
||||
|
@ -52,7 +52,6 @@ CPP_SOURCES += [
|
||||
|
||||
CPP_UNIT_TESTS += [
|
||||
'ShowAlignments.cpp',
|
||||
'ShowSSEConfig.cpp',
|
||||
'TestAutoPtr.cpp',
|
||||
'TestAutoRef.cpp',
|
||||
'TestCOMArray.cpp',
|
||||
|
Loading…
Reference in New Issue
Block a user