Bug 991983 - Define SOURCES as SourcePath. r=gps

This commit is contained in:
Mike Hommey 2015-05-15 09:49:20 +09:00
Родитель f8b674d9a9
Коммит ea7750bcb1
28 изменённых файлов: 76 добавлений и 78 удалений

Просмотреть файл

@ -28,12 +28,12 @@ SOURCES += [
# If WebRTC isn't being built, we need to compile the DirectShow base classes so that # If WebRTC isn't being built, we need to compile the DirectShow base classes so that
# they're available at link time. # they're available at link time.
if not CONFIG['MOZ_WEBRTC']: if not CONFIG['MOZ_WEBRTC']:
SOURCES += [ '%s/%s' % (TOPSRCDIR, p) for p in [ SOURCES += [
'media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseFilter.cpp', '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseFilter.cpp',
'media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseInputPin.cpp', '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseInputPin.cpp',
'media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp', '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp',
'media/webrtc/trunk/webrtc/modules/video_capture/windows/MediaType.cpp', '/media/webrtc/trunk/webrtc/modules/video_capture/windows/MediaType.cpp',
]] ]
FAIL_ON_WARNINGS = True FAIL_ON_WARNINGS = True

Просмотреть файл

@ -6,5 +6,5 @@
SharedLibrary('nptestjava') SharedLibrary('nptestjava')
relative_path = '..' relative_path = 'javaplugin'
include('../testplugin.mozbuild') include('../testplugin.mozbuild')

Просмотреть файл

@ -6,5 +6,5 @@
SharedLibrary('npsecondtest') SharedLibrary('npsecondtest')
relative_path = '..' relative_path = 'secondplugin'
include('../testplugin.mozbuild') include('../testplugin.mozbuild')

Просмотреть файл

@ -6,35 +6,35 @@
DIST_INSTALL = False DIST_INSTALL = False
UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [ UNIFIED_SOURCES += [
'nptest.cpp', 'nptest.cpp',
'nptest_utils.cpp', 'nptest_utils.cpp',
]] ]
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'nptest_name.cpp', '%s/nptest_name.cpp' % relative_path,
] ]
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
if toolkit == 'cocoa': if toolkit == 'cocoa':
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
relative_path + '/nptest_macosx.mm' 'nptest_macosx.mm'
] ]
elif toolkit in ('gtk2', 'gtk3'): elif toolkit in ('gtk2', 'gtk3'):
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
relative_path + '/nptest_gtk2.cpp', 'nptest_gtk2.cpp',
] ]
elif toolkit == 'android': elif toolkit == 'android':
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
relative_path + '/nptest_droid.cpp', 'nptest_droid.cpp',
] ]
elif toolkit == 'qt': elif toolkit == 'qt':
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
relative_path + '/nptest_qt.cpp', 'nptest_qt.cpp',
] ]
elif toolkit == 'windows': elif toolkit == 'windows':
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
relative_path + '/nptest_windows.cpp', 'nptest_windows.cpp',
] ]
OS_LIBS += [ OS_LIBS += [
'msimg32', 'msimg32',

Просмотреть файл

@ -29,7 +29,7 @@ UNIFIED_SOURCES += [
# Because of gkmedia on windows we won't find these # Because of gkmedia on windows we won't find these
# symbols in xul.dll. # symbols in xul.dll.
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'windows': if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'windows':
UNIFIED_SOURCES += [ '%s/gfx/2d/unittest/%s' % (TOPSRCDIR, p) for p in [ UNIFIED_SOURCES += [ '/gfx/2d/unittest/%s' % p for p in [
'TestBase.cpp', 'TestBase.cpp',
'TestBugs.cpp', 'TestBugs.cpp',
'TestPoint.cpp', 'TestPoint.cpp',

Просмотреть файл

@ -22,6 +22,6 @@ intl_unicharutil_util_lcppsrcs += [
] ]
intl_unicharutil_util_cppsrcs = [ intl_unicharutil_util_cppsrcs = [
'%s/intl/unicharutil/util/%s' % (TOPSRCDIR, s) \ '/intl/unicharutil/util/%s' % s
for s in intl_unicharutil_util_lcppsrcs for s in intl_unicharutil_util_lcppsrcs
] ]

Просмотреть файл

@ -7,17 +7,10 @@
if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
Library('unicharutil_standalone') Library('unicharutil_standalone')
intl_unicharutil_util_lcppsrcs = [ UNIFIED_SOURCES += [
'nsUnicodeProperties.cpp', '../nsUnicodeProperties.cpp',
] ]
intl_unicharutil_util_cppsrcs = [
'%s/intl/unicharutil/util/%s' % (TOPSRCDIR, s) \
for s in intl_unicharutil_util_lcppsrcs
]
UNIFIED_SOURCES += intl_unicharutil_util_cppsrcs
for var in ('MOZILLA_INTERNAL_API', 'MOZILLA_XPCOMRT_API', 'MOZILLA_EXTERNAL_LINKAGE', for var in ('MOZILLA_INTERNAL_API', 'MOZILLA_XPCOMRT_API', 'MOZILLA_EXTERNAL_LINKAGE',
'NR_SOCKET_IS_VOID_PTR', 'HAVE_STRDUP'): 'NR_SOCKET_IS_VOID_PTR', 'HAVE_STRDUP'):
DEFINES[var] = True DEFINES[var] = True

Просмотреть файл

@ -31,7 +31,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
] ]
mtransport_cppsrcs = [ mtransport_cppsrcs = [
'%s/media/mtransport/%s' % (TOPSRCDIR, s) for s in sorted(mtransport_lcppsrcs) '/media/mtransport/%s' % s for s in sorted(mtransport_lcppsrcs)
] ]
LOCAL_INCLUDES += [ LOCAL_INCLUDES += [

Просмотреть файл

@ -113,4 +113,4 @@ DISABLE_STL_WRAPPING = True
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
if CONFIG['GNU_CXX']: if CONFIG['GNU_CXX']:
# TODO: Remove this LZ4 warning suppression after bug 993267 is fixed. # TODO: Remove this LZ4 warning suppression after bug 993267 is fixed.
SOURCES[TOPSRCDIR + '/mfbt/Compression.cpp'].flags += ['-Wno-unused-function'] SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']

Просмотреть файл

@ -23,7 +23,7 @@ mfbt_src_lcppsrcs = [
] ]
mfbt_src_cppsrcs = [ mfbt_src_cppsrcs = [
'%s/mfbt/%s' % (TOPSRCDIR, s) for s in mfbt_src_lcppsrcs '/mfbt/%s' % s for s in mfbt_src_lcppsrcs
] ]
# Compression.cpp cannot be built in unified mode because it pulls in Windows system headers. # Compression.cpp cannot be built in unified mode because it pulls in Windows system headers.
@ -34,5 +34,5 @@ mfbt_nonunified_src_lcppsrcs = [
] ]
mfbt_nonunified_src_cppsrcs = [ mfbt_nonunified_src_cppsrcs = [
'%s/mfbt/%s' % (TOPSRCDIR, s) for s in mfbt_nonunified_src_lcppsrcs '/mfbt/%s' % s for s in mfbt_nonunified_src_lcppsrcs
] ]

Просмотреть файл

@ -21,4 +21,4 @@ DISABLE_STL_WRAPPING = True
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
if CONFIG['GNU_CXX']: if CONFIG['GNU_CXX']:
# TODO: Remove this LZ4 warning suppression after bug 993267 is fixed. # TODO: Remove this LZ4 warning suppression after bug 993267 is fixed.
SOURCES[TOPSRCDIR + '/mfbt/Compression.cpp'].flags += ['-Wno-unused-function'] SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']

Просмотреть файл

@ -18,7 +18,7 @@ netwerk_base_src = [
'nsURLHelper.cpp', 'nsURLHelper.cpp',
] ]
src_list += [ src_list += [
'%s/netwerk/base/%s' % (TOPSRCDIR, s) for s in netwerk_base_src '/netwerk/base/%s' % s for s in netwerk_base_src
] ]
netwerk_dns_src = [ netwerk_dns_src = [
@ -33,7 +33,7 @@ netwerk_dns_src = [
'race.c', 'race.c',
] ]
src_list += [ src_list += [
'%s/netwerk/dns/%s' % (TOPSRCDIR, s) for s in netwerk_dns_src '/netwerk/dns/%s' % s for s in netwerk_dns_src
] ]
SOURCES += sorted(src_list) SOURCES += sorted(src_list)

Просмотреть файл

@ -664,7 +664,7 @@ VARIABLES = {
populated by calling add_android_eclipse{_library}_project(). populated by calling add_android_eclipse{_library}_project().
""", 'export'), """, 'export'),
'SOURCES': (StrictOrderingOnAppendListWithFlagsFactory({'no_pgo': bool, 'flags': List}), list, 'SOURCES': (ContextDerivedTypedListWithItems(SourcePath, StrictOrderingOnAppendListWithFlagsFactory({'no_pgo': bool, 'flags': List})), list,
"""Source code files. """Source code files.
This variable contains a list of source code files to compile. This variable contains a list of source code files to compile.
@ -683,7 +683,7 @@ VARIABLES = {
""", 'None'), """, 'None'),
'UNIFIED_SOURCES': (StrictOrderingOnAppendList, list, 'UNIFIED_SOURCES': (ContextDerivedTypedList(SourcePath, StrictOrderingOnAppendList), list,
"""Source code files that can be compiled together. """Source code files that can be compiled together.
This variable contains a list of source code files to compile, This variable contains a list of source code files to compile,
@ -916,7 +916,7 @@ VARIABLES = {
files by the compiler. files by the compiler.
""", None), """, None),
'HOST_SOURCES': (StrictOrderingOnAppendList, list, 'HOST_SOURCES': (ContextDerivedTypedList(SourcePath, StrictOrderingOnAppendList), list,
"""Source code files to compile with the host compiler. """Source code files to compile with the host compiler.
This variable contains a list of source code files to compile. This variable contains a list of source code files to compile.

Просмотреть файл

@ -720,10 +720,10 @@ class TreeMetadataEmitter(LoggingMixin):
context_srcs = context.get(symbol, []) context_srcs = context.get(symbol, [])
for f in context_srcs: for f in context_srcs:
if symbol.startswith('GENERATED_'): if symbol.startswith('GENERATED_'):
full_path = mozpath.join(context.objdir, f) full_path = mozpath.normpath(
mozpath.join(context.objdir, f))
else: else:
full_path = mozpath.join(context.srcdir, f) full_path = f.full_path
full_path = mozpath.normpath(full_path)
srcs.append(full_path) srcs.append(full_path)
if symbol == 'SOURCES': if symbol == 'SOURCES':
flags = context_srcs[f] flags = context_srcs[f]

Просмотреть файл

@ -12,6 +12,7 @@ import mozpack.path as mozpath
from mozpack.files import FileFinder from mozpack.files import FileFinder
from .sandbox import alphabetical_sorted from .sandbox import alphabetical_sorted
from .context import ( from .context import (
SourcePath,
TemplateContext, TemplateContext,
VARIABLES, VARIABLES,
) )
@ -156,13 +157,20 @@ def read_from_gyp(config, path, output, vars, non_unified_sources = set()):
# The context expects an unicode string. # The context expects an unicode string.
context['LIBRARY_NAME'] = name.decode('utf-8') context['LIBRARY_NAME'] = name.decode('utf-8')
# gyp files contain headers and asm sources in sources lists. # gyp files contain headers and asm sources in sources lists.
sources = set(mozpath.normpath(mozpath.join(context.srcdir, f)) sources = []
for f in spec.get('sources', []) unified_sources = []
if mozpath.splitext(f)[-1] != '.h') extensions = set()
asm_sources = set(f for f in sources if f.endswith('.S')) for f in spec.get('sources', []):
ext = mozpath.splitext(f)[-1]
extensions.add(ext)
s = SourcePath(context, f)
if ext == '.h':
continue
if ext != '.S' and s not in non_unified_sources:
unified_sources.append(s)
else:
sources.append(s)
unified_sources = sources - non_unified_sources - asm_sources
sources -= unified_sources
# The context expects alphabetical order when adding sources # The context expects alphabetical order when adding sources
context['SOURCES'] = alphabetical_sorted(sources) context['SOURCES'] = alphabetical_sorted(sources)
context['UNIFIED_SOURCES'] = alphabetical_sorted(unified_sources) context['UNIFIED_SOURCES'] = alphabetical_sorted(unified_sources)
@ -201,10 +209,6 @@ def read_from_gyp(config, path, output, vars, non_unified_sources = set()):
'.m': 'CMFLAGS', '.m': 'CMFLAGS',
'.mm': 'CMMFLAGS', '.mm': 'CMMFLAGS',
} }
extensions = {
mozpath.splitext(f)[-1]
for f in chain(sources, unified_sources)
}
variables = ( variables = (
suffix_map[e] suffix_map[e]
for e in extensions if e in suffix_map for e in extensions if e in suffix_map

Просмотреть файл

@ -66,6 +66,7 @@ from .context import (
FUNCTIONS, FUNCTIONS,
VARIABLES, VARIABLES,
DEPRECATION_HINTS, DEPRECATION_HINTS,
SourcePath,
SPECIAL_VARIABLES, SPECIAL_VARIABLES,
SUBCONTEXTS, SUBCONTEXTS,
SubContext, SubContext,
@ -1067,8 +1068,8 @@ class BuildReader(object):
from .gyp_reader import read_from_gyp from .gyp_reader import read_from_gyp
non_unified_sources = set() non_unified_sources = set()
for s in gyp_dir.non_unified_sources: for s in gyp_dir.non_unified_sources:
source = mozpath.normpath(mozpath.join(curdir, s)) source = SourcePath(context, s)
if not os.path.exists(source): if not os.path.exists(source.full_path):
raise SandboxValidationError('Cannot find %s.' % source, raise SandboxValidationError('Cannot find %s.' % source,
context) context)
non_unified_sources.add(source) non_unified_sources.add(source)

Просмотреть файл

@ -4,10 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # 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/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
rdf_util_src_lcppsrcs = [
'nsRDFResource.cpp',
]
rdf_util_src_cppsrcs = [ rdf_util_src_cppsrcs = [
'%s/rdf/util/%s' % (TOPSRCDIR, s) for s in rdf_util_src_lcppsrcs '/rdf/util/nsRDFResource.cpp',
] ]

Просмотреть файл

@ -36,7 +36,7 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
# Bug 1102853 tracks looking at removing this. # Bug 1102853 tracks looking at removing this.
if CONFIG['CPU_ARCH'] == 'x86_64': if CONFIG['CPU_ARCH'] == 'x86_64':
SOURCES['%s/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc' % TOPSRCDIR].no_pgo = True SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS', for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'): 'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):

Просмотреть файл

@ -125,6 +125,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
] ]
security_sandbox_cppsrcs = [ security_sandbox_cppsrcs = [
'%s/security/sandbox/%s' % (TOPSRCDIR, s) '/security/sandbox/%s' % s
for s in sorted(security_sandbox_lcppsrcs) for s in sorted(security_sandbox_lcppsrcs)
] ]

Просмотреть файл

@ -14,7 +14,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':
# Bug 1102853 tracks looking at removing this. # Bug 1102853 tracks looking at removing this.
if CONFIG['CPU_ARCH'] == 'x86_64': if CONFIG['CPU_ARCH'] == 'x86_64':
SOURCES['%s/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc' % TOPSRCDIR].no_pgo = True SOURCES['/security/sandbox/chromium/sandbox/win/src/sharedmem_ipc_client.cc'].no_pgo = True
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS', for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'): 'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):

Просмотреть файл

@ -13,5 +13,5 @@ lobjs_crash_generation = [
subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/crash_generation' subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/crash_generation'
objs_crash_generation = [ objs_crash_generation = [
'%s/%s/%s' % (TOPSRCDIR, subdir, s) for s in lobjs_crash_generation '/%s/%s' % (subdir, s) for s in lobjs_crash_generation
] ]

Просмотреть файл

@ -10,5 +10,5 @@ lobjs_handler = [
subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/handler' subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/handler'
objs_handler = [ objs_handler = [
'%s/%s/%s' % (TOPSRCDIR, subdir, s) for s in lobjs_handler '/%s/%s' % (subdir, s) for s in lobjs_handler
] ]

Просмотреть файл

@ -10,5 +10,5 @@ lobjs_sender = [
subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/sender' subdir = 'toolkit/crashreporter/google-breakpad/src/client/windows/sender'
objs_sender = [ objs_sender = [
'%s/%s/%s' % (TOPSRCDIR, subdir, s) for s in lobjs_sender '/%s/%s' % (subdir, s) for s in lobjs_sender
] ]

Просмотреть файл

@ -11,5 +11,5 @@ lobjs_common = [
subdir = 'toolkit/crashreporter/google-breakpad/src/common/windows' subdir = 'toolkit/crashreporter/google-breakpad/src/common/windows'
objs_common = [ objs_common = [
'%s/%s/%s' % (TOPSRCDIR, subdir, s) for s in lobjs_common '/%s/%s' % (subdir, s) for s in lobjs_common
] ]

Просмотреть файл

@ -101,7 +101,7 @@ if have_progressui == 0:
'progressui_null.cpp', 'progressui_null.cpp',
] ]
SOURCES += ['%s%s' % (updater_rel_path, f) for f in sorted(srcs)] SOURCES += sorted(srcs)
DEFINES['NS_NO_XPCOM'] = True DEFINES['NS_NO_XPCOM'] = True
DISABLE_STL_WRAPPING = True DISABLE_STL_WRAPPING = True

Просмотреть файл

@ -14,10 +14,14 @@ XPIDL_SOURCES += [
XPIDL_MODULE = 'toolkitprofile' XPIDL_MODULE = 'toolkitprofile'
UNIFIED_SOURCES += [ TOPSRCDIR + '/profile/dirserviceprovider/nsProfileLock.cpp' ] UNIFIED_SOURCES += [
'/profile/dirserviceprovider/nsProfileLock.cpp'
]
if CONFIG['OS_ARCH'] == 'WINNT': if CONFIG['OS_ARCH'] == 'WINNT':
UNIFIED_SOURCES += [ TOPSRCDIR + '/profile/dirserviceprovider/ProfileUnlockerWin.cpp' ] UNIFIED_SOURCES += [
'/profile/dirserviceprovider/ProfileUnlockerWin.cpp'
]
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'nsToolkitProfileService.cpp' 'nsToolkitProfileService.cpp'

Просмотреть файл

@ -34,7 +34,7 @@ xpcom_glue_src_lcppsrcs = [
] ]
xpcom_glue_src_cppsrcs = [ xpcom_glue_src_cppsrcs = [
'%s/xpcom/glue/%s' % (TOPSRCDIR, s) for s in xpcom_glue_src_lcppsrcs '/xpcom/glue/%s' % s for s in xpcom_glue_src_lcppsrcs
] ]
xpcom_gluens_src_lcppsrcs = [ xpcom_gluens_src_lcppsrcs = [
@ -45,5 +45,5 @@ xpcom_gluens_src_lcppsrcs = [
] ]
xpcom_gluens_src_cppsrcs = [ xpcom_gluens_src_cppsrcs = [
'%s/xpcom/glue/%s' % (TOPSRCDIR, s) for s in xpcom_gluens_src_lcppsrcs '/xpcom/glue/%s' % s for s in xpcom_gluens_src_lcppsrcs
] ]

Просмотреть файл

@ -18,7 +18,7 @@ xpcom_base_src = [
'nsUUIDGenerator.cpp', 'nsUUIDGenerator.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/base/%s' % (TOPSRCDIR, s) for s in xpcom_base_src '/xpcom/base/%s' % s for s in xpcom_base_src
] ]
xpcom_build_src = [ xpcom_build_src = [
@ -26,7 +26,7 @@ xpcom_build_src = [
'Services.cpp', 'Services.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/build/%s' % (TOPSRCDIR, s) for s in xpcom_build_src '/xpcom/build/%s' % s for s in xpcom_build_src
] ]
xpcom_components_src = [ xpcom_components_src = [
@ -34,7 +34,7 @@ xpcom_components_src = [
'nsComponentManager.cpp', 'nsComponentManager.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/components/%s' % (TOPSRCDIR, s) for s in xpcom_components_src '/xpcom/components/%s' % s for s in xpcom_components_src
] ]
xpcom_ds_src = [ xpcom_ds_src = [
@ -58,7 +58,7 @@ elif CONFIG['OS_ARCH'] == 'Darwin':
elif CONFIG['COMPILE_ENVIRONMENT']: elif CONFIG['COMPILE_ENVIRONMENT']:
error('No TimeStamp implementation on this platform. Build will not succeed') error('No TimeStamp implementation on this platform. Build will not succeed')
src_list += [ src_list += [
'%s/xpcom/ds/%s' % (TOPSRCDIR, s) for s in xpcom_ds_src '/xpcom/ds/%s' % s for s in xpcom_ds_src
] ]
xpcom_glue_src = [ xpcom_glue_src = [
@ -84,14 +84,14 @@ xpcom_glue_src = [
'pldhash.cpp', 'pldhash.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/glue/%s' % (TOPSRCDIR, s) for s in xpcom_glue_src '/xpcom/glue/%s' % s for s in xpcom_glue_src
] ]
xpcom_io_src = [ xpcom_io_src = [
'nsNativeCharsetUtils.cpp', 'nsNativeCharsetUtils.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/io/%s' % (TOPSRCDIR, s) for s in xpcom_io_src '/xpcom/io/%s' % s for s in xpcom_io_src
] ]
xpcom_string_src = [ xpcom_string_src = [
@ -107,7 +107,7 @@ xpcom_string_src = [
if CONFIG['INTEL_ARCHITECTURE']: if CONFIG['INTEL_ARCHITECTURE']:
xpcom_string_src += ['nsUTF8UtilsSSE2.cpp'] xpcom_string_src += ['nsUTF8UtilsSSE2.cpp']
src_list += [ src_list += [
'%s/xpcom/string/%s' % (TOPSRCDIR, s) for s in xpcom_string_src '/xpcom/string/%s' % s for s in xpcom_string_src
] ]
xpcom_threads_src = [ xpcom_threads_src = [
@ -123,14 +123,14 @@ xpcom_threads_src = [
'TimerThread.cpp', 'TimerThread.cpp',
] ]
src_list += [ src_list += [
'%s/xpcom/threads/%s' % (TOPSRCDIR, s) for s in xpcom_threads_src '/xpcom/threads/%s' % s for s in xpcom_threads_src
] ]
SOURCES += sorted(src_list) SOURCES += sorted(src_list)
if CONFIG['INTEL_ARCHITECTURE']: if CONFIG['INTEL_ARCHITECTURE']:
sse_string_path = '%s/xpcom/string/nsUTF8UtilsSSE2.cpp' % TOPSRCDIR sse_string_path = '/xpcom/string/nsUTF8UtilsSSE2.cpp'
SOURCES[sse_string_path].flags += CONFIG['SSE2_FLAGS'] SOURCES[sse_string_path].flags += CONFIG['SSE2_FLAGS']
GENERATED_INCLUDES += ['..'] GENERATED_INCLUDES += ['..']