mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
d37246737b
- `--enable-official-branding` implies `MC_OFFICIAL` (no need to specifically set it) - `--enable-official-vendor` can be used to set `MC_OFFICIAL` on builds without `--enable-official-branding` that should still be considered official release versions. - `MC_OFFICIAL` implies `--enable-release`, meaning `DEVELOPER_OPTIONS` isn't set - `MC_OFFICIAL` makes `nsXULAppInfo.getIsOfficial` return `true` - `MC_OFFICIAL` makes `AppConstants.MOZILLA_OFFICIAL` (for compatibility in extensions) and `AppConstants.MC_OFFICIAL` return `true` - Optional, for the time being: `MOZILLA_OFFICIAL` is still present in some places in case someone wants to build a Mozilla-alike official application and has the rights and necessary keys to use Mozilla-official third-party services. This must always be combined with `MC_OFFICIAL` to have a sane combination of defines. This may be removed in the future.
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
ifndef INCLUDED_VERSION_MK
|
|
INCLUDED_VERSION_MK=1
|
|
|
|
# Windows gmake build:
|
|
# Build default .rc file if $(RESFILE) isn't defined.
|
|
# TODO:
|
|
# PBI : Private build info. Not used currently.
|
|
# Guessing the best way would be to set an env var.
|
|
# BINARY : Binary name. Not used currently.
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
ifndef RESFILE
|
|
RCFILE=./module.rc
|
|
RESFILE=./module.res
|
|
_RC_STRING = -QUIET 1 -DEPTH $(DEPTH) -TOPSRCDIR $(MOZILLA_DIR) -OBJDIR . -SRCDIR $(srcdir) -DISPNAME $(MOZ_APP_DISPLAYNAME) -APPVERSION $(MOZ_APP_VERSION)
|
|
ifdef MC_OFFICIAL
|
|
_RC_STRING += -OFFICIAL 1
|
|
endif
|
|
ifdef MOZ_DEBUG
|
|
_RC_STRING += -DEBUG 1
|
|
endif
|
|
ifdef PROGRAM
|
|
_RC_STRING += -BINARY $(PROGRAM)
|
|
else
|
|
ifdef _PROGRAM
|
|
_RC_STRING += -BINARY $(_PROGRAM)
|
|
else
|
|
ifdef SHARED_LIBRARY
|
|
_RC_STRING += -BINARY $(SHARED_LIBRARY)
|
|
endif
|
|
endif
|
|
endif
|
|
ifdef RCINCLUDE
|
|
_RC_STRING += -RCINCLUDE $(srcdir)/$(RCINCLUDE)
|
|
endif
|
|
|
|
GARBAGE += $(RESFILE) $(RCFILE)
|
|
|
|
#dummy target so $(RCFILE) doesn't become the default =P
|
|
all::
|
|
|
|
$(RCFILE): $(RCINCLUDE) $(MOZILLA_DIR)/config/version_win.pl
|
|
$(PERL) $(MOZILLA_DIR)/config/version_win.pl $(_RC_STRING)
|
|
|
|
endif # RESFILE
|
|
endif # Windows
|
|
|
|
endif
|