xpcom/string/moz.build
author Ryan VanderMeulen <ryanvm@gmail.com>
Sat, 24 Mar 2018 12:19:44 -0400
changeset 772170 a0832da6741d15c722a86ac851c335b1d2be472d
parent 753519 352ef85382eab811036e19ff2505c83a7a1c9916
child 772549 c1542496a074876a722f4dd0e210881e724e95c7
child 797635 0454117b769c932cd614abc6338a1cf3776e5568
permissions -rw-r--r--
Bug 1448472 - Remove a C5037 warning suppression xpcom/string/moz.build that is no longer needed. r=xidorn

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'String')

EXPORTS += [
    'nsASCIIMask.h',
    'nsAString.h',
    'nsCharTraits.h',
    'nsDependentString.h',
    'nsDependentSubstring.h',
    'nsLiteralString.h',
    'nsPrintfCString.h',
    'nsPromiseFlatString.h',
    'nsReadableUtils.h',
    'nsString.h',
    'nsStringBuffer.h',
    'nsStringFlags.h',
    'nsStringFwd.h',
    'nsStringIterator.h',
    'nsTDependentString.h',
    'nsTDependentSubstring.h',
    'nsTextFormatter.h',
    'nsTLiteralString.h',
    'nsTPromiseFlatString.h',
    'nsTString.h',
    'nsTStringRepr.h',
    'nsTSubstring.h',
    'nsTSubstringTuple.h',
    'nsUTF8Utils.h',
]

UNIFIED_SOURCES += [
    'nsASCIIMask.cpp',
    'nsDependentString.cpp',
    'nsDependentSubstring.cpp',
    'nsPromiseFlatString.cpp',
    'nsReadableUtils.cpp',
    'nsString.cpp',
    'nsStringComparator.cpp',
    'nsStringObsolete.cpp',
    'nsSubstring.cpp',
    'nsTextFormatter.cpp',
    'nsTSubstringTuple.cpp',
    'precompiled_templates.cpp',
]

# Are we targeting x86 or x86-64?  If so, compile the SSE2 functions for
# nsUTF8Utils.cpp and nsReadableUtils.cpp.
if CONFIG['INTEL_ARCHITECTURE']:
    SOURCES += ['nsUTF8UtilsSSE2.cpp']
    SOURCES['nsUTF8UtilsSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
    SOURCES += ['nsReadableUtilsSSE2.cpp']
    SOURCES['nsReadableUtilsSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']

if CONFIG['BUILD_ARM_NEON'] or CONFIG['CPU_ARCH'] == 'aarch64':
    SOURCES += ['nsUTF8UtilsNEON.cpp']
    SOURCES['nsUTF8UtilsNEON.cpp'].flags += CONFIG['NEON_FLAGS']

FINAL_LIBRARY = 'xul'