1
# vim:set ts=8 sw=8 sts=8 noet:
3
# This Source Code Form is subject to the terms of the Mozilla Public
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
topsrcdir = @top_srcdir@
12
include $(DEPTH)/config/autoconf.mk
15
LIBRARY_NAME = string_s
16
MOZILLA_INTERNAL_API = 1
20
nsDependentString.cpp \
21
nsDependentSubstring.cpp \
22
nsPromiseFlatString.cpp \
25
nsSubstringTuple.cpp \
27
nsStringComparator.cpp \
28
nsStringObsolete.cpp \
31
# we don't want the shared lib, but we want to force the creation of a
36
# Are we targeting x86 or x86-64? If so, compile the SSE2 functions for
38
ifneq (,$(INTEL_ARCHITECTURE))
39
CPPSRCS += nsUTF8UtilsSSE2.cpp
42
include $(topsrcdir)/config/rules.mk
44
ifneq (,$(INTEL_ARCHITECTURE))
45
# gcc requires -msse2 on nsUTF8UtilsSSE2.cpp since it uses SSE2 intrinsics.
46
# (See bug 585538 comment 12.)
48
nsUTF8UtilsSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
51
ifdef SOLARIS_SUNPRO_CXX
52
nsUTF8UtilsSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-xarch=sse2 -xO4
56
DEFINES += -D_IMPL_NS_COM