Skip to content

Commit

Permalink
Many more build scripts for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Jan 1, 2012
1 parent 6476d61 commit 6df617e
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 5 deletions.
4 changes: 4 additions & 0 deletions build/build-debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=RelWithDebInfo ALL_BUILD.vcxproj
cd ..
4 changes: 4 additions & 0 deletions build/build-release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=Release ALL_BUILD.vcxproj
cd ..
5 changes: 0 additions & 5 deletions build/generate-MSVC-2010.bat

This file was deleted.

6 changes: 6 additions & 0 deletions build/generate-MSVC-all.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IF EXIST DF_PATH.txt SET /P _DF_PATH=<DF_PATH.txt
IF NOT EXIST DF_PATH.txt SET _DF_PATH=%CD%\DF
mkdir VC2010
cd VC2010
echo generating a build folder
cmake ..\.. -G"Visual Studio 10" -DCMAKE_INSTALL_PREFIX=%_DF_PATH% -DBUILD_DEVEL=1 -DBUILD_DEV_PLUGINS=1 -DBUILD_DF2MC=1 -DBUILD_DFUSION=1 -DBUILD_STONESENSE=1 -DBUILD_SERVER=1
7 changes: 7 additions & 0 deletions build/generate-MSVC-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
IF EXIST DF_PATH.txt SET /P _DF_PATH=<DF_PATH.txt
IF NOT EXIST DF_PATH.txt SET _DF_PATH=%CD%\DF
mkdir VC2010
cd VC2010
echo Pre-generating a build folder
cmake ..\.. -G"Visual Studio 10" -DCMAKE_INSTALL_PREFIX=%_DF_PATH%
cmake-gui .
6 changes: 6 additions & 0 deletions build/generate-MSVC-minimal.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IF EXIST DF_PATH.txt SET /P _DF_PATH=<DF_PATH.txt
IF NOT EXIST DF_PATH.txt SET _DF_PATH=%CD%\DF
mkdir VC2010
cd VC2010
echo generating a build folder
cmake ..\.. -G"Visual Studio 10" -DCMAKE_INSTALL_PREFIX=%_DF_PATH% -DBUILD_DEVEL=0 -DBUILD_DEV_PLUGINS=0 -DBUILD_DF2MC=0 -DBUILD_DFUSION=0 -DBUILD_STONESENSE=0 -DBUILD_SERVER=0
4 changes: 4 additions & 0 deletions build/install-debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=RelWithDebInfo INSTALL.vcxproj
cd ..
4 changes: 4 additions & 0 deletions build/install-release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=Release INSTALL.vcxproj
cd ..
4 changes: 4 additions & 0 deletions build/package-debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=RelWithDebInfo PACKAGE.vcxproj
cd ..
4 changes: 4 additions & 0 deletions build/package-release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call "%VS100COMNTOOLS%vsvars32.bat"
cd VC2010
msbuild /m:4 /p:Platform=Win32 /p:Configuration=Release PACKAGE.vcxproj
cd ..
32 changes: 32 additions & 0 deletions build/set_df_path.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Option Explicit

Const BIF_returnonlyfsdirs = &H0001

Dim wsh, objDlg, objF, fso, spoFile
Set objDlg = WScript.CreateObject("Shell.Application")
Set objF = objDlg.BrowseForFolder (&H0,"Select your DF folder", BIF_returnonlyfsdirs)

Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("DF_PATH.txt") Then
fso.DeleteFile "DF_PATH.txt", True
End If

If IsValue(objF) Then
If InStr(1, TypeName(objF), "Folder") > 0 Then
Set spoFile = fso.CreateTextFile("DF_PATH.txt", True)
spoFile.WriteLine(objF.Self.Path)
End If
End If

Function IsValue(obj)
' Check whether the value has been returned.
Dim tmp
On Error Resume Next
tmp = " " & obj
If Err <> 0 Then
IsValue = False
Else
IsValue = True
End If
On Error GoTo 0
End Function

0 comments on commit 6df617e

Please sign in to comment.