[xiph-cvs] cvs commit: win32sdk all.dsp all.dsw all.opt build_all.bat clean_all.bat mfmacro.bat makesdk.bat

Chris Wolf cwolf at xiph.org
Thu Sep 13 12:55:02 PDT 2001



cwolf       01/09/13 12:55:01

  Modified:    .        makesdk.bat
  Added:       .        all.dsp all.dsw all.opt build_all.bat clean_all.bat
                        mfmacro.bat
  Log:
  Add new build process using generated makefiles.

Revision  Changes    Path
1.4       +29 -77    win32sdk/makesdk.bat

Index: makesdk.bat
===================================================================
RCS file: /usr/local/cvsroot/win32sdk/makesdk.bat,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- makesdk.bat	2001/06/18 15:04:47	1.3
+++ makesdk.bat	2001/09/13 19:55:00	1.4
@@ -1,10 +1,20 @@
 @echo off
 echo ---+++--- Making Win32 SDK ---+++---
-
-if .%SRCROOT%==. set SRCROOT=i:\xiph
-
-rem --- prepare directory
-
+rem
+rem $Id: makesdk.bat,v 1.4 2001/09/13 19:55:00 cwolf Exp $
+rem
+
+if ."%SRCROOT%"==."" goto notset
+
+if ."%MSDEVDIR%"==."" goto msdevnotset
+
+rem If one of the makefiles doesn't exist, 
+rem assume they all need to be generated
+rem
+if not exist %SRCROOT%\vorbis\win32\vorbis_dynamic.mak (
+  msdev -ex ExportMakefile
+)
+  
 rd /s /q sdk > nul
 md sdk
 md sdk\include
@@ -84,137 +94,70 @@
 
 echo ... copied.
 
-rem --- build and copy ogg
+rem --- build all
+echo Building libraries...
+call build_all.bat
+if errorlevel 1 goto ERROR
 
-echo Building ogg...
-cd %SRCROOT%\ogg\win32
-call build_ogg_static.bat > nul
-echo ... static release built ...
 xcopy %SRCROOT%\ogg\win32\Static_Release\ogg_static.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static release copied ...
-call build_ogg_static_debug.bat > nul
-echo ... static debug built ...
 xcopy %SRCROOT%\ogg\win32\Static_Debug\ogg_static_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static debug copied ...
-call build_ogg_dynamic.bat > nul
-echo ... dynamic release built ...
 xcopy %SRCROOT%\ogg\win32\Dynamic_Release\ogg.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\ogg\win32\Dynamic_Release\ogg.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic release copied ...
-call build_ogg_dynamic_debug.bat > nul
-echo ... dynamic debug built ...
 xcopy %SRCROOT%\ogg\win32\Dynamic_Debug\ogg_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\ogg\win32\Dynamic_Debug\ogg_d.pdb %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\ogg\win32\Dynamic_Debug\ogg_d.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic debug copied ...
