Bug 927551 - make darwin xptcall sources compilable in a singlepass universal build; r=bsmedberg,glandium

This commit is contained in:
Nathan Froyd 2013-10-16 15:25:36 -04:00
Родитель b179c4efec
Коммит 098902f7e9
3 изменённых файлов: 32 добавлений и 17 удалений

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

@ -7,17 +7,10 @@
MODULE = 'xpcom' MODULE = 'xpcom'
if CONFIG['OS_ARCH'] == 'Darwin': if CONFIG['OS_ARCH'] == 'Darwin':
if CONFIG['OS_TEST'].find('86') != -1: CPP_SOURCES += [
if CONFIG['OS_TEST'] == 'x86_64': 'xptcinvoke_darwin.cpp',
CPP_SOURCES += [ 'xptcstubs_darwin.cpp',
'xptcinvoke_x86_64_unix.cpp', ]
'xptcstubs_x86_64_darwin.cpp',
]
else:
CPP_SOURCES += [
'xptcinvoke_gcc_x86_unix.cpp',
'xptcstubs_gcc_x86_unix.cpp',
]
if CONFIG['OS_ARCH'] in ('NetBSD', 'OpenBSD', 'GNU'): if CONFIG['OS_ARCH'] in ('NetBSD', 'OpenBSD', 'GNU'):
if CONFIG['CPU_ARCH'] == 'x86': if CONFIG['CPU_ARCH'] == 'x86':
@ -211,12 +204,6 @@ if CONFIG['OS_ARCH'] == 'OpenBSD' and CONFIG['OS_TEST'] == 'powerpc':
'xptcstubs_ppc_openbsd.cpp', 'xptcstubs_ppc_openbsd.cpp',
] ]
if CONFIG['OS_ARCH'] == 'Darwin' and CONFIG['TARGET_CPU'] == 'powerpc':
CPP_SOURCES += [
'xptcinvoke_ppc_rhapsody.cpp',
'xptcstubs_ppc_rhapsody.cpp',
]
if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TEST'].find('sparc') != -1: if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TEST'].find('sparc') != -1:
CPP_SOURCES += [ CPP_SOURCES += [
'xptcinvoke_sparc_solaris.cpp', 'xptcinvoke_sparc_solaris.cpp',

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

@ -0,0 +1,14 @@
/* -*- Mode: C -*- */
/* 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/. */
#if defined(__i386__)
#include "xptcinvoke_gcc_x86_unix.cpp"
#elif defined(__x86_64__)
#include "xptcinvoke_x86_64_unix.cpp"
#elif defined(__ppc__)
#include "xptcinvoke_ppc_rhapsody.cpp"
#else
#error unknown cpu architecture
#endif

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

@ -0,0 +1,14 @@
/* -*- Mode: C -*- */
/* 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/. */
#if defined(__i386__)
#include "xptcstubs_gcc_x86_unix.cpp"
#elif defined(__x86_64__)
#include "xptcstubs_x86_64_darwin.cpp"
#elif defined(__ppc__)
#include "xptcstubs_ppc_rhapsody.cpp"
#else
#error unknown cpu architecture
#endif