xulrunner/app/Makefile.in

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:47de428b777e
1 # vim:set ts=8 sw=8 sts=8 et:
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 PREF_JS_EXPORTS = $(srcdir)/xulrunner.js
7 GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/,xulrunner.js)
8
9 DEFINES += -DAB_CD=$(AB_CD)
10
11 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
12 TK_LIBS := -framework Cocoa $(TK_LIBS)
13 endif
14
15 LIBS += \
16 $(XPCOM_STANDALONE_GLUE_LDOPTS) \
17 $(NULL)
18
19 ifndef MOZ_WINCONSOLE
20 ifdef MOZ_DEBUG
21 MOZ_WINCONSOLE = 1
22 else
23 MOZ_WINCONSOLE = 0
24 endif
25 endif
26
27 # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
28 # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
29 NSDISTMODE = copy
30
31 include $(topsrcdir)/config/config.mk
32
33 ifeq ($(OS_ARCH),WINNT)
34 OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool)
35 endif
36
37 include $(topsrcdir)/config/rules.mk
38
39 DEFINES += -DXULRUNNER_ICO='"$(DIST)/branding/xulrunner.ico"' -DDOCUMENT_ICO='"$(DIST)/branding/document.ico"'
40
41 ifdef MOZ_WIDGET_GTK
42 libs::
43 $(INSTALL) $(IFLAGS1) $(DIST)/branding/default16.png $(DIST)/bin/chrome/icons/default
44 $(INSTALL) $(IFLAGS1) $(DIST)/branding/default32.png $(DIST)/bin/chrome/icons/default
45 $(INSTALL) $(IFLAGS1) $(DIST)/branding/default48.png $(DIST)/bin/chrome/icons/default
46 endif
47
48 # XXX applications would need to supply this file
49 #export:: brand.dtd.in
50 # $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $^ -o brand.dtd)
51
52 export::
53 $(NSINSTALL) -D $(DIST)/branding
54 ifeq ($(OS_ARCH),WINNT)
55 cp $(srcdir)/xulrunner.ico $(DIST)/branding/xulrunner.ico
56 cp $(srcdir)/xulrunner.ico $(DIST)/branding/app.ico
57 cp $(srcdir)/document.ico $(DIST)/branding/document.ico
58 endif
59 ifdef MOZ_WIDGET_GTK
60 cp $(srcdir)/default16.png $(DIST)/branding/default16.png
61 cp $(srcdir)/default32.png $(DIST)/branding/default32.png
62 cp $(srcdir)/default48.png $(DIST)/branding/default48.png
63 endif
64
65 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
66
67 FRAMEWORK_NAME = XUL
68 FRAMEWORK_VERSION = $(MOZILLA_VERSION)
69
70 FRAMEWORK_DIR = \
71 $(DIST)/$(FRAMEWORK_NAME).framework/Versions/$(FRAMEWORK_VERSION)
72
73 $(FRAMEWORK_DIR)/Resources:
74 $(NSINSTALL) -D $@
75
76 tools:: $(PROGRAM) $(FRAMEWORK_DIR)/Resources
77 $(NSINSTALL) $(srcdir)/macbuild/InfoPlist.strings $(FRAMEWORK_DIR)/Resources
78 sed -e 's/APP_VERSION/$(APP_VERSION)/' $(srcdir)/macbuild/Info.plist.in > $(FRAMEWORK_DIR)/Info.plist
79 rsync -av $(DIST)/bin/ $(FRAMEWORK_DIR) --exclude mangle --exclude shlibsign
80 rm -f $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current \
81 $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib \
82 $(DIST)/$(FRAMEWORK_NAME).framework/XUL \
83 $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner
84 ln -s $(FRAMEWORK_VERSION) $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current
85 ln -s Versions/Current/libxpcom.dylib $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib
86 ln -s Versions/Current/XUL $(DIST)/$(FRAMEWORK_NAME).framework/XUL
87 ln -s Versions/Current/xulrunner $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner
88
89 clean clobber::
90 rm -rf $(DIST)/$(FRAMEWORK_NAME).framework
91 endif
92
93 README_FILE = $(srcdir)/../README.xulrunner
94
95 libs::
96 $(INSTALL) $(IFLAGS1) $(README_FILE) $(DIST)/bin
97 $(INSTALL) $(IFLAGS1) $(topsrcdir)/LICENSE $(DIST)/bin
98 $(INSTALL) $(IFLAGS1) $(srcdir)/install_app.py $(DIST)/bin
99

mercurial