From: Loren Merritt Date: Sat, 30 Apr 2005 01:20:50 +0000 (+0000) Subject: Updated MSVC project files. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ab2cdf4b804f9e97a112fa4be96c1306522746e4;p=x264.git Updated MSVC project files. thanks to Bonzi. git-svn-id: svn://svn.videolan.org/x264/trunk@218 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/build/win32/libx264.dsp b/build/win32/libx264.dsp index 60b9abb4..21586188 100644 --- a/build/win32/libx264.dsp +++ b/build/win32/libx264.dsp @@ -445,6 +445,68 @@ InputName=pixel-a # End Source File # Begin Source File +SOURCE="..\..\common\i386\mc-a2.asm" + +!IF "$(CFG)" == "libx264 - Win32 Release" + +# Begin Custom Build - Assembly $(InputPath) +IntDir=.\Release +InputPath=..\..\common\i386\mc-a2.asm +InputName=mc-a2 + +"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "libx264 - Win32 Debug" + +# Begin Custom Build - Assembly $(InputPath) +IntDir=.\Debug +InputPath=..\..\common\i386\mc-a2.asm +InputName=mc-a2 + +"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE="..\..\common\i386\predict-a.asm" + +!IF "$(CFG)" == "libx264 - Win32 Release" + +# Begin Custom Build - Assembly $(InputPath) +IntDir=.\Release +InputPath=..\..\common\i386\predict-a.asm +InputName=predict-a + +"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath) + +# End Custom Build + +!ELSEIF "$(CFG)" == "libx264 - Win32 Debug" + +# Begin Custom Build - Assembly $(InputPath) +IntDir=.\Debug +InputPath=..\..\common\i386\predict-a.asm +InputName=predict-a + +"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath) + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + SOURCE=..\..\common\i386\pixel.h # End Source File # End Group @@ -601,6 +663,21 @@ SOURCE=..\..\common\predict.c !ENDIF +# End Source File +# Begin Source File + +SOURCE=..\..\common\i386\mc-c.c + +!IF "$(CFG)" == "libx264 - Win32 Release" + +# PROP Intermediate_Dir "obj/core_release" + +!ELSEIF "$(CFG)" == "libx264 - Win32 Debug" + +# PROP Intermediate_Dir "obj/core_debug" + +!ENDIF + # End Source File # End Group # Begin Group "Dec" diff --git a/common/common.h b/common/common.h index 94d4574d..23404a80 100644 --- a/common/common.h +++ b/common/common.h @@ -33,6 +33,7 @@ #ifdef _MSC_VER #define snprintf _snprintf +#define X264_VERSION "" // no configure script for msvc #endif #include "x264.h" diff --git a/encoder/set.c b/encoder/set.c index c22c1b26..8406118d 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -33,8 +33,10 @@ #include #include "x264.h" -#include "config.h" #include "common/common.h" +#ifndef _MSC_VER +#include "config.h" +#endif void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param ) { diff --git a/vfw/config.c b/vfw/config.c index 0e9a8cd0..4ebd083d 100644 --- a/vfw/config.c +++ b/vfw/config.c @@ -31,10 +31,15 @@ **************************************************************************/ #include "x264vfw.h" -#include "config.h" #include /* sprintf */ #include +#ifdef _MSC_VER +#define X264_VERSION "" +#else +#include "config.h" +#endif + /* Registry */ #define X264_REG_KEY HKEY_CURRENT_USER #define X264_REG_PARENT "Software\\GNU" diff --git a/x264.c b/x264.c index 80e6f5eb..6268ecb2 100644 --- a/x264.c +++ b/x264.c @@ -46,8 +46,10 @@ #endif #include "common/common.h" -#include "config.h" #include "x264.h" +#ifndef _MSC_VER +#include "config.h" +#endif #define DATA_MAX 3000000 uint8_t data[DATA_MAX];