Bug 496271, automation config for Tb2.0.0.22 build1, p=joduinn, r=me
[mozilla-1.9.git] / xulrunner / installer / Makefile.in
blob50fd9d970cc3a9ee75ae590cde0e162f66d5d775
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Original Code is the Mozilla Browser code.
16 # The Initial Developer of the Original Code is
17 # IBM Corporation.
18 # Portions created by the Initial Developer are Copyright (C) 2004
19 # the Initial Developer. All Rights Reserved.
21 # Contributor(s):
22 # Brian Ryner <bryner@brianryner.com>
23 # Benjamin Smedberg <bsmedberg@covad.net>
24 # Darin Fisher <darin@meer.net>
26 # Alternatively, the contents of this file may be used under the terms of
27 # either the GNU General Public License Version 2 or later (the "GPL"), or
28 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 # in which case the provisions of the GPL or the LGPL are applicable instead
30 # of those above. If you wish to allow use of your version of this file only
31 # under the terms of either the GPL or the LGPL, and not to allow others to
32 # use your version of this file under the terms of the MPL, indicate your
33 # decision by deleting the provisions above and replace them with the notice
34 # and other provisions required by the GPL or the LGPL. If you do not delete
35 # the provisions above, a recipient may use your version of this file under
36 # the terms of any one of the MPL, the GPL or the LGPL.
38 # ***** END LICENSE BLOCK *****
40 DEPTH = ../..
41 topsrcdir = @top_srcdir@
42 srcdir = @srcdir@
43 VPATH = @srcdir@
45 include $(DEPTH)/config/autoconf.mk
47 NO_PKG_FILES = \
48 xulrunner-config \
49 regchrome* \
50 regxpcom* \
51 $(NULL)
53 # If we're on mac, we want to make the .pkg first, in the mac/
54 # directory. Then packager.mk can put it into a DMG
56 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
57 DIRS += mac
58 _APPNAME = $(PKG_BASENAME).pkg
59 PKG_SKIP_STRIP = 1
60 MOZ_PKG_SPECIAL = pkg
61 PKG_DMG_SOURCE = $(STAGEPATH)xulrunner-pkg
62 endif
64 include $(topsrcdir)/config/rules.mk
66 INSTALL_SDK = 1
68 include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
70 $(MOZILLA_VERSION).system.conf: $(topsrcdir)/config/milestone.txt Makefile
71 printf "[%s]\nGRE_PATH=%s\nxulrunner=true\nabi=%s" \
72 $(MOZILLA_VERSION) $(installdir) $(TARGET_XPCOM_ABI)> $@
74 ifndef SKIP_GRE_REGISTRATION
75 # to register xulrunner per-user, override this with $HOME/.gre.d
76 regdir = /etc/gre.d
78 install:: $(MOZILLA_VERSION).system.conf
79 $(NSINSTALL) -D $(DESTDIR)$(regdir)
80 $(SYSINSTALL) $^ $(DESTDIR)$(regdir)
81 endif
83 # Add pkg-config files to the install:: target
85 pkg_config_files = \
86 libxul.pc \
87 libxul-embedding.pc \
88 libxul-unstable.pc \
89 libxul-embedding-unstable.pc \
90 mozilla-js.pc \
91 mozilla-plugin.pc \
92 mozilla-gtkmozembed.pc \
93 mozilla-gtkmozembed-embedding.pc \
94 $(NULL)
96 ifdef MOZ_NATIVE_NSPR
97 NSPR_NAME=nspr
98 NSPR_VERSION=$(shell $(NSPR_CONFIG) --version)
99 else
100 pkg_config_files += mozilla-nspr.pc
101 NSPR_NAME=mozilla-nspr
102 FULL_NSPR_CFLAGS=-I\$${includedir}/stable
103 FULL_NSPR_LIBS=$(subst $(prefix),\$${sdkdir},$(shell $(DEPTH)/nsprpub/config/nspr-config --libs))
104 NSPR_VERSION=$(shell $(DEPTH)/nsprpub/config/nspr-config --version)
105 endif
107 $(warning FULL_NSPR_CFLAGS=$(FULL_NSPR_CFLAGS))
109 ifndef MOZ_NATIVE_NSS
110 pkg_config_files += mozilla-nss.pc
111 endif
113 %.pc: $(srcdir)/%.pc.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
114 cat $< | sed \
115 -e "s|%prefix%|$(prefix)|" \
116 -e "s|%includedir%|$(includedir)|" \
117 -e "s|%idldir%|$(idldir)|" \
118 -e "s|%sdkdir%|$(sdkdir)|" \
119 -e "s|%MOZ_APP_NAME%|$(MOZ_APP_NAME)|" \
120 -e "s|%MOZILLA_VERSION%|$(MOZ_APP_VERSION)|" \
121 -e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \
122 -e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" \
123 -e "s|%NSPR_NAME%|$(NSPR_NAME)|" \
124 -e "s|%NSPR_VERSION%|$(NSPR_VERSION)|" > $@
125 chmod 644 $@
127 install:: $(pkg_config_files)
128 @echo pkg_config_file: $(pkg_config_files)
129 $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(libdir)/pkgconfig
131 GARBAGE += $(MOZILLA_VERSION).system.conf $(pkg_config_files)