xulrunner/installer/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xulrunner/installer/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,147 @@
     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 +STANDALONE_MAKEFILE := 1
     1.9 +
    1.10 +NO_PKG_FILES = \
    1.11 +	xulrunner-config \
    1.12 +	regchrome* \
    1.13 +	regxpcom* \
    1.14 +	$(NULL)
    1.15 +
    1.16 +# We want xpcshell, run-mozilla and install_app.py in the SDK but not in the binary package.
    1.17 +ifndef STAGE_SDK
    1.18 +NO_PKG_FILES += \
    1.19 +	xpcshell* \
    1.20 +	run-mozilla* \
    1.21 +	install_app.py \
    1.22 +	$(NULL)
    1.23 +endif
    1.24 +
    1.25 +# If we're on mac, we don't want an end-user-facing DMG, we want a .tar.bz2
    1.26 +# which developers then use to package their application.
    1.27 +
    1.28 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
    1.29 +MOZ_PKG_FORMAT = BZ2
    1.30 +_APPNAME = XUL.framework
    1.31 +_BINPATH = /$(_APPNAME)/Versions/Current
    1.32 +endif
    1.33 +
    1.34 +include $(topsrcdir)/config/rules.mk
    1.35 +
    1.36 +INSTALL_SDK = 1
    1.37 +
    1.38 +include $(topsrcdir)/toolkit/mozapps/installer/signing.mk
    1.39 +include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
    1.40 +
    1.41 +# Add pkg-config files to the install:: target
    1.42 +
    1.43 +pkg_config_files = \
    1.44 +	libxul.pc \
    1.45 +	libxul-embedding.pc \
    1.46 +	mozilla-js.pc \
    1.47 +	mozilla-plugin.pc \
    1.48 +	$(NULL)
    1.49 +
    1.50 +ifdef MOZ_NATIVE_NSPR
    1.51 +NSPR_NAME=nspr
    1.52 +NSPR_VERSION=$(shell $(NSPR_CONFIG) --version)
    1.53 +else
    1.54 +pkg_config_files += mozilla-nspr.pc
    1.55 +NSPR_NAME=mozilla-nspr
    1.56 +FULL_NSPR_CFLAGS=-I\$${includedir}
    1.57 +FULL_NSPR_LIBS=$(subst $(prefix),\$${sdkdir},$(shell $(DEPTH)/nsprpub/config/nspr-config --libs))
    1.58 +NSPR_VERSION=$(shell $(DEPTH)/nsprpub/config/nspr-config --version)
    1.59 +endif
    1.60 +
    1.61 +MOZ_XUL_LINK = -lxpcomglue_s -lxul -lmozalloc
    1.62 +ifdef JS_SHARED_LIBRARY
    1.63 +MOZ_JS_LINK = -lmozjs
    1.64 +else
    1.65 +MOZ_JS_LINK = $(MOZ_XUL_LINK)
    1.66 +endif
    1.67 +
    1.68 +$(warning FULL_NSPR_CFLAGS=$(FULL_NSPR_CFLAGS))
    1.69 +
    1.70 +ifndef MOZ_NATIVE_NSS
    1.71 +pkg_config_files += mozilla-nss.pc
    1.72 +endif
    1.73 +
    1.74 +%.pc: $(srcdir)/%.pc.in $(GLOBAL_DEPS)
    1.75 +	cat $< | sed \
    1.76 +	-e "s|%prefix%|$(prefix)|" \
    1.77 +	-e "s|%includedir%|$(includedir)|" \
    1.78 +	-e "s|%idldir%|$(idldir)|" \
    1.79 +	-e "s|%sdkdir%|$(sdkdir)|" \
    1.80 +	-e "s|%MOZ_APP_NAME%|$(MOZ_APP_NAME)|" \
    1.81 +	-e "s|%MOZILLA_VERSION%|$(MOZ_APP_VERSION)|" \
    1.82 +	-e "s|%WCHAR_CFLAGS%|$(WCHAR_CFLAGS)|" \
    1.83 +	-e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \
    1.84 +	-e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" \
    1.85 +	-e "s|%NSPR_NAME%|$(NSPR_NAME)|" \
    1.86 +	-e "s|%NSPR_VERSION%|$(NSPR_VERSION)|" \
    1.87 +	-e "s|%MOZ_XUL_LINK%|$(MOZ_XUL_LINK)|" \
    1.88 +	-e "s|%MOZ_JS_LINK%|$(MOZ_JS_LINK)|" > $@
    1.89 +	chmod 644 $@
    1.90 +
    1.91 +install:: $(pkg_config_files)
    1.92 +	@echo pkg_config_file: $(pkg_config_files)
    1.93 +	$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(libdir)/pkgconfig
    1.94 +
    1.95 +GARBAGE += $(pkg_config_files)
    1.96 +
    1.97 +GARBAGE += debian/changelog
    1.98 +
    1.99 +DEBDESTDIR=debian/$(MOZ_BUILD_APP)
   1.100 +
   1.101 +GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
   1.102 +MOZ_DEB_TIMESTAMP = "$(shell date  +"%a, %d  %b %Y %T %z" )"
   1.103 +
   1.104 +DEFINES += \
   1.105 +	-DGRE_MILESTONE=$(GRE_MILESTONE) \
   1.106 +	-DGRE_BUILDID=$(GRE_BUILDID) \
   1.107 +	-DMOZ_DEB_TIMESTAMP=$(MOZ_DEB_TIMESTAMP) \
   1.108 +	-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
   1.109 +	-Dinstalldir=$(installdir) \
   1.110 +	$(NULL)
   1.111 +
   1.112 +ifeq ($(OS_TARGET),Linux)
   1.113 +debian/changelog: $(srcdir)/debian/changelog.in  $(LIBXUL_DIST)/bin/platform.ini
   1.114 +	$(call py_action,preprocessor, \
   1.115 +        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)
   1.116 +
   1.117 +debian/xulrunner.links: $(srcdir)/debian/xulrunner.links.in
   1.118 +	$(call py_action,preprocessor, \
   1.119 +        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)
   1.120 +
   1.121 +debian/xulrunner.service: $(srcdir)/debian/xulrunner.service.in
   1.122 +	$(call py_action,preprocessor, \
   1.123 +        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)
   1.124 +
   1.125 +debian/prerm: $(srcdir)/debian/prerm.in
   1.126 +	$(call py_action,preprocessor, \
   1.127 +        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)
   1.128 +
   1.129 +debian/postinst: $(srcdir)/debian/postinst.in
   1.130 +	$(call py_action,preprocessor, \
   1.131 +        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)
   1.132 +
   1.133 +package:
   1.134 +	$(MAKE) package -C $(DEPTH)
   1.135 +
   1.136 +deb: package debian/changelog debian/xulrunner.service debian/xulrunner.links
   1.137 +	$(NSINSTALL)  $(topsrcdir)/$(MOZ_BUILD_APP)/installer/debian .
   1.138 +	rm -fr $(DEBDESTDIR)
   1.139 +	$(NSINSTALL) -D $(DEBDESTDIR)/$(installdir)
   1.140 +	cp -pRL $(DEPTH)/dist/$(MOZ_BUILD_APP)/* $(DEBDESTDIR)/$(installdir)
   1.141 +	$(NSINSTALL) -D $(DEBDESTDIR)/usr/share/dbus-1/services/
   1.142 +	cp debian/$(MOZ_BUILD_APP).service $(DEBDESTDIR)/usr/share/dbus-1/services/org.mozilla.$(MOZ_BUILD_APP).service
   1.143 +	dh_link; fakeroot dh_fixperms; fakeroot dh_installdeb; fakeroot dh_shlibdeps; fakeroot dh_gencontrol; fakeroot dh_md5sums; fakeroot dh_builddeb;
   1.144 +endif
   1.145 +
   1.146 +DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
   1.147 +# package name comes from xulrunner/installer/debian/changelog.in
   1.148 +DEB_PKG_NAME  = $(MOZ_PKG_APPNAME)_$(GRE_MILESTONE)-$(GRE_BUILDID)_$(DEB_BUILD_ARCH).deb
   1.149 +# relative to $(DIST)
   1.150 +UPLOAD_EXTRA_FILES += ../xulrunner/$(DEB_PKG_NAME)

mercurial