forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
156 lines (130 loc) · 3.07 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# 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/.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = xpcom
XPIDL_MODULE = xpcom_base
LIBRARY_NAME = xpcombase_s
GRE_MODULE = 1
MOZILLA_INTERNAL_API =1
LIBXUL_LIBRARY = 1
# TODO: we do this in crashreporter and storage/src too, should be centralized
ifeq ($(OS_ARCH),Linux)
DEFINES += -DXP_LINUX
endif
CPPSRCS = \
nsVersionComparatorImpl.cpp \
nsConsoleMessage.cpp \
nsConsoleService.cpp \
nsDebugImpl.cpp \
nsErrorService.cpp \
nsExceptionService.cpp \
nsMemoryImpl.cpp \
nsTraceRefcntImpl.cpp \
nsInterfaceRequestorAgg.cpp \
nsUUIDGenerator.cpp \
nsSystemInfo.cpp \
nsCycleCollector.cpp \
nsStackWalk.cpp \
nsMemoryReporterManager.cpp \
FunctionTimer.cpp \
ClearOnShutdown.cpp \
VisualEventTracer.cpp \
$(NULL)
ifeq ($(OS_ARCH),Linux)
CPPSRCS += MapsMemoryReporter.cpp
endif
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS += nsMacUtilsImpl.cpp
endif
EXPORTS = \
nsAgg.h \
nsAutoRef.h \
nsCom.h \
nsDebugImpl.h \
nsIAllocator.h \
nsIID.h \
nsISizeOf.h \
nsISupportsObsolete.h \
nsStackWalk.h \
nsTraceRefcntImpl.h \
nsWeakPtr.h \
nsInterfaceRequestorAgg.h \
dmd.h \
$(NULL)
EXPORTS_NAMESPACES = mozilla
EXPORTS_mozilla = \
FunctionTimer.h \
MapsMemoryReporter.h \
ClearOnShutdown.h \
AvailableMemoryTracker.h \
StackWalk.h \
VisualEventTracer.h \
$(NULL)
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS += nsCrashOnException.cpp
endif
ifeq ($(OS_ARCH),WINNT)
ifdef MOZ_DEBUG
CSRCS += pure_api.c
EXPORTS += pure.h
endif
CPPSRCS += AvailableMemoryTracker.cpp
endif #if OS_ARCH == WINNT
SDK_XPIDLSRCS = \
nsIDebug.idl \
nsIInterfaceRequestor.idl \
nsIMemory.idl \
nsIProgrammingLanguage.idl \
nsISupports.idl \
nsITraceRefcnt.idl \
nsIWeakReference.idl \
nsrootidl.idl
SDK_HEADERS = \
nsAutoPtr.h \
nsError.h \
nsISupportsBase.h \
nscore.h \
nsAtomicRefcnt.h \
nsCycleCollector.h \
nsObjCExceptions.h \
ifeq ($(OS_ARCH),WINNT)
SDK_HEADERS += \
nsWindowsHelpers.h \
$(NULL)
endif
XPIDLSRCS = \
nsIConsoleListener.idl \
nsIConsoleMessage.idl \
nsIConsoleService.idl \
nsICycleCollectorListener.idl \
nsIDebug2.idl \
nsIErrorService.idl \
nsIException.idl \
nsIExceptionService.idl \
nsIVersionComparator.idl \
nsIUUIDGenerator.idl \
nsIMutable.idl \
nsIMemoryReporter.idl \
$(NULL)
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
XPIDLSRCS += nsIMacUtils.idl
endif
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_COM
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
CXXFLAGS += $(MOZ_GTK2_CFLAGS)
endif
LOCAL_INCLUDES += \
-I$(srcdir)/../build \
-I$(topsrcdir)/xpcom/ds \
$(NULL)