-echo ... ogg building done.
-
-rem --- build and copy vorbis
-
-echo Building vorbis...
-cd %SRCROOT%\vorbis\win32
-call build_vorbis_static.bat > nul
-echo ... static release built ...
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Static_Release\vorbis_static.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static release copied ...
-call build_vorbis_static_debug.bat > nul
-echo ... static debug built ...
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Static_Debug\vorbis_static_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static debug copied ...
-call build_vorbis_dynamic.bat > nul
-echo ... dynamic release built ...
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Dynamic_Release\vorbis.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Dynamic_Release\vorbis.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic release copied ...
-call build_vorbis_dynamic_debug.bat > nul
-echo ... dynamic debug built ...
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Dynamic_Debug\vorbis_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Dynamic_Debug\vorbis_d.pdb %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\Vorbis_Dynamic_Debug\vorbis_d.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic debug copied ...
-echo ... vorbis building done.
-
-rem --- build and copy vorbisfile
-
-echo Building vorbisfile...
-cd %SRCROOT%\vorbis\win32
-call build_vorbisfile_static.bat > nul
-echo ... static release built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Static_Release\vorbisfile_static.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static release copied ...
-call build_vorbisfile_static_debug.bat > nul
-echo ... static debug built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Static_Debug\vorbisfile_static_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static debug copied ...
-call build_vorbisfile_dynamic.bat > nul
-echo ... dynamic release built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Dynamic_Release\vorbisfile.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Dynamic_Release\vorbisfile.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic release copied ...
-call build_vorbisfile_dynamic_debug.bat > nul
-echo ... dynamic debug built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Dynamic_Debug\vorbisfile_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Dynamic_Debug\vorbisfile_d.pdb %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisFile_Dynamic_Debug\vorbisfile_d.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic debug copied ...
-echo ... vorbisfile building done.
-
-rem --- build and copy vorbisenc
-
-echo Building vorbisenc...
-cd %SRCROOT%\vorbis\win32
-call build_vorbisenc_static.bat > nul
-echo ... static release built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Static_Release\vorbisenc_static.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static release copied ...
-call build_vorbisenc_static_debug.bat > nul
-echo ... static debug built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Static_Debug\vorbisenc_static_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
-echo ... static debug copied ...
-call build_vorbisenc_dynamic.bat > nul
-echo ... dynamic release built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Dynamic_Release\vorbisenc.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Dynamic_Release\vorbisenc.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic release copied ...
-call build_vorbisenc_dynamic_debug.bat > nul
-echo ... dynamic debug built ...
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Dynamic_Debug\vorbisenc_d.lib %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Dynamic_Debug\vorbisenc_d.pdb %SRCROOT%\win32sdk\sdk\lib > nul
 if errorlevel 1 goto ERROR
 xcopy %SRCROOT%\vorbis\win32\VorbisEnc_Dynamic_Debug\vorbisenc_d.dll %SRCROOT%\win32sdk\sdk\bin > nul
 if errorlevel 1 goto ERROR
-echo ... dynamic debug copied ...
-echo ... vorbisenc building done.
-
-rem -- finished
 
 goto DONE
+
 :ERROR
 
 cd %SRCROOT%\win32sdk
@@ -223,8 +166,17 @@
 echo Some error(s) occurred. Fix it.
 goto EXIT
 
+:notset
+echo ***** Error: must set SRCROOT
+goto exit
+
 :DONE
 cd %SRCROOT%\win32sdk
 echo All done.
+goto exit
+
+:msdevnotset
+echo ***** Error: must set MSDEVDIR
+goto exit
 
 :EXIT

1.1                  win32sdk/all.dsp

Index: all.dsp
===================================================================
# Microsoft Developer Studio Project File - Name="all" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Generic Project" 0x010a

CFG=all - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE 
!MESSAGE NMAKE /f "all.mak".
!MESSAGE 
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE 
!MESSAGE NMAKE /f "all.mak" CFG="all - Win32 Debug"
!MESSAGE 
!MESSAGE Possible choices for configuration are:
!MESSAGE 
!MESSAGE "all - Win32 Release" (based on "Win32 (x86) Generic Project")
!MESSAGE "all - Win32 Debug" (based on "Win32 (x86) Generic Project")
!MESSAGE 

# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
MTL=midl.exe

!IF  "$(CFG)" == "all - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""

!ELSEIF  "$(CFG)" == "all - Win32 Debug"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""

!ENDIF 

# Begin Target

# Name "all - Win32 Release"
# Name "all - Win32 Debug"
# End Target
# End Project

1.1                  win32sdk/all.dsw

Index: all.dsw
===================================================================
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

###############################################################################

Project: "all"=.\all.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
    Begin Project Dependency
    Project_Dep_Name ogg_dynamic
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name ogg_static
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbis_dynamic
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbis_static
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbisenc_dynamic
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbisenc_static
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbisfile_dynamic
    End Project Dependency
    Begin Project Dependency
    Project_Dep_Name vorbisfile_static
    End Project Dependency
}}}

###############################################################################

Project: "ogg_dynamic"=..\ogg\win32\ogg_dynamic.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Project: "ogg_static"=..\ogg\win32\ogg_static.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Project: "vorbis_dynamic"=..\vorbis\win32\vorbis_dynamic.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
    Begin Project Dependency
    Project_Dep_Name ogg_dynamic
    End Project Dependency
}}}

###############################################################################

Project: "vorbis_static"=..\vorbis\win32\vorbis_static.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Project: "vorbisenc_dynamic"=..\vorbis\win32\vorbisenc_dynamic.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
    Begin Project Dependency
    Project_Dep_Name vorbis_dynamic
    End Project Dependency
}}}

