michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsDependentString.cpp', michael@0: 'nsDependentSubstring.cpp', michael@0: 'nsPromiseFlatString.cpp', michael@0: 'nsReadableUtils.cpp', michael@0: 'nsString.cpp', michael@0: 'nsStringComparator.cpp', michael@0: 'nsStringObsolete.cpp', michael@0: 'nsSubstring.cpp', michael@0: 'nsSubstringTuple.cpp', michael@0: ] michael@0: michael@0: # Are we targeting x86 or x86-64? If so, compile the SSE2 functions for michael@0: # nsUTF8Utils.cpp. michael@0: if CONFIG['INTEL_ARCHITECTURE']: michael@0: SOURCES += ['nsUTF8UtilsSSE2.cpp'] michael@0: SOURCES['nsUTF8UtilsSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/mfbt/double-conversion', michael@0: ] michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: FINAL_LIBRARY = 'xpcom_core'