Makefile.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. dist_dest = $(DIST)/$(MOZ_MACBUNDLE_NAME)
  5. # hardcode en-US for the moment
  6. AB_CD = en-US
  7. DEFINES += \
  8. -DAB_CD=$(AB_CD) \
  9. -DAPP_VERSION="$(MOZ_APP_VERSION)" \
  10. -DFIREFOX_ICO=\"$(DIST)/branding/firefox.ico\" \
  11. -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" \
  12. -DNEWWINDOW_ICO=\"$(DIST)/branding/newwindow.ico\" \
  13. -DNEWTAB_ICO=\"$(DIST)/branding/newtab.ico\" \
  14. -DPBMODE_ICO=\"$(DIST)/branding/pbmode.ico\" \
  15. $(NULL)
  16. # Build a binary bootstrapping with XRE_main
  17. ifndef MOZ_WINCONSOLE
  18. ifdef MOZ_DEBUG
  19. MOZ_WINCONSOLE = 1
  20. else
  21. MOZ_WINCONSOLE = 0
  22. endif
  23. endif
  24. # This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
  25. # shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
  26. NSDISTMODE = copy
  27. include $(topsrcdir)/config/config.mk
  28. ifeq ($(OS_ARCH),WINNT)
  29. # Rebuild firefox.exe if the manifest changes - it's included by splash.rc.
  30. # (this dependency should really be just for firefox.exe, not other targets)
  31. EXTRA_DEPS += $(PROGRAM).manifest
  32. endif
  33. PROGRAMS_DEST = $(DIST)/bin
  34. include $(topsrcdir)/config/rules.mk
  35. ifneq (,$(filter-out WINNT,$(OS_ARCH)))
  36. ifdef COMPILE_ENVIRONMENT
  37. libs::
  38. cp -p $(MOZ_APP_NAME)$(BIN_SUFFIX) $(DIST)/bin/$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
  39. endif
  40. GARBAGE += $(addprefix $(FINAL_TARGET)/defaults/pref/, palemoon.js)
  41. endif
  42. ifndef LIBXUL_SDK
  43. # channel-prefs.js is handled separate from other prefs due to bug 756325
  44. libs:: $(srcdir)/profile/channel-prefs.js
  45. $(NSINSTALL) -D $(DIST)/bin/defaults/pref
  46. $(call py_action,preprocessor,-Fsubstitution $(PREF_PPFLAGS) $(ACDEFINES) $^ -o $(DIST)/bin/defaults/pref/channel-prefs.js)
  47. endif
  48. ifdef LIBXUL_SDK #{
  49. ifndef SKIP_COPY_XULRUNNER #{
  50. libs::
  51. $(NSINSTALL) -D $(DIST)/bin/xulrunner
  52. (cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
  53. endif #} SKIP_COPY_XULRUNNER
  54. endif #} LIBXUL_SDK