###############################################################################

Project: "vorbisenc_static"=..\vorbis\win32\vorbisenc_static.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Project: "vorbisfile_dynamic"=..\vorbis\win32\vorbisfile_dynamic.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
    Begin Project Dependency
    Project_Dep_Name ogg_dynamic
    End Project Dependency
}}}

###############################################################################

Project: "vorbisfile_static"=..\vorbis\win32\vorbisfile_static.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Global:

Package=<5>
{{{
}}}

Package=<3>
{{{
}}}

###############################################################################

1.1                  win32sdk/all.opt

Index: all.opt
===================================================================
ÐÏࡱá

ogg_static,c:\src\codec\vorbis\ogg\win32\ogg_static.dsp

--

Zc

ogg_static,c:\src\codec\vorbis\ogg\win32\ogg_static.dsp

--

Zc

ogg_static,c:\src\codec\vorbis\ogg\win32\ogg_static.dsp

--

Zc

--

Zc

ogg_static

--

Zc

--

Zc

--

Zc

--

Zc

--

Zc

--

Zc

--

Zc

--

Zc

--

Zc

ogg_staticvorbisenc_dynamicvorbisfile_dynamicallvorbisenc_staticvorbisfile_staticogg_dynamicÿÿ

--

Zc

ogg_static

--

Zc

--

Zc

--

Zc

1.1                  win32sdk/build_all.bat

Index: build_all.bat
===================================================================
@echo off
rem $Id: build_all.bat,v 1.1 2001/09/13 19:55:00 cwolf Exp $
rem
rem Invoke as "build_all.bat CLEAN" to clean all targets
rem
if ."%SRCROOT%"==."" goto notset

rem If one of the makefiles doesn't exist,
rem assume they all need to be generated
rem
if not exist %SRCROOT%\vorbis\win32\vorbis_dynamic.mak (
  msdev -ex ExportMakefile
)

if not exist %SRCROOT%\ogg\include\ogg\ogg.h goto noogg
cd "..\ogg\win32"
nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Debug" %1
nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Release" %1
nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Debug" %1
nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Release" %1
cd "..\..\win32sdk"

if not exist %SRCROOT%\vorbis\include\vorbis\codec.h goto novorbis
cd "..\vorbis\win32"
nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Debug" %1
nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Release" %1
nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Debug" %1
nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Release" %1
nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Debug" %1
nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Release" %1
nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Debug" %1
nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Release" %1
nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Debug" %1
nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Release" %1
nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Debug" %1
nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Release" %1
cd "..\..\win32sdk"
exit

:noogg
echo ***** Need module OGG -- not present
exit

:novorbis
echo ***** Need module VORBIS -- not present
exit

:notset
echo ***** Error: must set SRCROOT
exit

1.1                  win32sdk/clean_all.bat

Index: clean_all.bat
===================================================================
rem
rem $Id: clean_all.bat,v 1.1 2001/09/13 19:55:00 cwolf Exp $
rem Call the make clean targets in each respective modules' subdirectory
rem
call build_all.bat CLEAN

1.1                  win32sdk/mfmacro.bat

Index: mfmacro.bat
===================================================================
rem @echo off
rem $Id: mfmacro.bat,v 1.1 2001/09/13 19:55:00 cwolf Exp $
rem Creates and installs VC macro for exporting makefiles from 
rem the command line.
rem
rem To invoke this macro: msdev -ex ExportMakefile
rem
rem
if .%SRCROOT%==. goto notset
set macrofile="%msdevdir%\Macros\oggvorbis.dsm"
if exist %macrofile% goto done
echo 'This macro is for exporting makefiles for all projects > %macrofile%
echo 'from the command line. >> %macrofile%
echo 'To invoke: msdev -ex ExportMakefile
echo Sub ExportMakefile >> %macrofile%
echo   Application.Visible = False >> %macrofile%
echo   Documents.Open "%SRCROOT%\win32sdk\all.dsw",,True >> %macrofile%
echo   set ActiveProject = Projects("all") >> %macrofile%
echo   Application.ExecuteCommand "BuildProjectExport" >> %macrofile%
echo   Documents.SaveAll True >> %macrofile%
echo   Application.Quit >> %macrofile%
echo end Sub >> %macrofile%
set macrofile=
exit
:notset
echo Error SRCROOT not set
:done

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list