freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] FreeType DLL support


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] FreeType DLL support
Date: Tue, 16 Jan 2018 23:01:56 -0500

Hi Werner,

I am trying to tag DLL with the version resource via windres on Cygwin/MinGW to work. It seems that the RC variable set by LT_PROG_RC does not reach the rules file. Any ideas?

Thank you,
Alexei

diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 20157b9be..d76c32452 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -37,6 +37,7 @@ AC_SUBST(EXEEXT)
 PKG_PROG_PKG_CONFIG([0.24])

 LT_INIT(win32-dll)
+LT_PROG_RC


 # checks for native programs to generate building tool
diff --git a/src/base/rules.mk b/src/base/rules.mk
index 6491f5d8a..3b76298ac 100644
--- a/src/base/rules.mk
+++ b/src/base/rules.mk
@@ -52,6 +52,9 @@ BASE_SRC := $(BASE_DIR)/basepic.c  \
             $(BASE_DIR)/fttrigon.c \
             $(BASE_DIR)/ftutil.c

+ifneq ($(RC),)
+  BASE_SRC += $(BASE_DIR)/ftver.rc
+endif

 ifneq ($(ftmac_c),)
   BASE_SRC += $(BASE_DIR)/$(ftmac_c)
@@ -103,5 +106,8 @@ $(BASE_OBJ_S): $(BASE_SRC_S) $(BASE_SRC) $(FREETYPE_H) $(BASE_H)
 $(OBJ_DIR)/%.$O: $(BASE_DIR)/%.c $(FREETYPE_H) $(BASE_H)
        $(BASE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)

+$(OBJ_DIR)/%.$O: $(BASE_DIR)/%.rc
+       $(RC) -i $< -o $@
+

 # EOF



reply via email to

[Prev in Thread] Current Thread [Next in Thread]