browser/app/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/app/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,149 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +dist_dest   = $(DIST)/$(MOZ_MACBUNDLE_NAME)
     1.9 +
    1.10 +PREF_JS_EXPORTS = $(srcdir)/profile/firefox.js \
    1.11 +		  $(NULL)
    1.12 +PREF_JS_EXPORTS += $(srcdir)/profile/000-tor-browser.js
    1.13 +
    1.14 +
    1.15 +# hardcode en-US for the moment
    1.16 +AB_CD = en-US
    1.17 +
    1.18 +DEFINES += \
    1.19 +  -DAB_CD=$(AB_CD) \
    1.20 +  -DFIREFOX_ICO='"$(DIST)/branding/firefox.ico"' \
    1.21 +  -DDOCUMENT_ICO='"$(DIST)/branding/document.ico"' \
    1.22 +  -DNEWWINDOW_ICO='"$(DIST)/branding/newwindow.ico"' \
    1.23 +  -DNEWTAB_ICO='"$(DIST)/branding/newtab.ico"' \
    1.24 +  -DPBMODE_ICO='"$(DIST)/branding/pbmode.ico"' \
    1.25 +  $(NULL)
    1.26 +
    1.27 +ifdef LIBXUL_SDK #{
    1.28 +PREF_JS_EXPORTS += $(srcdir)/profile/channel-prefs.js
    1.29 +endif #} LIBXUL_SDK
    1.30 +
    1.31 +# Build a binary bootstrapping with XRE_main
    1.32 +
    1.33 +LIBS += \
    1.34 +	$(XPCOM_STANDALONE_GLUE_LDOPTS) \
    1.35 +	$(NULL)
    1.36 +
    1.37 +ifdef MOZ_LINKER
    1.38 +LIBS += $(MOZ_ZLIB_LIBS)
    1.39 +endif
    1.40 +
    1.41 +ifdef HAVE_CLOCK_MONOTONIC
    1.42 +LIBS += $(REALTIME_LIBS)
    1.43 +endif
    1.44 +
    1.45 +ifndef MOZ_WINCONSOLE
    1.46 +ifdef MOZ_DEBUG
    1.47 +MOZ_WINCONSOLE = 1
    1.48 +else
    1.49 +MOZ_WINCONSOLE = 0
    1.50 +endif
    1.51 +endif
    1.52 +
    1.53 +# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
    1.54 +# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
    1.55 +NSDISTMODE = copy
    1.56 +
    1.57 +include $(topsrcdir)/config/config.mk
    1.58 +
    1.59 +ifeq ($(OS_ARCH),WINNT)
    1.60 +# Rebuild firefox.exe if the manifest changes - it's included by splash.rc.
    1.61 +# (this dependency should really be just for firefox.exe, not other targets)
    1.62 +# Note the manifest file exists in the tree, so we use the explicit filename
    1.63 +# here.
    1.64 +EXTRA_DEPS += firefox.exe.manifest
    1.65 +endif
    1.66 +
    1.67 +PROGRAMS_DEST = $(DIST)/bin
    1.68 +
    1.69 +include $(topsrcdir)/config/rules.mk
    1.70 +
    1.71 +ifneq (,$(filter-out WINNT,$(OS_ARCH)))
    1.72 +
    1.73 +ifdef COMPILE_ENVIRONMENT
    1.74 +libs:: 
    1.75 +	cp -p $(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/bin/$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
    1.76 +endif
    1.77 +
    1.78 +GARBAGE += $(addprefix $(FINAL_TARGET)/defaults/pref/, firefox.js)
    1.79 +
    1.80 +endif
    1.81 +
    1.82 +ifdef MOZ_WIDGET_GTK
    1.83 +libs::
    1.84 +	$(INSTALL) $(IFLAGS1) $(DIST)/branding/mozicon128.png $(FINAL_TARGET)/icons
    1.85 +	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default16.png  $(FINAL_TARGET)/chrome/icons/default
    1.86 +	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default32.png  $(FINAL_TARGET)/chrome/icons/default
    1.87 +	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default48.png  $(FINAL_TARGET)/chrome/icons/default
    1.88 +endif
    1.89 +
    1.90 +libs:: $(srcdir)/profile/prefs.js
    1.91 +	$(INSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile
    1.92 +
    1.93 +ifndef LIBXUL_SDK
    1.94 +# channel-prefs.js is handled separate from other prefs due to bug 756325
    1.95 +libs:: $(srcdir)/profile/channel-prefs.js
    1.96 +	$(NSINSTALL) -D $(DIST)/bin/defaults/pref
    1.97 +	$(call py_action,preprocessor,$(PREF_PPFLAGS) $(ACDEFINES) $^ -o $(DIST)/bin/defaults/pref/channel-prefs.js)
    1.98 +endif
    1.99 +
   1.100 +libs:: $(srcdir)/blocklist.xml
   1.101 +	$(INSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
   1.102 +
   1.103 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
   1.104 +
   1.105 +MAC_APP_NAME = $(MOZ_APP_DISPLAYNAME)
   1.106 +
   1.107 +ifdef MOZ_DEBUG
   1.108 +MAC_APP_NAME := $(MAC_APP_NAME)Debug
   1.109 +endif
   1.110 +
   1.111 +AB_CD = $(MOZ_UI_LOCALE)
   1.112 +
   1.113 +AB := $(firstword $(subst -, ,$(AB_CD)))
   1.114 +
   1.115 +clean clobber repackage::
   1.116 +	$(RM) -r $(dist_dest)
   1.117 +
   1.118 +ifdef LIBXUL_SDK
   1.119 +APPFILES = Resources
   1.120 +else
   1.121 +APPFILES = MacOS
   1.122 +endif
   1.123 +
   1.124 +MAC_BUNDLE_VERSION = $(shell $(PYTHON) $(srcdir)/macversion.py --version=$(MOZ_APP_VERSION) --buildid=$(DEPTH)/config/buildid)
   1.125 +
   1.126 +.PHONY: repackage
   1.127 +tools repackage:: $(PROGRAM)
   1.128 +	$(MKDIR) -p $(dist_dest)/Contents/MacOS
   1.129 +	$(MKDIR) -p $(dist_dest)/Contents/Resources/$(AB).lproj
   1.130 +	rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents $(dist_dest) --exclude English.lproj
   1.131 +	rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(dist_dest)/Contents/Resources/$(AB).lproj
   1.132 +	sed -e 's/%APP_VERSION%/$(MOZ_APP_VERSION)/' -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' -e 's/%MOZ_MACBUNDLE_ID%/$(MOZ_MACBUNDLE_ID)/' -e 's/%MAC_BUNDLE_VERSION%/$(MAC_BUNDLE_VERSION)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(dist_dest)/Contents/Info.plist
   1.133 +	sed -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(dist_dest)/Contents/Resources/$(AB).lproj/InfoPlist.strings
   1.134 +	rsync -a $(DIST)/bin/ $(dist_dest)/Contents/$(APPFILES)
   1.135 +	$(RM) $(dist_dest)/Contents/MacOS/$(PROGRAM)
   1.136 +	rsync -aL $(PROGRAM) $(dist_dest)/Contents/MacOS
   1.137 +	cp -RL $(DIST)/branding/firefox.icns $(dist_dest)/Contents/Resources/firefox.icns
   1.138 +	cp -RL $(DIST)/branding/document.icns $(dist_dest)/Contents/Resources/document.icns
   1.139 +	printf APPLMOZB > $(dist_dest)/Contents/PkgInfo
   1.140 +endif
   1.141 +
   1.142 +ifdef LIBXUL_SDK #{
   1.143 +ifndef SKIP_COPY_XULRUNNER #{
   1.144 +libs::
   1.145 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) #{
   1.146 +	rsync -a --copy-unsafe-links $(LIBXUL_DIST)/XUL.framework $(dist_dest)/Contents/Frameworks
   1.147 +else
   1.148 +	$(NSINSTALL) -D $(DIST)/bin/xulrunner
   1.149 +	(cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
   1.150 +endif #} cocoa
   1.151 +endif #} SKIP_COPY_XULRUNNER
   1.152 +endif #} LIBXUL_SDK

mercurial