2012-05-21 11:12:37 +00: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 15:01:17 +00: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 01:44:13 +00: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 15:01:17 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
ifndef RESFILE
|
|
|
|
RCFILE=./module.rc
|
|
|
|
RESFILE=./module.res
|
2009-09-16 00:54:54 +00:00
|
|
|
_RC_STRING = -QUIET 1 -DEPTH $(DEPTH) -TOPSRCDIR $(topsrcdir) -OBJDIR . -SRCDIR $(srcdir) -DISPNAME $(MOZ_APP_DISPLAYNAME) -APPVERSION $(MOZ_APP_VERSION)
|
2009-07-08 03:24:45 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-22 15:01:17 +00:00
|
|
|
_RC_STRING += -OFFICIAL 1
|
|
|
|
endif
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
_RC_STRING += -DEBUG 1
|
|
|
|
endif
|
2002-09-17 23:37:30 +00:00
|
|
|
ifdef PROGRAM
|
|
|
|
_RC_STRING += -BINARY $(PROGRAM)
|
|
|
|
else
|
2002-11-08 23:04:01 +00:00
|
|
|
ifdef _PROGRAM
|
|
|
|
_RC_STRING += -BINARY $(_PROGRAM)
|
|
|
|
else
|
|
|
|
ifdef SHARED_LIBRARY
|
2002-09-17 23:37:30 +00:00
|
|
|
_RC_STRING += -BINARY $(SHARED_LIBRARY)
|
|
|
|
endif
|
2002-11-08 23:04:01 +00:00
|
|
|
endif
|
|
|
|
endif
|
2002-08-19 22:51:52 +00:00
|
|
|
ifdef RCINCLUDE
|
|
|
|
_RC_STRING += -RCINCLUDE $(srcdir)/$(RCINCLUDE)
|
|
|
|
endif
|
2002-03-22 15:01:17 +00:00
|
|
|
|
|
|
|
GARBAGE += $(RESFILE) $(RCFILE)
|
|
|
|
|
2002-03-26 01:44:13 +00:00
|
|
|
#dummy target so $(RCFILE) doesn't become the default =P
|
2002-03-22 15:01:17 +00:00
|
|
|
all::
|
|
|
|
|
2008-01-14 15:24:19 +00:00
|
|
|
$(RCFILE): $(RCINCLUDE) $(topsrcdir)/config/version_win.pl
|
2002-03-22 15:01:17 +00:00
|
|
|
$(PERL) $(topsrcdir)/config/version_win.pl $(_RC_STRING)
|
|
|
|
|
|
|
|
endif # RESFILE
|
|
|
|
endif # Windows
|
|
|
|
|
|
|
|
endif
|