michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ifneq ($(dir $(PROGRAM)),./) michael@0: GENERATED_DIRS = $(dir $(PROGRAM)) michael@0: endif michael@0: michael@0: ifeq (android,$(MOZ_WIDGET_TOOLKIT)) michael@0: WRAP_LDFLAGS = michael@0: else michael@0: LIBS += \ michael@0: $(XPCOM_LIBS) \ michael@0: $(NSPR_LIBS) \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) michael@0: LIBS += \ michael@0: -lbinder \ michael@0: -lutils \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifndef MOZ_WINCONSOLE michael@0: ifdef MOZ_DEBUG michael@0: MOZ_WINCONSOLE = 1 michael@0: else michael@0: MOZ_WINCONSOLE = 0 michael@0: endif michael@0: endif michael@0: michael@0: # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that michael@0: # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall. michael@0: NSDISTMODE = copy michael@0: michael@0: include $(topsrcdir)/config/config.mk michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifeq ($(OS_ARCH),WINNT) #{ michael@0: michael@0: ifdef MOZ_CONTENT_SANDBOX michael@0: LIBS += ../../security/sandbox/$(LIB_PREFIX)sandbox_s.$(LIB_SUFFIX) michael@0: LIBS += $(NSPR_LIBS) michael@0: endif michael@0: michael@0: # Note the manifest file exists in the tree, so we use the explicit filename michael@0: # here. michael@0: EXTRA_DEPS += plugin-container.exe.manifest michael@0: endif #} michael@0: michael@0: ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) #{ michael@0: michael@0: libs:: michael@0: $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app michael@0: rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/$(PROGRAM).app michael@0: sed -e 's/%PROGRAM%/$(PROGRAM)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/bin/$(PROGRAM).app/Contents/Info.plist michael@0: sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ michael@0: iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/$(PROGRAM).app/Contents/Resources/English.lproj/InfoPlist.strings michael@0: $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app/Contents/MacOS michael@0: $(NSINSTALL) $(PROGRAM) $(DIST)/bin/$(PROGRAM).app/Contents/MacOS michael@0: $(RM) $(DIST)/bin/$(PROGRAM) michael@0: endif #}