Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / tests / os2Embed / Makefile.in
blob86b5b24292cd7258ff5c652174df30a4767e8218
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: Mozilla-sample-code 1.0
4 # Copyright (c) 2002 Netscape Communications Corporation and
5 # other contributors
7 # Permission is hereby granted, free of charge, to any person obtaining a
8 # copy of this Mozilla sample software and associated documentation files
9 # (the "Software"), to deal in the Software without restriction, including
10 # without limitation the rights to use, copy, modify, merge, publish,
11 # distribute, sublicense, and/or sell copies of the Software, and to permit
12 # persons to whom the Software is furnished to do so, subject to the
13 # following conditions:
15 # The above copyright notice and this permission notice shall be included
16 # in all copies or substantial portions of the Software.
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 # DEALINGS IN THE SOFTWARE.
26 # Contributor(s):
28 # ***** END LICENSE BLOCK *****
30 DEPTH = ../../..
31 topsrcdir = @top_srcdir@
32 srcdir = @srcdir@
33 VPATH = @srcdir@
35 include $(DEPTH)/config/autoconf.mk
37 PROGRAM = os2Embed$(BIN_SUFFIX)
38 RESFILE = os2Embed.res
39 MOZILLA_INTERNAL_API = 1
41 MODULE = os2Embed
43 REQUIRES = xpcom \
44 string \
45 embed_base \
46 webbrwsr \
47 webshell \
48 windowwatcher \
49 profile \
50 necko \
51 docshell \
52 dom \
53 widget \
54 uriloader \
55 shistory \
56 webbrowserpersist \
57 gfx \
58 $(NULL)
60 CPPSRCS = \
61 os2Embed.cpp \
62 WebBrowserChrome.cpp \
63 WindowCreator.cpp \
64 $(NULL)
66 EXTRA_DSO_LIBS = embed_base_s gkgfx
68 LIBS = \
69 $(EXTRA_DSO_LIBS) \
70 $(XPCOM_LIBS) \
71 $(MOZ_JS_LIBS) \
72 $(NSPR_LIBS) \
73 $(NULL)
76 # Control the default heap size.
77 # This is the heap returned by GetProcessHeap().
78 # As we use the CRT heap, the default size is too large and wastes VM.
80 # The default heap size is 1MB on Win32.
81 # The heap will grow if need be.
83 # Set it to 256k. See bug 127069.
85 LDFLAGS += /HEAP:0x40000
87 include $(topsrcdir)/config/config.mk
89 # Force applications to be built non-statically
90 # when building the mozcomps meta component
91 ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
92 BUILD_STATIC_LIBS=
93 endif
95 ifdef BUILD_STATIC_LIBS
97 include $(topsrcdir)/config/static-config.mk
99 EXTRA_DEPS += $(STATIC_EXTRA_DEPS)
100 EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
101 EXTRA_LIBS += -L$(DEPTH)/dist/lib/components
102 EXTRA_LIBS += $(EXTRA_DSO_LIBS) $(STATIC_EXTRA_LIBS)
103 EXTRA_LIBS += $(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX)
104 DEFINES += $(STATIC_DEFINES)
105 CPPSRCS += $(STATIC_CPPSRCS)
107 endif # BUILD_STATIC_LIBS
110 include $(topsrcdir)/config/rules.mk
112 ifdef BUILD_STATIC_LIBS
113 include $(topsrcdir)/config/static-rules.mk
114 endif # BUILD_STATIC_LIBS