1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xulrunner/app/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,99 @@ 1.4 +# vim:set ts=8 sw=8 sts=8 et: 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +PREF_JS_EXPORTS = $(srcdir)/xulrunner.js 1.10 +GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/,xulrunner.js) 1.11 + 1.12 +DEFINES += -DAB_CD=$(AB_CD) 1.13 + 1.14 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) 1.15 +TK_LIBS := -framework Cocoa $(TK_LIBS) 1.16 +endif 1.17 + 1.18 +LIBS += \ 1.19 + $(XPCOM_STANDALONE_GLUE_LDOPTS) \ 1.20 + $(NULL) 1.21 + 1.22 +ifndef MOZ_WINCONSOLE 1.23 +ifdef MOZ_DEBUG 1.24 +MOZ_WINCONSOLE = 1 1.25 +else 1.26 +MOZ_WINCONSOLE = 0 1.27 +endif 1.28 +endif 1.29 + 1.30 +# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that 1.31 +# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall. 1.32 +NSDISTMODE = copy 1.33 + 1.34 +include $(topsrcdir)/config/config.mk 1.35 + 1.36 +ifeq ($(OS_ARCH),WINNT) 1.37 +OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool) 1.38 +endif 1.39 + 1.40 +include $(topsrcdir)/config/rules.mk 1.41 + 1.42 +DEFINES += -DXULRUNNER_ICO='"$(DIST)/branding/xulrunner.ico"' -DDOCUMENT_ICO='"$(DIST)/branding/document.ico"' 1.43 + 1.44 +ifdef MOZ_WIDGET_GTK 1.45 +libs:: 1.46 + $(INSTALL) $(IFLAGS1) $(DIST)/branding/default16.png $(DIST)/bin/chrome/icons/default 1.47 + $(INSTALL) $(IFLAGS1) $(DIST)/branding/default32.png $(DIST)/bin/chrome/icons/default 1.48 + $(INSTALL) $(IFLAGS1) $(DIST)/branding/default48.png $(DIST)/bin/chrome/icons/default 1.49 +endif 1.50 + 1.51 +# XXX applications would need to supply this file 1.52 +#export:: brand.dtd.in 1.53 +# $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $^ -o brand.dtd) 1.54 + 1.55 +export:: 1.56 + $(NSINSTALL) -D $(DIST)/branding 1.57 +ifeq ($(OS_ARCH),WINNT) 1.58 + cp $(srcdir)/xulrunner.ico $(DIST)/branding/xulrunner.ico 1.59 + cp $(srcdir)/xulrunner.ico $(DIST)/branding/app.ico 1.60 + cp $(srcdir)/document.ico $(DIST)/branding/document.ico 1.61 +endif 1.62 +ifdef MOZ_WIDGET_GTK 1.63 + cp $(srcdir)/default16.png $(DIST)/branding/default16.png 1.64 + cp $(srcdir)/default32.png $(DIST)/branding/default32.png 1.65 + cp $(srcdir)/default48.png $(DIST)/branding/default48.png 1.66 +endif 1.67 + 1.68 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) 1.69 + 1.70 +FRAMEWORK_NAME = XUL 1.71 +FRAMEWORK_VERSION = $(MOZILLA_VERSION) 1.72 + 1.73 +FRAMEWORK_DIR = \ 1.74 + $(DIST)/$(FRAMEWORK_NAME).framework/Versions/$(FRAMEWORK_VERSION) 1.75 + 1.76 +$(FRAMEWORK_DIR)/Resources: 1.77 + $(NSINSTALL) -D $@ 1.78 + 1.79 +tools:: $(PROGRAM) $(FRAMEWORK_DIR)/Resources 1.80 + $(NSINSTALL) $(srcdir)/macbuild/InfoPlist.strings $(FRAMEWORK_DIR)/Resources 1.81 + sed -e 's/APP_VERSION/$(APP_VERSION)/' $(srcdir)/macbuild/Info.plist.in > $(FRAMEWORK_DIR)/Info.plist 1.82 + rsync -av $(DIST)/bin/ $(FRAMEWORK_DIR) --exclude mangle --exclude shlibsign 1.83 + rm -f $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current \ 1.84 + $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib \ 1.85 + $(DIST)/$(FRAMEWORK_NAME).framework/XUL \ 1.86 + $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner 1.87 + ln -s $(FRAMEWORK_VERSION) $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current 1.88 + ln -s Versions/Current/libxpcom.dylib $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib 1.89 + ln -s Versions/Current/XUL $(DIST)/$(FRAMEWORK_NAME).framework/XUL 1.90 + ln -s Versions/Current/xulrunner $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner 1.91 + 1.92 +clean clobber:: 1.93 + rm -rf $(DIST)/$(FRAMEWORK_NAME).framework 1.94 +endif 1.95 + 1.96 +README_FILE = $(srcdir)/../README.xulrunner 1.97 + 1.98 +libs:: 1.99 + $(INSTALL) $(IFLAGS1) $(README_FILE) $(DIST)/bin 1.100 + $(INSTALL) $(IFLAGS1) $(topsrcdir)/LICENSE $(DIST)/bin 1.101 + $(INSTALL) $(IFLAGS1) $(srcdir)/install_app.py $(DIST)/bin 1.102 +