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
))
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.
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)
29 ifeq ($(OS_ARCH
),WINNT
) #{
30 # Note the manifest file exists in the tree, so we use the explicit filename
32 EXTRA_DEPS
+= plugin-container.exe.manifest
35 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
)) #{
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
)