[MPlayer-dev-eng] [PATCH] ./configure --windres=WINDRES

sheba sheba469 at yahoo.com
Thu Dec 27 01:23:17 CET 2007


This makes it nicer to build for windows.

sheba

Index: vidix/dhahelperwin/Makefile
===================================================================
--- vidix/dhahelperwin/Makefile	(revision 25530)
+++ vidix/dhahelperwin/Makefile	(working copy)
@@ -9,7 +9,7 @@
 	$(CC) -Wall -Os -c $< -o $@
 
 dhahelper-rc.o: dhahelper.rc common.ver ntverp.h
-	windres -I. $< $@
+	$(WINDRES) -I. $< $@
 
 base.tmp: dhahelper.o dhahelper-rc.o
 	$(CC)   -Wl,--base-file,$@ \
Index: configure
===================================================================
--- configure	(revision 25530)
+++ configure	(working copy)
@@ -400,6 +400,7 @@
   --as=ASSEMBLER         assembler to build MPlayer
[as]
   --ar=AR                librarian to build MPlayer
[ar]
   --ranlib=RANLIB        ranlib to build MPlayer
[ranlib]
+  --windres=WINDRES      windres to build MPlayer
[windres]
   --target=PLATFORM      target platform (i386-linux,
arm-linux, etc)
   --enable-static        build a statically linked
binary
   --charset=charset      convert the console messages
to this character set
@@ -478,6 +479,7 @@
 _altivec=auto
 _install=install
 _ranlib=ranlib
+_windres=windres
 _ldconfig=ldconfig
 _cc=cc
 _ar=ar
@@ -770,6 +772,9 @@
   --ranlib=*)
     _ranlib=`echo $ac_option | cut -d '=' -f 2`
     ;;
+  --windres=*)
+    _windres=`echo $ac_option | cut -d '=' -f 2`
+    ;;
   --charset=*)
     _charset=`echo $ac_option | cut -d '=' -f 2`
     ;;
@@ -7597,6 +7602,7 @@
 CXX = $_cc
 HOST_CC = $_host_cc
 RANLIB = $_ranlib
+WINDRES = $_windres
 LDCONFIG = $_ldconfig
 INSTALL = $_install
 EXTRA_INC = $_inc_extra
Index: osdep/Makefile
===================================================================
--- osdep/Makefile	(revision 25530)
+++ osdep/Makefile	(working copy)
@@ -30,4 +30,4 @@
 include ../mpcommon.mak
 
 mplayer-rc.o: mplayer.rc
-	windres -o $@ $<
+	$(WINDRES) -o $@ $<



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 





More information about the MPlayer-dev-eng mailing list