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
14 # The Original Code is the Mozilla Browser code.
16 # The Initial Developer of the Original Code is
18 # Portions created by the Initial Developer are Copyright (C) 2004
19 # the Initial Developer. All Rights Reserved.
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 *****
41 topsrcdir
= @top_srcdir@
45 include $(DEPTH
)/config
/autoconf.mk
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
)))
58 _APPNAME
= $(PKG_BASENAME
).pkg
61 PKG_DMG_SOURCE
= $(STAGEPATH
)xulrunner-pkg
64 include $(topsrcdir
)/config
/rules.mk
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
78 install:: $(MOZILLA_VERSION
).system.conf
79 $(NSINSTALL
) -D
$(DESTDIR
)$(regdir
)
80 $(SYSINSTALL
) $^
$(DESTDIR
)$(regdir
)
83 # Add pkg-config files to the install:: target
89 libxul-embedding-unstable.
pc \
92 mozilla-gtkmozembed.
pc \
93 mozilla-gtkmozembed-embedding.
pc \
98 NSPR_VERSION
=$(shell $(NSPR_CONFIG
) --version
)
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
)
107 $(warning FULL_NSPR_CFLAGS
=$(FULL_NSPR_CFLAGS
))
109 ifndef MOZ_NATIVE_NSS
110 pkg_config_files
+= mozilla-nss.
pc
113 %.
pc: $(srcdir)/%.
pc.in Makefile.in Makefile
$(DEPTH
)/config
/autoconf.mk
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)|" > $@
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
)