[Libreoffice-commits] .: solenv/gbuild

Tor Lillqvist tml at kemper.freedesktop.org
Mon Jul 18 01:04:25 PDT 2011


 solenv/gbuild/platform/winmingw.mk |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 8c661fb8fcf7fce9c0875b38de95e7397e953015
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Mon Jul 18 11:02:23 2011 +0300

    Produce .res files with WNTGCC, too
    
    Note that they are not linked into the DLL, though. Neither for WNTMSC
    or WNTGCC.

diff --git a/solenv/gbuild/platform/winmingw.mk b/solenv/gbuild/platform/winmingw.mk
index 47a47f8..8626d4b 100644
--- a/solenv/gbuild/platform/winmingw.mk
+++ b/solenv/gbuild/platform/winmingw.mk
@@ -40,6 +40,7 @@ gb_CC := $(CC)
 gb_CXX := $(CXX)
 gb_AR := $(shell $(CC) -print-prog-name=ar)
 gb_AWK := awk
+gb_RC := $(WINDRES)
 ifeq ($(USE_MINGW),cygwin)
 gb_MINGWLIBDIR := $(COMPATH)/lib/mingw
 else
@@ -678,7 +679,7 @@ endif
 
 # WinResTarget class
 
-gb_WinResTarget_POSTFIX :=_res.o
+gb_WinResTarget_POSTFIX :=.res
 
 define gb_WinResTarget__command
 $(call gb_Output_announce,$(2),$(true),RES,3)
@@ -688,10 +689,8 @@ $(call gb_Helper_abbreviate_dirs_native,\
 		$(DEFS) $(FLAGS) \
 		-I$(dir $(3)) \
 		$(INCLUDE) \
-		-Fo$(patsubst %_res.o,%.res,$(1)) \
+		-o $(1) \
 		$(RCFILE) )
-	windres $(patsubst %_res.o,%.res,$(1)) $(1)
-	rm $(patsubst %_res.o,%.res,$(1))
 endef
 
 $(eval $(call gb_Helper_make_dep_targets,\


More information about the Libreoffice-commits mailing list