|
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 EXPORTS += [ |
|
8 'BackstagePass.h', |
|
9 'nsCxPusher.h', |
|
10 'qsObjectHelper.h', |
|
11 'XPCJSMemoryReporter.h', |
|
12 'xpcObjectHelper.h', |
|
13 'xpcpublic.h', |
|
14 ] |
|
15 |
|
16 UNIFIED_SOURCES += [ |
|
17 'nsCxPusher.cpp', |
|
18 'nsScriptError.cpp', |
|
19 'nsXPConnect.cpp', |
|
20 'Sandbox.cpp', |
|
21 'XPCCallContext.cpp', |
|
22 'XPCContext.cpp', |
|
23 'XPCConvert.cpp', |
|
24 'XPCDebug.cpp', |
|
25 'XPCException.cpp', |
|
26 'XPCJSContextStack.cpp', |
|
27 'XPCJSID.cpp', |
|
28 'XPCJSRuntime.cpp', |
|
29 'XPCJSWeakReference.cpp', |
|
30 'XPCLocale.cpp', |
|
31 'XPCLog.cpp', |
|
32 'XPCMaps.cpp', |
|
33 'XPCModule.cpp', |
|
34 'XPCQuickStubs.cpp', |
|
35 'XPCRuntimeService.cpp', |
|
36 'XPCShellImpl.cpp', |
|
37 'XPCString.cpp', |
|
38 'XPCThrower.cpp', |
|
39 'XPCVariant.cpp', |
|
40 'XPCWrappedJS.cpp', |
|
41 'XPCWrappedJSClass.cpp', |
|
42 'XPCWrappedNative.cpp', |
|
43 'XPCWrappedNativeInfo.cpp', |
|
44 'XPCWrappedNativeJSOps.cpp', |
|
45 'XPCWrappedNativeProto.cpp', |
|
46 'XPCWrappedNativeScope.cpp', |
|
47 'XPCWrapper.cpp', |
|
48 ] |
|
49 |
|
50 # XPCComponents.cpp cannot be built in unified mode because it uses plarena.h. |
|
51 SOURCES += [ |
|
52 'XPCComponents.cpp', |
|
53 ] |
|
54 |
|
55 GENERATED_SOURCES += [ |
|
56 'dom_quickstubs.cpp', |
|
57 'GeneratedEvents.cpp', |
|
58 ] |
|
59 |
|
60 FAIL_ON_WARNINGS = True |
|
61 |
|
62 MSVC_ENABLE_PGO = True |
|
63 |
|
64 LIBRARY_NAME = 'xpconnect_s' |
|
65 |
|
66 include('/ipc/chromium/chromium-config.mozbuild') |
|
67 |
|
68 FINAL_LIBRARY = 'gklayout' |
|
69 |
|
70 GENERATED_FILES = [ |
|
71 'dom_quickstubs.h', |
|
72 'GeneratedEventClasses.h', |
|
73 'GeneratedEvents.h', |
|
74 ] |
|
75 |
|
76 DEFINES['JS_THREADSAFE'] = True |
|
77 |
|
78 if CONFIG['MOZ_JSDEBUGGER']: |
|
79 DEFINES['MOZ_JSDEBUGGER'] = True |
|
80 |
|
81 LOCAL_INCLUDES += [ |
|
82 '../loader', |
|
83 '../wrappers', |
|
84 '/caps/include', |
|
85 '/content/base/public', |
|
86 '/content/base/src', |
|
87 '/content/html/content/src', |
|
88 '/content/html/document/src', |
|
89 '/content/svg/content/src', |
|
90 '/dom/base', |
|
91 '/dom/workers', |
|
92 '/js/ipc', |
|
93 '/layout/base', |
|
94 '/layout/style', |
|
95 ] |
|
96 |
|
97 if CONFIG['MOZ_B2G_BT']: |
|
98 LOCAL_INCLUDES += [ |
|
99 '/dom/bluetooth', |
|
100 ] |