defs.mk, lib.mk, rules.mk: Add version information into windows dlls

This commit is contained in:
Jan Lindemann 2009-08-08 09:23:23 +00:00 committed by Jan Lindemann
commit 375ec54aa2
3 changed files with 31 additions and 2 deletions

View file

@ -70,3 +70,24 @@ $(foreach p,$(CONTRIB_LIBS_PATH),$(eval $(call contrib_lib_search_rules,$(p))))
echo.contrib-libs:
@echo CONTRIB_LIBS_PATH = $(CONTRIB_LIBS_PATH)
@echo CONTRIB_LIBS = $(CONTRIB_LIBS)
ifeq ($(TARGET),mingw)
$(WINRES_RC): $(WINRES_RC_TMPL)
cat $< | sed " \
s/__VER_FILEVERSION__/$(MAJOR_VERSION),$(MINOR_VERSION),$(RELEASE_VERSION),$(BUILD_NUMBER)/; \
s/__VER_FILEVERSION_STR__/$(MAJOR_VERSION).$(MINOR_VERSION).$(RELEASE_VERSION).$(BUILD_NUMBER)/; \
s/__VER_DESCRIPTION__/\"$(PROJECT_DESCR)\"/; \
s/__VER_COMPANY_NAME__/\"$(CUSTOMER)\"/; \
" > $@.tmp
mv $@.tmp $@
$(WINRES_O): $(WINRES_RC)
$(WINDRES) $^ -o $@
clean.winres:
rm -f $(WINRES_RC) $(WINRES_O) *.tmp
clean: clean.winres
#%.o : %.rc
# $(WINDRES) $^ -o $@
endif