Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / wrappers / DotNETEmbed / Makefile
blobc748b2fa9fccfcb95083cfe71e521dea40c4d33e
1 #
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Original Code is the Mozilla browser.
17 # The Initial Developer of the Original Code is
18 # Christopher Blizzard.
19 # Portions created by the Initial Developer are Copyright (C) 2001
20 # the Initial Developer. All Rights Reserved.
22 # Contributor(s):
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 ifndef MOZ_OBJ_DIR
39 MOZ_OBJ_DIR = ${MOZ_SRC}/mozilla
40 endif
42 # Compiler variables (implicit rules are used to compile .cpp files)
43 CC = cl
44 CFLAGS = -nologo -Zi
45 CXX = cl
46 CXXFLAGS = -nologo -CLR -TP -Zi -wd4005 -we4700 -we4701 -c -DDEBUG -DXP_WIN -DXP_WIN32 ${INCLUDES}
48 OUTPUT_OPTION = -Fo$@
50 # Linker variables (implicit rules can't use link.exe, so we do that manually)
51 LDFLAGS = -nologo -dll -debug -libpath:${MOZ_OBJ_DIR}/dist/lib/ -NODEFAULTLIB:MSVCRTD
53 INCLUDES = \
54 -I${MOZ_OBJ_DIR}/dist/include \
55 -I${MOZ_OBJ_DIR}/dist/include/profile \
56 -I${MOZ_OBJ_DIR}/dist/include/webbrwsr \
57 -I${MOZ_OBJ_DIR}/dist/include/widget \
58 -I${MOZ_OBJ_DIR}/dist/include/xpcom \
59 -I${MOZ_OBJ_DIR}/dist/include/nspr \
60 -I${MOZ_OBJ_DIR}/dist/include/necko \
61 -I${MOZ_OBJ_DIR}/dist/include/docshell \
62 -I${MOZ_OBJ_DIR}/dist/include/dom \
63 -I${MOZ_OBJ_DIR}/dist/include/string \
64 -I${MOZ_OBJ_DIR}/dist/include/embed_base \
65 -I${MOZ_OBJ_DIR}/dist/include/windowwatcher \
66 -I${MOZ_OBJ_DIR}/dist/include/xpconnect
68 DEPS = DotNETEmbed.h Makefile
70 CPP_FILES = \
71 DotNETEmbed.cpp \
72 DotNETProfileManager.cpp \
73 DotNETNetworking.cpp \
74 AssemblyInfo.cpp
76 OBJ_FILES = $(CPP_FILES:%.cpp=%.obj)
78 LIBS = user32.lib xpcom.lib embed_base_s.lib
80 # Default target.
81 DotNETEmbed.dll: ${OBJ_FILES} DotNETEmbed.snk ${DEPS}
82 link ${LDFLAGS} ${LIBS} ${OBJ_FILES} -out:DotNETEmbed.dll
83 @echo
84 cp DotNETEmbed.dll ${MOZ_OBJ_DIR}/dist/bin
85 cp DotNETEmbed.pdb ${MOZ_OBJ_DIR}/dist/bin
86 regasm DotNETEmbed.dll
87 @echo
88 gacutil.exe -i DotNETEmbed.dll
89 @echo
91 DotNETEmbed.obj: DotNETEmbed.cpp umWebChrome.h ${DEPS}
92 ${CXX} ${CXXFLAGS} ${OUTPUT_OPTION} DotNETEmbed.cpp
93 DotNETProfileManager.obj: DotNETProfileManager.cpp ${DEPS}
94 ${CXX} ${CXXFLAGS} ${OUTPUT_OPTION} DotNETProfileManager.cpp
95 DotNETNetworking.obj: DotNETNetworking.cpp DotNETNetworking.h ${DEPS}
96 ${CXX} ${CXXFLAGS} ${OUTPUT_OPTION} DotNETNetworking.cpp
97 AssemblyInfo.obj: AssemblyInfo.cpp ${DEPS}
98 ${CXX} ${CXXFLAGS} ${OUTPUT_OPTION} AssemblyInfo.cpp
100 extdlls:
101 cp ${MOZ_OBJ_DIR}/dist/bin/nspr4.dll .
102 cp ${MOZ_OBJ_DIR}/dist/bin/plc4.dll .
103 cp ${MOZ_OBJ_DIR}/dist/bin/plds4.dll .
104 cp ${MOZ_OBJ_DIR}/dist/bin/xpcom.dll .
106 clean:
107 rm -f *.obj DotNETEmbed.dll
108 rm -f *.pdb *.ilk
110 realclean: clean
111 rm -f *~