~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/embedding/tests/mfcembed/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ***** BEGIN LICENSE BLOCK *****
 
2
# Version: Mozilla-sample-code 1.0
 
3
#
 
4
# Copyright (c) 2002 Netscape Communications Corporation and
 
5
# other contributors
 
6
#
 
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:
 
14
#
 
15
# The above copyright notice and this permission notice shall be included
 
16
# in all copies or substantial portions of the Software.
 
17
#
 
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.
 
25
#
 
26
# Contributor(s):
 
27
#
 
28
# ***** END LICENSE BLOCK *****
 
29
 
 
30
DEPTH           = ../../..
 
31
topsrcdir       = @top_srcdir@
 
32
srcdir          = @srcdir@
 
33
VPATH           = @srcdir@
 
34
 
 
35
include $(DEPTH)/config/autoconf.mk
 
36
 
 
37
PROGRAM         = mfcembed$(BIN_SUFFIX)
 
38
RESFILE         = MfcEmbed.res
 
39
 
 
40
MODULE = mfcEmbed
 
41
PACKAGE_FILE = mfcembed.pkg
 
42
 
 
43
# comment this out if for some reason you want to link against xpcom
 
44
# directly instead of using the standalone glue
 
45
ifndef BUILD_STATIC_LIBS
 
46
GRE_BUILD = 1
 
47
endif
 
48
 
 
49
ifdef GRE_BUILD
 
50
DEFINES   += -DXPCOM_GLUE
 
51
endif
 
52
 
 
53
REQUIRES = \
 
54
        xpcom_obsolete \
 
55
        xpcom \
 
56
        string \
 
57
        necko \
 
58
        webbrwsr \
 
59
        widget \
 
60
        docshell \
 
61
        dom \
 
62
        uriloader \
 
63
        embed_base \
 
64
        webshell \
 
65
        shistory \
 
66
        pref \
 
67
        profile \
 
68
        profdirserviceprovider \
 
69
        find \
 
70
        gfx \
 
71
        windowwatcher \
 
72
        layout \
 
73
        webbrowserpersist \
 
74
        composer \
 
75
        commandhandler \
 
76
        imglib2 \
 
77
        webbrwsr \
 
78
        editor \
 
79
        $(NULL)
 
80
 
 
81
ifdef NS_TRACE_MALLOC
 
82
REQUIRES        += tracemalloc
 
83
endif
 
84
 
 
85
ifdef MOZ_PROFILESHARING
 
86
REQUIRES        += profilesharingsetup
 
87
endif
 
88
 
 
89
CPPSRCS         = \
 
90
                CCustomPromptDialog.cpp     \
 
91
                CMarginHeaderFooter.cpp     \
 
92
                CFormatOptionTab.cpp     \
 
93
                CPageSetupPropSheet.cpp     \
 
94
                MfcEmbed.cpp     \
 
95
                BrowserFrm.cpp   \
 
96
                EditorFrm.cpp   \
 
97
                BrowserFrameGlue.cpp   \
 
98
                BrowserView.cpp \
 
99
                BrowserImpl.cpp \
 
100
                BrowserImplWebPrgrsLstnr.cpp \
 
101
                BrowserImplCtxMenuLstnr.cpp \
 
102
                BrowserToolTip.cpp \
 
103
                Dialogs.cpp       \
 
104
                ProfileMgr.cpp \
 
105
                ProfilesDlg.cpp \
 
106
                winEmbedFileLocProvider.cpp \
 
107
                MostRecentUrls.cpp \
 
108
                Preferences.cpp \
 
109
                StdAfx.cpp       \
 
110
                $(NULL)
 
111
 
 
112
EXTRA_DSO_LIBS  = embed_base_s profdirserviceprovider_s
 
113
 
 
114
ifdef NS_TRACE_MALLOC
 
115
EXTRA_DSO_LIBS  += tracemalloc
 
116
endif
 
117
 
 
118
LIBS            = \
 
119
                $(EXTRA_DSO_LIBS) \
 
120
                $(MOZ_UNICHARUTIL_LIBS) \
 
121
                $(NULL)
 
122
 
 
123
ifdef GRE_BUILD
 
124
LIBS += \
 
125
                 $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
 
126
                 $(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
 
127
                 $(NULL)
 
128
else
 
129
LIBS += $(XPCOM_LIBS)
 
130
ifdef BUILD_STATIC_LIBS
 
131
LIBS += $(MOZ_JS_LIBS)
 
132
endif
 
133
endif
 
134
 
 
135
LIBS += $(NSPR_LIBS)
 
136
 
 
137
OS_LIBS         += \
 
138
                ole32.lib \
 
139
                comdlg32.lib \
 
140
                shell32.lib \
 
141
                version.lib \
 
142
                $(NULL)
 
143
 
 
144
LOCAL_INCLUDES  = -I$(srcdir)/components
 
145
 
 
146
#
 
147
# Control the default heap size.
 
148
# This is the heap returned by GetProcessHeap().
 
149
# As we use the CRT heap, the default size is too large and wastes VM.
 
150
#
 
151
# The default heap size is 1MB on Win32.
 
152
# The heap will grow if need be.
 
153
#
 
154
# Set it to 256k.  See bug 127069.
 
155
#
 
156
LDFLAGS += /HEAP:0x40000
 
157
 
 
158
 
 
159
include $(topsrcdir)/config/config.mk
 
160
 
 
161
# Force applications to be built non-statically
 
162
# when building the mozcomps meta component
 
163
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
 
164
BUILD_STATIC_LIBS=
 
165
BUILD_SHARED_LIBS=1
 
166
endif
 
167
 
 
168
ifdef BUILD_STATIC_LIBS
 
169
 
 
170
include $(topsrcdir)/config/static-config.mk
 
171
 
 
172
EXTRA_DEPS     += $(STATIC_EXTRA_DEPS)
 
173
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
 
174
ifneq ($(OS_ARCH),WINNT)
 
175
EXTRA_LIBS     += -L$(DEPTH)/dist/lib/components
 
176
endif # !WINNT
 
177
EXTRA_LIBS     += $(EXTRA_DSO_LIBS) $(STATIC_EXTRA_LIBS)
 
178
DEFINES        += $(STATIC_DEFINES)
 
179
CPPSRCS        += $(STATIC_CPPSRCS)
 
180
 
 
181
endif # BUILD_STATIC_LIBS
 
182
 
 
183
 
 
184
include $(topsrcdir)/config/rules.mk
 
185
 
 
186
 
 
187
ifdef BUILD_STATIC_LIBS
 
188
include $(topsrcdir)/config/static-rules.mk
 
189
endif # BUILD_STATIC_LIBS
 
190
 
 
191
# UNICODE
 
192
ifdef BUILD_UNICODE_MFCEMBED
 
193
CXXFLAGS        += /D "_UNICODE"
 
194
LDFLAGS         += /ENTRY:wWinMainCRTStartup
 
195
endif
 
196
 
 
197
CXXFLAGS        += /D "_AFXDLL" /D "USE_SINGLE_SIGN_ON" -DMOZILLA_VERSION=\"$(MOZILLA_VERSION)\"
 
198
LDFLAGS         += /SUBSYSTEM:windows
 
199
 
 
200
libs:: mfcembed.htm
 
201
        $(INSTALL) $^ $(DIST)/bin
 
202
 
 
203
install:: mfcembed.htm
 
204
        $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)
 
205