forked from minhngoc25a/freetype2
[build] Enable VERSIONINFO resource for Cygwin/MinGW.
* builds/unix/configure.raw: Check for resource compiler. * builds/unix/unix-cc.in: Conditionally set up resource compiler. * builds/freetype.mk: Add conditional rule for `ftver.rc'. * src/base/ftver.rc: Copyright notice and year update.
This commit is contained in:
parent
fd8000f040
commit
4b8ccc56d8
|
@ -1,3 +1,12 @@
|
||||||
|
2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
|
[build] Enable VERSIONINFO resource for Cygwin/MinGW.
|
||||||
|
|
||||||
|
* builds/unix/configure.raw: Check for resource compiler.
|
||||||
|
* builds/unix/unix-cc.in: Conditionally set up resource compiler.
|
||||||
|
* builds/freetype.mk: Add conditional rule for `ftver.rc'.
|
||||||
|
* src/base/ftver.rc: Copyright notice and year update.
|
||||||
|
|
||||||
2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
[build] Move VERSIONINFO resource.
|
[build] Move VERSIONINFO resource.
|
||||||
|
|
|
@ -248,6 +248,22 @@ $(FTINIT_OBJ): $(FTINIT_SRC) $(FREETYPE_H)
|
||||||
$(FT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
|
$(FT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
|
||||||
|
|
||||||
|
|
||||||
|
# ftver component
|
||||||
|
#
|
||||||
|
# The VERSIONINFO resource `ftver.rc' contains version and copyright
|
||||||
|
# to be compiled by windres and tagged into DLL usually.
|
||||||
|
#
|
||||||
|
ifneq ($(RC),)
|
||||||
|
FTVER_SRC := $(BASE_DIR)/ftver.rc
|
||||||
|
FTVER_OBJ := $(OBJ_DIR)/ftver.$O
|
||||||
|
|
||||||
|
OBJECTS_LIST += $(FTVER_OBJ)
|
||||||
|
|
||||||
|
$(FTVER_OBJ): $(FTVER_SRC)
|
||||||
|
$(RC) -o $@ $<
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# All FreeType library objects.
|
# All FreeType library objects.
|
||||||
#
|
#
|
||||||
OBJ_M := $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M)
|
OBJ_M := $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M)
|
||||||
|
|
|
@ -37,6 +37,7 @@ AC_SUBST(EXEEXT)
|
||||||
PKG_PROG_PKG_CONFIG([0.24])
|
PKG_PROG_PKG_CONFIG([0.24])
|
||||||
|
|
||||||
LT_INIT(win32-dll)
|
LT_INIT(win32-dll)
|
||||||
|
LT_PROG_RC
|
||||||
|
|
||||||
|
|
||||||
# checks for native programs to generate building tool
|
# checks for native programs to generate building tool
|
||||||
|
|
|
@ -87,10 +87,16 @@ ANSIFLAGS := @XX_ANSIFLAGS@
|
||||||
|
|
||||||
# C compiler to use -- we use libtool!
|
# C compiler to use -- we use libtool!
|
||||||
#
|
#
|
||||||
#
|
|
||||||
CCraw := $(CC)
|
CCraw := $(CC)
|
||||||
CC := $(LIBTOOL) --mode=compile $(CCraw)
|
CC := $(LIBTOOL) --mode=compile $(CCraw)
|
||||||
|
|
||||||
|
# Resource compiler to use on Cygwin/MinGW, usually windres.
|
||||||
|
#
|
||||||
|
RCraw := @RC@
|
||||||
|
ifneq ($(RCraw),)
|
||||||
|
RC := $(LIBTOOL) --tag=RC --mode=compile $(RCraw)
|
||||||
|
endif
|
||||||
|
|
||||||
# Linker flags.
|
# Linker flags.
|
||||||
#
|
#
|
||||||
LDFLAGS := @LDFLAGS@
|
LDFLAGS := @LDFLAGS@
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/***************************************************************************/
|
||||||
|
/* */
|
||||||
|
/* ftver.rc */
|
||||||
|
/* */
|
||||||
|
/* FreeType VERSIONINFO resource for Windows DLLs. */
|
||||||
|
/* */
|
||||||
|
/* Copyright 2018 by */
|
||||||
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||||
|
/* */
|
||||||
|
/* This file is part of the FreeType project, and may only be used, */
|
||||||
|
/* modified, and distributed under the terms of the FreeType project */
|
||||||
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
||||||
|
/* this file you indicate that you have read the license and */
|
||||||
|
/* understand and accept it fully. */
|
||||||
|
/* */
|
||||||
|
/***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#include<Windows.h>
|
#include<Windows.h>
|
||||||
|
|
||||||
#define FT_VERSION 2,9,0,0
|
#define FT_VERSION 2,9,0,0
|
||||||
|
@ -27,7 +45,7 @@ BEGIN
|
||||||
VALUE "FileVersion", FT_VERSION_STR
|
VALUE "FileVersion", FT_VERSION_STR
|
||||||
VALUE "ProductName", "FreeType"
|
VALUE "ProductName", "FreeType"
|
||||||
VALUE "ProductVersion", FT_VERSION_STR
|
VALUE "ProductVersion", FT_VERSION_STR
|
||||||
VALUE "LegalCopyright", "© 2017 The FreeType Project www.freetype.org. All rights reserved."
|
VALUE "LegalCopyright", "© 2018 The FreeType Project www.freetype.org. All rights reserved."
|
||||||
VALUE "InternalName", "freetype"
|
VALUE "InternalName", "freetype"
|
||||||
VALUE "OriginalFilename", FT_FILENAME
|
VALUE "OriginalFilename", FT_FILENAME
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in New Issue