2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04:00
|
|
|
# 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/.
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-16 23:25:36 +04:00
|
|
|
'xptcinvoke_darwin.cpp',
|
|
|
|
'xptcstubs_darwin.cpp',
|
|
|
|
]
|
2013-10-30 02:46:17 +04:00
|
|
|
if CONFIG['OS_TEST'] == 'powerpc':
|
|
|
|
SOURCES += [
|
2015-05-19 11:41:09 +03:00
|
|
|
'!xptcstubs_asm_ppc_darwin.s',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ppc_rhapsody.s',
|
|
|
|
]
|
2016-06-22 18:21:58 +03:00
|
|
|
if CONFIG['OS_TEST'] == 'x86_64':
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_x86_64_unix.S',
|
|
|
|
]
|
2013-11-27 17:55:07 +04:00
|
|
|
if '86' in CONFIG['OS_TEST'] and CONFIG['OS_TEST'] != 'x86_64':
|
|
|
|
DEFINES['MOZ_NEED_LEADING_UNDERSCORE'] = True
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2014-12-22 23:45:41 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'GNU':
|
2013-06-01 17:15:46 +04:00
|
|
|
if CONFIG['CPU_ARCH'] == 'x86':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_gcc_x86_unix.cpp',
|
|
|
|
'xptcstubs_gcc_x86_unix.cpp'
|
|
|
|
]
|
|
|
|
|
2015-12-29 21:06:20 +03:00
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'Bitrig', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD') or \
|
2013-04-24 01:54:15 +04:00
|
|
|
CONFIG['OS_ARCH'].startswith('GNU_'):
|
|
|
|
if CONFIG['OS_TEST'] == 'x86_64':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2016-06-22 18:21:58 +03:00
|
|
|
'xptcinvoke_asm_x86_64_unix.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_x86_64_unix.cpp',
|
|
|
|
'xptcstubs_x86_64_linux.cpp',
|
|
|
|
]
|
2015-05-08 08:36:43 +03:00
|
|
|
elif '86' in CONFIG['OS_TEST']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_gcc_x86_unix.cpp',
|
|
|
|
'xptcstubs_gcc_x86_unix.cpp'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'):
|
2015-05-08 08:36:43 +03:00
|
|
|
if 'ia64' in CONFIG['OS_TEST']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ipf64.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ipf64.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_ipf64.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ipf64.cpp'
|
|
|
|
]
|
|
|
|
|
2015-05-08 08:36:43 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'SunOS' and '86' in CONFIG['OS_TEST']:
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['OS_TEST'] == 'x86_64':
|
|
|
|
if CONFIG['GNU_CC']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2017-06-02 15:46:31 +03:00
|
|
|
'xptcinvoke_asm_x86_64_unix.S',
|
2013-10-24 03:00:23 +04:00
|
|
|
'xptcinvoke_x86_64_unix.cpp',
|
|
|
|
'xptcstubs_x86_64_linux.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
else:
|
2017-06-02 15:46:31 +03:00
|
|
|
GENERATED_FILES = [
|
|
|
|
'xptcstubsdef_asm.solx86',
|
|
|
|
]
|
2015-05-08 08:13:10 +03:00
|
|
|
ASFLAGS += ['-xarch=amd64']
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_x86_64_solaris.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_x86_64_solaris_SUNW.s',
|
2013-10-24 03:00:23 +04:00
|
|
|
'xptcstubs_x86_64_solaris.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2015-05-08 08:36:43 +03:00
|
|
|
else:
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['GNU_CC']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_gcc_x86_unix.cpp',
|
|
|
|
'xptcstubs_gcc_x86_unix.cpp'
|
|
|
|
]
|
|
|
|
else:
|
2017-06-02 15:46:31 +03:00
|
|
|
GENERATED_FILES = [
|
|
|
|
'xptcstubsdef_asm.solx86',
|
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_x86_solaris_SUNW.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_x86_solaris.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_x86_solaris_SUNW.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_x86_solaris.cpp'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TEST'] == 'alpha':
|
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD', 'NetBSD'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_linux_alpha.cpp',
|
|
|
|
'xptcstubs_linux_alpha.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'OpenBSD':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_alpha_openbsd.cpp',
|
|
|
|
'xptcstubs_alpha_openbsd.cpp',
|
|
|
|
]
|
|
|
|
|
2013-11-01 06:48:45 +04:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm' or CONFIG['OS_TEST'] == 'sa110':
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_arm.cpp',
|
|
|
|
'xptcstubs_arm.cpp'
|
|
|
|
]
|
2014-02-27 06:37:19 +04:00
|
|
|
CXXFLAGS += ['-O2']
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'NetBSD':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_arm_netbsd.cpp',
|
|
|
|
'xptcstubs_arm_netbsd.cpp',
|
|
|
|
]
|
|
|
|
|
2015-12-29 21:06:20 +03:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['OS_ARCH'] in ('Bitrig', 'OpenBSD'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_arm_openbsd.cpp',
|
|
|
|
'xptcstubs_arm_openbsd.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'HP-UX':
|
|
|
|
if CONFIG['CC'] != 'gcc':
|
|
|
|
if CONFIG['OS_TEST'] == 'ia64':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ipf32.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ipf32.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_ipf32.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ipf32.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_pa32.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_pa32.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_pa32.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_pa32.cpp'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
if CONFIG['OS_TEST'] in ('hppa', 'hppa2.0', 'hppa1.1'):
|
|
|
|
if CONFIG['GNU_CXX']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_parisc_linux.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_pa32.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_parisc_linux.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_pa32.cpp',
|
|
|
|
]
|
2013-11-07 05:37:45 +04:00
|
|
|
elif CONFIG['COMPILE_ENVIRONMENT']:
|
2013-04-24 01:54:15 +04:00
|
|
|
error('Unknown C++ compiler, xptcall assembly will probably be incorrect.')
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'NetBSD':
|
|
|
|
if CONFIG['OS_TEST'] in ('amiga', 'atari', 'hp300', 'mac68k', 'mvme68k',
|
|
|
|
'next68k', 'sun3', 'sun3x', 'x68k'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_netbsd_m68k.cpp',
|
|
|
|
'xptcstubs_netbsd_m68k.cpp'
|
|
|
|
]
|
|
|
|
|
2017-01-11 01:50:32 +03:00
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD', 'NetBSD', 'OpenBSD'):
|
2014-02-26 22:43:16 +04:00
|
|
|
if CONFIG['OS_TEST'] == 'aarch64':
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_aarch64.cpp',
|
|
|
|
'xptcinvoke_asm_aarch64.s',
|
|
|
|
'xptcstubs_aarch64.cpp',
|
|
|
|
'xptcstubs_asm_aarch64.s',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['OS_TEST'] == 'm68k':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_linux_m68k.cpp',
|
|
|
|
'xptcstubs_linux_m68k.cpp',
|
|
|
|
]
|
2015-05-08 08:36:43 +03:00
|
|
|
if 'mips' in CONFIG['OS_TEST']:
|
|
|
|
if 'mips64' in CONFIG['OS_TEST']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_mips64.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_mips64.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_mips64.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_mips64.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_mips.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_mips.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_mips.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_mips.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'AIX':
|
2014-06-25 06:16:25 +04:00
|
|
|
if CONFIG['HAVE_64BIT_BUILD']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2015-05-19 11:41:09 +03:00
|
|
|
'!xptcstubs_asm_ppc_aix64.s',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ppc_aix64.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc_aix64.cpp',
|
|
|
|
'xptcstubs_ppc_aix64.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2015-05-19 11:41:09 +03:00
|
|
|
'!xptcstubs_asm_ppc_aix.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc_aix.cpp',
|
|
|
|
'xptcstubs_ppc_aix.cpp',
|
|
|
|
]
|
2013-10-30 02:46:17 +04:00
|
|
|
if CONFIG['AIX_OBJMODEL'] == 'ibm':
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_ppc_ibmobj_aix.s',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_ppc_aix.s',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
if CONFIG['OS_TEST'] == 'powerpc':
|
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ppc_linux.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc_linux.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_ppc_linux.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ppc_linux.cpp',
|
|
|
|
]
|
|
|
|
|
2014-02-28 18:56:43 +04:00
|
|
|
if CONFIG['OS_TEST'] in ('powerpc64', 'powerpc64le'):
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2014-02-28 18:56:43 +04:00
|
|
|
'xptcinvoke_asm_ppc64_linux.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc64_linux.cpp',
|
2014-02-28 18:56:43 +04:00
|
|
|
'xptcstubs_asm_ppc64_linux.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ppc64_linux.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TEST'] in ('macppc', 'bebox', 'ofppc', 'prep', 'amigappc'):
|
|
|
|
if CONFIG['OS_ARCH'] == 'NetBSD':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_ppc_netbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc_netbsd.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_ppc_netbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ppc_netbsd.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'OpenBSD' and CONFIG['OS_TEST'] == 'powerpc':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2014-01-10 22:08:57 +04:00
|
|
|
'xptcinvoke_asm_ppc_openbsd.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_ppc_openbsd.cpp',
|
2014-01-10 22:08:57 +04:00
|
|
|
'xptcstubs_asm_ppc_openbsd.S',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_ppc_openbsd.cpp',
|
|
|
|
]
|
|
|
|
|
2016-12-12 18:46:40 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TEST'] == 'sparc':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_sparc_linux_GCC3.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparc_solaris.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_sparc_solaris.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_sparc_solaris.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'NetBSD' and CONFIG['OS_TEST'] == 'sparc':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_sparc_netbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparc_netbsd.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_sparc_netbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_sparc_netbsd.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'OpenBSD' and CONFIG['OS_TEST'] == 'sparc':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_sparc_openbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparc_openbsd.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_sparc_openbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_sparc_openbsd.cpp',
|
|
|
|
]
|
|
|
|
|
2016-12-12 18:46:40 +03:00
|
|
|
if CONFIG['OS_ARCH'] in ('OpenBSD', 'FreeBSD', 'Linux') and CONFIG['OS_TEST'] == 'sparc64':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcinvoke_asm_sparc64_openbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparc64_openbsd.cpp',
|
2013-10-30 02:46:17 +04:00
|
|
|
'xptcstubs_asm_sparc64_openbsd.s',
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcstubs_sparc64_openbsd.cpp',
|
|
|
|
]
|
|
|
|
|
2015-05-08 08:36:43 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'SunOS' and '86' not in CONFIG['OS_TEST']:
|
2014-06-25 06:16:25 +04:00
|
|
|
if CONFIG['HAVE_64BIT_BUILD']:
|
2015-05-08 08:13:10 +03:00
|
|
|
ASFLAGS += ['-xarch=v9']
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparcv9_solaris.cpp',
|
|
|
|
'xptcstubs_sparcv9_solaris.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_sparc_solaris.cpp',
|
|
|
|
'xptcstubs_sparc_solaris.cpp',
|
|
|
|
]
|
2013-10-30 02:46:17 +04:00
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_sparc_solaris_GCC3.s',
|
|
|
|
'xptcstubs_asm_sparc_solaris.s',
|
|
|
|
]
|
|
|
|
else:
|
2014-06-25 06:16:25 +04:00
|
|
|
if CONFIG['HAVE_64BIT_BUILD']:
|
2013-10-30 02:46:17 +04:00
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_sparcv9_solaris_SUNW.s',
|
|
|
|
'xptcstubs_asm_sparcv9_solaris.s',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
SOURCES += [
|
|
|
|
'xptcinvoke_asm_sparc_solaris_SUNW.s',
|
|
|
|
'xptcstubs_asm_sparc_solaris.s',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
if CONFIG['OS_TEST'] == 's390':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_linux_s390.cpp',
|
|
|
|
'xptcstubs_linux_s390.cpp',
|
|
|
|
]
|
2014-02-27 06:37:19 +04:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-fno-strict-aliasing',
|
|
|
|
'-fno-inline',
|
|
|
|
'-fomit-frame-pointer',
|
|
|
|
'-mbackchain',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['OS_TEST'] == 's390x':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'xptcinvoke_linux_s390x.cpp',
|
|
|
|
'xptcstubs_linux_s390x.cpp',
|
|
|
|
]
|
2014-02-27 06:37:19 +04:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-fno-strict-aliasing',
|
|
|
|
'-fno-inline',
|
|
|
|
'-fomit-frame-pointer',
|
|
|
|
'-mbackchain',
|
|
|
|
]
|
2013-08-15 17:02:09 +04:00
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-12-09 08:39:26 +04:00
|
|
|
|
2013-12-31 13:06:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../..',
|
2014-06-30 19:39:46 +04:00
|
|
|
'/xpcom/reflect/xptinfo',
|
2013-12-31 13:06:11 +04:00
|
|
|
]
|
|
|
|
|
2013-12-09 08:39:26 +04:00
|
|
|
NO_PGO = True
|