michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ifndef INCLUDED_VERSION_MK michael@0: INCLUDED_VERSION_MK=1 michael@0: michael@0: # Windows gmake build: michael@0: # Build default .rc file if $(RESFILE) isn't defined. michael@0: # TODO: michael@0: # PBI : Private build info. Not used currently. michael@0: # Guessing the best way would be to set an env var. michael@0: # BINARY : Binary name. Not used currently. michael@0: ifeq ($(MOZ_WIDGET_TOOLKIT),windows) michael@0: ifndef RESFILE michael@0: RCFILE=./module.rc michael@0: RESFILE=./module.res michael@0: _RC_STRING = -QUIET 1 -DEPTH $(DEPTH) -TOPSRCDIR $(topsrcdir) -OBJDIR . -SRCDIR $(srcdir) -DISPNAME "$(MOZ_APP_DISPLAYNAME)" -APPVERSION "$(MOZ_APP_VERSION)" michael@0: ifdef MOZILLA_OFFICIAL michael@0: _RC_STRING += -OFFICIAL 1 michael@0: endif michael@0: ifdef MOZ_DEBUG michael@0: _RC_STRING += -DEBUG 1 michael@0: endif michael@0: ifdef PROGRAM michael@0: _RC_STRING += -BINARY $(PROGRAM) michael@0: else michael@0: ifdef _PROGRAM michael@0: _RC_STRING += -BINARY $(_PROGRAM) michael@0: else michael@0: ifdef SHARED_LIBRARY michael@0: _RC_STRING += -BINARY $(SHARED_LIBRARY) michael@0: endif michael@0: endif michael@0: endif michael@0: ifdef RCINCLUDE michael@0: _RC_STRING += -RCINCLUDE $(srcdir)/$(RCINCLUDE) michael@0: endif michael@0: michael@0: GARBAGE += $(RESFILE) $(RCFILE) michael@0: michael@0: #dummy target so $(RCFILE) doesn't become the default =P michael@0: all:: michael@0: michael@0: $(RCFILE): $(RCINCLUDE) $(topsrcdir)/config/version_win.pl michael@0: $(PERL) $(topsrcdir)/config/version_win.pl $(_RC_STRING) michael@0: michael@0: endif # RESFILE michael@0: endif # Windows michael@0: michael@0: endif