Bumping manifests a=b2g-bump
[gecko.git] / ipc / app / Makefile.in
blob03f2b54ffddb1d806fd5e71d144c35d6de37938e
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 ifneq ($(dir $(PROGRAM)),./)
6 GENERATED_DIRS = $(dir $(PROGRAM))
7 endif
9 ifndef MOZ_WINCONSOLE
10 ifdef MOZ_DEBUG
11 MOZ_WINCONSOLE = 1
12 else
13 MOZ_WINCONSOLE = 0
14 endif
15 endif
17 # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
18 # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
19 NSDISTMODE = copy
21 include $(topsrcdir)/config/config.mk
23 include $(topsrcdir)/config/rules.mk
25 ifneq ($(MOZ_WIDGET_TOOLKIT),android)
26 #LIBS += ../contentproc/$(LIB_PREFIX)plugin-container.$(LIB_SUFFIX)
27 endif
29 ifeq ($(OS_ARCH),WINNT) #{
30 # Note the manifest file exists in the tree, so we use the explicit filename
31 # here.
32 EXTRA_DEPS += plugin-container.exe.manifest
33 endif #}
35 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) #{
37 libs::
38 $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app
39 rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/$(PROGRAM).app
40 sed -e 's/%PROGRAM%/$(PROGRAM)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/bin/$(PROGRAM).app/Contents/Info.plist
41 sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
42 iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/$(PROGRAM).app/Contents/Resources/English.lproj/InfoPlist.strings
43 $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
44 $(NSINSTALL) $(PROGRAM) $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
45 $(RM) $(DIST)/bin/$(PROGRAM)
46 endif #}