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