1 | # |
---|
2 | # The contents of this file are subject to the Netscape Public |
---|
3 | # License Version 1.1 (the "License"); you may not use this file |
---|
4 | # except in compliance with the License. You may obtain a copy of |
---|
5 | # the License at http://www.mozilla.org/NPL/ |
---|
6 | # |
---|
7 | # Software distributed under the License is distributed on an "AS |
---|
8 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
---|
9 | # implied. See the License for the specific language governing |
---|
10 | # rights and limitations under the License. |
---|
11 | # |
---|
12 | # The Original Code is mozilla.org code. |
---|
13 | # |
---|
14 | # The Initial Developer of the Original Code is Netscape |
---|
15 | # Communications Corporation. Portions created by Netscape are |
---|
16 | # Copyright (C) 1998 Netscape Communications Corporation. All |
---|
17 | # Rights Reserved. |
---|
18 | # |
---|
19 | # Contributor(s): |
---|
20 | # |
---|
21 | |
---|
22 | DEPTH = ../.. |
---|
23 | topsrcdir = @top_srcdir@ |
---|
24 | srcdir = @srcdir@ |
---|
25 | VPATH = @srcdir@ |
---|
26 | |
---|
27 | include $(DEPTH)/config/autoconf.mk |
---|
28 | |
---|
29 | MODULE = xpcom |
---|
30 | XPIDL_MODULE = xpcom_components |
---|
31 | LIBRARY_NAME = xpcomcomponents_s |
---|
32 | GRE_MODULE = 1 |
---|
33 | |
---|
34 | REQUIRES = string \ |
---|
35 | $(NULL) |
---|
36 | |
---|
37 | CPPSRCS = \ |
---|
38 | nsCategoryManager.cpp \ |
---|
39 | nsComponentManager.cpp \ |
---|
40 | nsComponentManagerObsolete.cpp \ |
---|
41 | nsNativeComponentLoader.cpp \ |
---|
42 | nsServiceManagerObsolete.cpp \ |
---|
43 | xcDll.cpp \ |
---|
44 | $(NULL) |
---|
45 | |
---|
46 | ifdef MOZ_STATIC_COMPONENT_LOADER |
---|
47 | CPPSRCS += nsStaticComponentLoader.cpp |
---|
48 | endif |
---|
49 | |
---|
50 | EXPORTS = \ |
---|
51 | nsCategoryManagerUtils.h \ |
---|
52 | nsComponentManagerUtils.h \ |
---|
53 | nsComponentManagerObsolete.h \ |
---|
54 | nsIServiceManagerUtils.h \ |
---|
55 | nsIServiceManagerObsolete.h \ |
---|
56 | nsNativeComponentLoader.h \ |
---|
57 | nsStaticComponent.h \ |
---|
58 | nsObsoleteModuleLoading.h \ |
---|
59 | xcDll.h \ |
---|
60 | $(NULL) |
---|
61 | |
---|
62 | XPIDLSRCS = \ |
---|
63 | nsIComponentLoader.idl \ |
---|
64 | nsIComponentLoaderManager.idl \ |
---|
65 | nsIComponentManagerObsolete.idl \ |
---|
66 | nsINativeComponentLoader.idl \ |
---|
67 | $(NULL) |
---|
68 | |
---|
69 | SDK_XPIDLSRCS = \ |
---|
70 | nsIClassInfo.idl \ |
---|
71 | nsIComponentRegistrar.idl \ |
---|
72 | nsIFactory.idl \ |
---|
73 | nsIModule.idl \ |
---|
74 | nsIServiceManager.idl \ |
---|
75 | nsIComponentManager.idl \ |
---|
76 | nsICategoryManager.idl \ |
---|
77 | $(NULL) |
---|
78 | |
---|
79 | EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) |
---|
80 | |
---|
81 | LOCAL_INCLUDES = -I$(srcdir)/../base -I$(srcdir)/../thread -I$(srcdir)/../ds -I.. |
---|
82 | |
---|
83 | # we don't want the shared lib, but we want to force the creation of a static lib. |
---|
84 | FORCE_STATIC_LIB = 1 |
---|
85 | |
---|
86 | # Force use of PIC |
---|
87 | FORCE_USE_PIC = 1 |
---|
88 | include $(topsrcdir)/config/rules.mk |
---|
89 | |
---|
90 | DEFINES += -D_IMPL_NS_COM -DEXPORT_XPTI_API |
---|