|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 if CONFIG['TARGET_CPU'] == 'x86_64': |
|
8 if CONFIG['GNU_CXX']: |
|
9 SOURCES += [ |
|
10 'xptcinvoke_x86_64.cpp', |
|
11 'xptcstubs_x86_64_gnu.cpp', |
|
12 ] |
|
13 SOURCES += [ |
|
14 'xptcinvoke_asm_x86_64_gnu.s' |
|
15 ] |
|
16 else: |
|
17 SOURCES += [ |
|
18 'xptcinvoke_x86_64.cpp', |
|
19 'xptcstubs_x86_64.cpp' |
|
20 ] |
|
21 SOURCES += [ |
|
22 'xptcinvoke_asm_x86_64.asm', |
|
23 'xptcstubs_asm_x86_64.asm' |
|
24 ] |
|
25 else: |
|
26 if CONFIG['GNU_CXX']: |
|
27 SOURCES += [ |
|
28 'xptcinvoke_x86_gnu.cpp', |
|
29 'xptcstubs.cpp', |
|
30 ] |
|
31 else: |
|
32 SOURCES += [ |
|
33 'xptcinvoke.cpp', |
|
34 'xptcstubs.cpp', |
|
35 ] |
|
36 |
|
37 FINAL_LIBRARY = 'xpcom_core' |
|
38 |
|
39 LOCAL_INCLUDES += [ |
|
40 '../..', |
|
41 '../../../../xptinfo/src', |
|
42 ] |
|
43 |
|
44 if CONFIG['TARGET_CPU'] != 'x86_64': |
|
45 if not CONFIG['GNU_CXX']: |
|
46 # FIXME: bug 413019 |
|
47 NO_PGO = True |