2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2002-03-22 18:01:17 +03:00
|
|
|
|
|
|
|
ifndef INCLUDED_VERSION_MK
|
|
|
|
INCLUDED_VERSION_MK=1
|
|
|
|
|
|
|
|
# Windows gmake build:
|
|
|
|
# Build default .rc file if $(RESFILE) isn't defined.
|
|
|
|
# TODO:
|
2002-03-26 04:44:13 +03:00
|
|
|
# PBI : Private build info. Not used currently.
|
|
|
|
# Guessing the best way would be to set an env var.
|
|
|
|
# BINARY : Binary name. Not used currently.
|
2002-03-22 18:01:17 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
ifndef RESFILE
|
|
|
|
RCFILE=./module.rc
|
|
|
|
RESFILE=./module.res
|
2018-01-05 00:50:56 +03:00
|
|
|
_RC_STRING = -QUIET 1 -DEPTH $(DEPTH) -TOPSRCDIR $(MOZILLA_DIR) -OBJDIR . -SRCDIR $(srcdir) -DISPNAME "$(MOZ_APP_DISPLAYNAME)" -APPVERSION $(MOZ_APP_VERSION)
|
2009-07-08 07:24:45 +04:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-22 18:01:17 +03:00
|
|
|
_RC_STRING += -OFFICIAL 1
|
|
|
|
endif
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
_RC_STRING += -DEBUG 1
|
|
|
|
endif
|
2002-09-18 03:37:30 +04:00
|
|
|
ifdef PROGRAM
|
2018-05-11 18:56:12 +03:00
|
|
|
_RC_STRING += -BINARY $(notdir $(PROGRAM))
|
2002-09-18 03:37:30 +04:00
|
|
|
else
|
2002-11-09 02:04:01 +03:00
|
|
|
ifdef _PROGRAM
|
2018-05-11 18:56:12 +03:00
|
|
|
_RC_STRING += -BINARY $(notdir $(_PROGRAM))
|
2002-11-09 02:04:01 +03:00
|
|
|
else
|
|
|
|
ifdef SHARED_LIBRARY
|
2018-05-11 18:56:12 +03:00
|
|
|
_RC_STRING += -BINARY $(notdir $(SHARED_LIBRARY))
|
2002-09-18 03:37:30 +04:00
|
|
|
endif
|
2002-11-09 02:04:01 +03:00
|
|
|
endif
|
|
|
|
endif
|
2002-08-20 02:51:52 +04:00
|
|
|
ifdef RCINCLUDE
|
|
|
|
_RC_STRING += -RCINCLUDE $(srcdir)/$(RCINCLUDE)
|
|
|
|
endif
|
2002-03-22 18:01:17 +03:00
|
|
|
|
|
|
|
GARBAGE += $(RESFILE) $(RCFILE)
|
|
|
|
|
2002-03-26 04:44:13 +03:00
|
|
|
#dummy target so $(RCFILE) doesn't become the default =P
|
2002-03-22 18:01:17 +03:00
|
|
|
all::
|
|
|
|
|
2014-11-30 04:45:31 +03:00
|
|
|
$(RCFILE): $(RCINCLUDE) $(MOZILLA_DIR)/config/version_win.pl
|
|
|
|
$(PERL) $(MOZILLA_DIR)/config/version_win.pl $(_RC_STRING)
|
2002-03-22 18:01:17 +03:00
|
|
|
|
|
|
|
endif # RESFILE
|
|
|
|
endif # Windows
|
|
|
|
|
|
|
|
endif
|