|
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/. |
|
4 |
|
5 ifneq ($(dir $(PROGRAM)),./) |
|
6 GENERATED_DIRS = $(dir $(PROGRAM)) |
|
7 endif |
|
8 |
|
9 ifeq (android,$(MOZ_WIDGET_TOOLKIT)) |
|
10 WRAP_LDFLAGS = |
|
11 else |
|
12 LIBS += \ |
|
13 $(XPCOM_LIBS) \ |
|
14 $(NSPR_LIBS) \ |
|
15 $(NULL) |
|
16 endif |
|
17 |
|
18 ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) |
|
19 LIBS += \ |
|
20 -lbinder \ |
|
21 -lutils \ |
|
22 $(NULL) |
|
23 endif |
|
24 |
|
25 ifndef MOZ_WINCONSOLE |
|
26 ifdef MOZ_DEBUG |
|
27 MOZ_WINCONSOLE = 1 |
|
28 else |
|
29 MOZ_WINCONSOLE = 0 |
|
30 endif |
|
31 endif |
|
32 |
|
33 # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that |
|
34 # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall. |
|
35 NSDISTMODE = copy |
|
36 |
|
37 include $(topsrcdir)/config/config.mk |
|
38 |
|
39 include $(topsrcdir)/config/rules.mk |
|
40 |
|
41 ifeq ($(OS_ARCH),WINNT) #{ |
|
42 |
|
43 ifdef MOZ_CONTENT_SANDBOX |
|
44 LIBS += ../../security/sandbox/$(LIB_PREFIX)sandbox_s.$(LIB_SUFFIX) |
|
45 LIBS += $(NSPR_LIBS) |
|
46 endif |
|
47 |
|
48 # Note the manifest file exists in the tree, so we use the explicit filename |
|
49 # here. |
|
50 EXTRA_DEPS += plugin-container.exe.manifest |
|
51 endif #} |
|
52 |
|
53 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) #{ |
|
54 |
|
55 libs:: |
|
56 $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app |
|
57 rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/$(PROGRAM).app |
|
58 sed -e 's/%PROGRAM%/$(PROGRAM)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/bin/$(PROGRAM).app/Contents/Info.plist |
|
59 sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ |
|
60 iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/$(PROGRAM).app/Contents/Resources/English.lproj/InfoPlist.strings |
|
61 $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app/Contents/MacOS |
|
62 $(NSINSTALL) $(PROGRAM) $(DIST)/bin/$(PROGRAM).app/Contents/MacOS |
|
63 $(RM) $(DIST)/bin/$(PROGRAM) |
|
64 endif #} |