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