xulrunner/app/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # vim:set ts=8 sw=8 sts=8 et:
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 PREF_JS_EXPORTS = $(srcdir)/xulrunner.js
     7 GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/,xulrunner.js)
     9 DEFINES += -DAB_CD=$(AB_CD)
    11 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
    12 TK_LIBS := -framework Cocoa $(TK_LIBS)
    13 endif
    15 LIBS += \
    16   $(XPCOM_STANDALONE_GLUE_LDOPTS) \
    17   $(NULL)
    19 ifndef MOZ_WINCONSOLE
    20 ifdef MOZ_DEBUG
    21 MOZ_WINCONSOLE = 1
    22 else
    23 MOZ_WINCONSOLE = 0
    24 endif
    25 endif
    27 # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
    28 # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
    29 NSDISTMODE = copy
    31 include $(topsrcdir)/config/config.mk
    33 ifeq ($(OS_ARCH),WINNT)
    34 OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool)
    35 endif
    37 include $(topsrcdir)/config/rules.mk
    39 DEFINES += -DXULRUNNER_ICO='"$(DIST)/branding/xulrunner.ico"' -DDOCUMENT_ICO='"$(DIST)/branding/document.ico"'
    41 ifdef MOZ_WIDGET_GTK
    42 libs::
    43 	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default16.png $(DIST)/bin/chrome/icons/default
    44 	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default32.png $(DIST)/bin/chrome/icons/default
    45 	$(INSTALL) $(IFLAGS1) $(DIST)/branding/default48.png $(DIST)/bin/chrome/icons/default
    46 endif
    48 # XXX applications would need to supply this file
    49 #export:: brand.dtd.in
    50 #	$(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $^ -o brand.dtd)
    52 export::
    53 	$(NSINSTALL) -D $(DIST)/branding
    54 ifeq ($(OS_ARCH),WINNT)
    55 	cp $(srcdir)/xulrunner.ico   $(DIST)/branding/xulrunner.ico
    56 	cp $(srcdir)/xulrunner.ico   $(DIST)/branding/app.ico
    57 	cp $(srcdir)/document.ico  $(DIST)/branding/document.ico
    58 endif
    59 ifdef MOZ_WIDGET_GTK
    60 	cp $(srcdir)/default16.png   $(DIST)/branding/default16.png
    61 	cp $(srcdir)/default32.png   $(DIST)/branding/default32.png
    62 	cp $(srcdir)/default48.png   $(DIST)/branding/default48.png
    63 endif
    65 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
    67 FRAMEWORK_NAME = XUL
    68 FRAMEWORK_VERSION = $(MOZILLA_VERSION)
    70 FRAMEWORK_DIR = \
    71    $(DIST)/$(FRAMEWORK_NAME).framework/Versions/$(FRAMEWORK_VERSION)
    73 $(FRAMEWORK_DIR)/Resources:
    74 	$(NSINSTALL) -D $@
    76 tools:: $(PROGRAM) $(FRAMEWORK_DIR)/Resources
    77 	$(NSINSTALL) $(srcdir)/macbuild/InfoPlist.strings $(FRAMEWORK_DIR)/Resources
    78 	sed -e 's/APP_VERSION/$(APP_VERSION)/' $(srcdir)/macbuild/Info.plist.in > $(FRAMEWORK_DIR)/Info.plist
    79 	rsync -av $(DIST)/bin/ $(FRAMEWORK_DIR) --exclude mangle --exclude shlibsign
    80 	rm -f $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current \
    81 	      $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib \
    82 	      $(DIST)/$(FRAMEWORK_NAME).framework/XUL \
    83 	      $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner
    84 	ln -s $(FRAMEWORK_VERSION) $(DIST)/$(FRAMEWORK_NAME).framework/Versions/Current
    85 	ln -s Versions/Current/libxpcom.dylib $(DIST)/$(FRAMEWORK_NAME).framework/libxpcom.dylib
    86 	ln -s Versions/Current/XUL $(DIST)/$(FRAMEWORK_NAME).framework/XUL
    87 	ln -s Versions/Current/xulrunner $(DIST)/$(FRAMEWORK_NAME).framework/xulrunner
    89 clean clobber::
    90 	rm -rf $(DIST)/$(FRAMEWORK_NAME).framework
    91 endif
    93 README_FILE = $(srcdir)/../README.xulrunner
    95 libs::
    96 	$(INSTALL) $(IFLAGS1) $(README_FILE) $(DIST)/bin
    97 	$(INSTALL) $(IFLAGS1) $(topsrcdir)/LICENSE	$(DIST)/bin
    98 	$(INSTALL) $(IFLAGS1) $(srcdir)/install_app.py $(DIST)/bin

mercurial