Add code build scripts to check the version of Visual Studio and the solution and project files and upgrade when necessary during the build. Add a note to the readme.w32 files that indicate that these upgrades happen, and please not to commit these changes.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1098 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
jcalcote
2009-05-06 21:27:22 +00:00
parent 254ad25d74
commit 086b1181a9
9 changed files with 169 additions and 40 deletions

View File

@@ -3,11 +3,24 @@ flaim-projects README file for Windows
Contents:
--------
1. Tools for Building on Windows
2. Building the Projects
3. Visual Studio Runtime Library Use
4. Legacy Makefile
1. Known Build Issues
2. Tools for Building on Windows
3. Building the Projects
4. Visual Studio Runtime Library Use
5. Legacy Makefile
Known Build Issues
------------------
1. There is an occasional build failure due to an "access denied"
error when attempting to write to a manifest file. Just build
again, and it will work the second time.
2. 64-bit builds of the flaim library have a few warnings, but
should build cleanly otherwise.
3. xflaim and sql don't build cleanly in 64-bit builds yet.
Tools for Building on Windows
-----------------------------
@@ -76,6 +89,10 @@ provided by Visual Studio, and located within the following directory:
c:\program files\microsoft visual studio 8\vc\vcvarsall.bat
The Visual Studio 2008 IDE will automatically upgrade the solution and
project files from VS 2005 format to VS 2008 format. PLEASE DO NOT COMMIT
THESE CHANGES (if you have commit rights to the flaim project repository).
The projects may also be built from Windows command (.cmd) files provided
in the same locations as the flaim project Visual Studio solution files.
Additionally, there is a master command file in the trunk\flaim\win32
@@ -102,6 +119,11 @@ For instance, ftk Win64 Debug products can be found in:
flaim/ftk/win32/ftk/x64/Debug
If you're using Visual Studio 2008, the build.cmd files will automatically
detect and upgrade the VS 2005 solution and project files to VS 2008 format.
PLEASE DO NOT COMMIT THESE CHANGES (if you have commit rights to the flaim
project repository).
Visual Studio Runtime Library Use
---------------------------------
@@ -172,5 +194,4 @@ CAVEAT: We're trying to phase out the legacy GNU makefile build system, so:
1) Don't expect it to last forever, and
2) Don't be surprised if it doesn't work all the time
Enjoy!
Enjoy!

View File

@@ -3,10 +3,23 @@ flaim README file for Windows
Contents:
--------
1. Tools for Building on Windows
2. Building the Projects
3. Visual Studio Runtime Library Use
4. Legacy Makefile
1. Known Build Issues
2. Tools for Building on Windows
3. Building the Projects
4. Visual Studio Runtime Library Use
5. Legacy Makefile
Known Build Issues
------------------
1. There is an occasional build failure due to an "access denied"
error when attempting to write to a manifest file. Just build
again, and it will work the second time.
2. 64-bit builds of the flaim library have a few warnings, but
should build cleanly otherwise.
3. xflaim and sql don't build cleanly in 64-bit builds yet.
Tools for Building on Windows
-----------------------------
@@ -76,6 +89,10 @@ provided by Visual Studio, and located within the following directory:
c:\program files\microsoft visual studio 8\vc\vcvarsall.bat
The Visual Studio 2008 IDE will automatically upgrade the solution and
project files from VS 2005 format to VS 2008 format. PLEASE DO NOT COMMIT
THESE CHANGES (if you have commit rights to the flaim project repository).
The projects may also be built from Windows command (.cmd) files provided
in the same locations as the flaim project Visual Studio solution files.
Additionally, there is a master command file in the trunk\flaim\win32
@@ -102,6 +119,11 @@ For instance, ftk Win64 Debug products can be found in:
flaim/ftk/win32/ftk/x64/Debug
If you're using Visual Studio 2008, the build.cmd files will automatically
detect and upgrade the VS 2005 solution and project files to VS 2008 format.
PLEASE DO NOT COMMIT THESE CHANGES (if you have commit rights to the flaim
project repository).
Visual Studio Runtime Library Use
---------------------------------
@@ -172,5 +194,4 @@ CAVEAT: We're trying to phase out the legacy GNU makefile build system, so:
1) Don't expect it to last forever, and
2) Don't be surprised if it doesn't work all the time
Enjoy!
Enjoy!

View File

@@ -13,7 +13,7 @@ set FTKLIB=..\..\..\..\ftk\win32\ftk
:next_arg
shift
if "%0" == "" goto do_build
if "%0" == "" goto do_version_test
if "%0" == "clean" ((set operation=Clean) && goto next_arg)
if "%0" == "Clean" ((set operation=%0) && goto next_arg)
if "%0" == "build" ((set operation=Build) && goto next_arg)
@@ -31,6 +31,12 @@ if "%0" == "64" ((set platform=x64) && goto next_arg)
if "%0" == "x64" ((set platform=%0%) && goto next_arg)
goto help
:do_version_test
devenv /? | find "Visual Studio Version 9.0" >NULL
if errorlevel 1 goto do_build
find "# Visual Studio 2008" %solution%.sln >NULL
if errorlevel 1 devenv %solution%.sln /Upgrade
:do_build
devenv %solution%.sln /%operation% "%build%|%platform%"

View File

@@ -3,10 +3,23 @@ ftk README file for Windows
Contents:
--------
1. Tools for Building on Windows
2. Building the Projects
3. Visual Studio Runtime Library Use
4. Legacy Makefile
1. Known Build Issues
2. Tools for Building on Windows
3. Building the Projects
4. Visual Studio Runtime Library Use
5. Legacy Makefile
Known Build Issues
------------------
1. There is an occasional build failure due to an "access denied"
error when attempting to write to a manifest file. Just build
again, and it will work the second time.
2. 64-bit builds of the flaim library have a few warnings, but
should build cleanly otherwise.
3. xflaim and sql don't build cleanly in 64-bit builds yet.
Tools for Building on Windows
-----------------------------
@@ -76,6 +89,10 @@ provided by Visual Studio, and located within the following directory:
c:\program files\microsoft visual studio 8\vc\vcvarsall.bat
The Visual Studio 2008 IDE will automatically upgrade the solution and
project files from VS 2005 format to VS 2008 format. PLEASE DO NOT COMMIT
THESE CHANGES (if you have commit rights to the flaim project repository).
The projects may also be built from Windows command (.cmd) files provided
in the same locations as the flaim project Visual Studio solution files.
Additionally, there is a master command file in the trunk\flaim\win32
@@ -102,6 +119,11 @@ For instance, ftk Win64 Debug products can be found in:
flaim/ftk/win32/ftk/x64/Debug
If you're using Visual Studio 2008, the build.cmd files will automatically
detect and upgrade the VS 2005 solution and project files to VS 2008 format.
PLEASE DO NOT COMMIT THESE CHANGES (if you have commit rights to the flaim
project repository).
Visual Studio Runtime Library Use
---------------------------------
@@ -172,5 +194,4 @@ CAVEAT: We're trying to phase out the legacy GNU makefile build system, so:
1) Don't expect it to last forever, and
2) Don't be surprised if it doesn't work all the time
Enjoy!
Enjoy!

View File

@@ -10,7 +10,7 @@ set program=%0
:next_arg
shift
if "%0" == "" goto do_build
if "%0" == "" goto do_version_test
if "%0" == "clean" ((set operation=Clean) && goto next_arg)
if "%0" == "Clean" ((set operation=%0) && goto next_arg)
if "%0" == "build" ((set operation=Build) && goto next_arg)
@@ -28,6 +28,12 @@ if "%0" == "64" ((set platform=x64) && goto next_arg)
if "%0" == "x64" ((set platform=%0%) && goto next_arg)
goto help
:do_version_test
devenv /? | find "Visual Studio Version 9.0" >NULL
if errorlevel 1 goto do_build
find "# Visual Studio 2008" %solution%.sln >NULL
if errorlevel 1 devenv %solution%.sln /Upgrade
:do_build
devenv %solution%.sln /%operation% "%build%|%platform%"

View File

@@ -1,12 +1,25 @@
flaimsql README file for Windows
================================
sql README file for Windows
===========================
Contents:
--------
1. Tools for Building on Windows
2. Building the Projects
3. Visual Studio Runtime Library Use
4. Legacy Makefile
1. Known Build Issues
2. Tools for Building on Windows
3. Building the Projects
4. Visual Studio Runtime Library Use
5. Legacy Makefile
Known Build Issues
------------------
1. There is an occasional build failure due to an "access denied"
error when attempting to write to a manifest file. Just build
again, and it will work the second time.
2. 64-bit builds of the flaim library have a few warnings, but
should build cleanly otherwise.
3. xflaim and sql don't build cleanly in 64-bit builds yet.
Tools for Building on Windows
-----------------------------
@@ -76,6 +89,10 @@ provided by Visual Studio, and located within the following directory:
c:\program files\microsoft visual studio 8\vc\vcvarsall.bat
The Visual Studio 2008 IDE will automatically upgrade the solution and
project files from VS 2005 format to VS 2008 format. PLEASE DO NOT COMMIT
THESE CHANGES (if you have commit rights to the flaim project repository).
The projects may also be built from Windows command (.cmd) files provided
in the same locations as the flaim project Visual Studio solution files.
Additionally, there is a master command file in the trunk\flaim\win32
@@ -102,6 +119,11 @@ For instance, ftk Win64 Debug products can be found in:
flaim/ftk/win32/ftk/x64/Debug
If you're using Visual Studio 2008, the build.cmd files will automatically
detect and upgrade the VS 2005 solution and project files to VS 2008 format.
PLEASE DO NOT COMMIT THESE CHANGES (if you have commit rights to the flaim
project repository).
Visual Studio Runtime Library Use
---------------------------------
@@ -172,5 +194,4 @@ CAVEAT: We're trying to phase out the legacy GNU makefile build system, so:
1) Don't expect it to last forever, and
2) Don't be surprised if it doesn't work all the time
Enjoy!
Enjoy!

View File

@@ -2,7 +2,7 @@
setlocal
set solution=flaim-projects.sln
set solution=sql
set operation=Build
set build=Release
set platform=Win32
@@ -13,7 +13,7 @@ set FTKLIB=..\..\..\..\ftk\win32\ftk
:next_arg
shift
if "%0" == "" goto do_build
if "%0" == "" goto do_version_test
if "%0" == "clean" ((set operation=Clean) && goto next_arg)
if "%0" == "Clean" ((set operation=%0) && goto next_arg)
if "%0" == "build" ((set operation=Build) && goto next_arg)
@@ -31,8 +31,14 @@ if "%0" == "64" ((set platform=x64) && goto next_arg)
if "%0" == "x64" ((set platform=%0%) && goto next_arg)
goto help
:do_version_test
devenv /? | find "Visual Studio Version 9.0" >NULL
if errorlevel 1 goto do_build
find "# Visual Studio 2008" %solution%.sln >NULL
if errorlevel 1 devenv %solution%.sln /Upgrade
:do_build
devenv flaim-projects.sln /%operation% "%build%|%platform%"
devenv %solution%.sln /%operation% "%build%|%platform%"
goto done

View File

@@ -3,10 +3,23 @@ xflaim README file for Windows
Contents:
--------
1. Tools for Building on Windows
2. Building the Projects
3. Visual Studio Runtime Library Use
4. Legacy Makefile
1. Known Build Issues
2. Tools for Building on Windows
3. Building the Projects
4. Visual Studio Runtime Library Use
5. Legacy Makefile
Known Build Issues
------------------
1. There is an occasional build failure due to an "access denied"
error when attempting to write to a manifest file. Just build
again, and it will work the second time.
2. 64-bit builds of the flaim library have a few warnings, but
should build cleanly otherwise.
3. xflaim and sql don't build cleanly in 64-bit builds yet.
Tools for Building on Windows
-----------------------------
@@ -76,6 +89,10 @@ provided by Visual Studio, and located within the following directory:
c:\program files\microsoft visual studio 8\vc\vcvarsall.bat
The Visual Studio 2008 IDE will automatically upgrade the solution and
project files from VS 2005 format to VS 2008 format. PLEASE DO NOT COMMIT
THESE CHANGES (if you have commit rights to the flaim project repository).
The projects may also be built from Windows command (.cmd) files provided
in the same locations as the flaim project Visual Studio solution files.
Additionally, there is a master command file in the trunk\flaim\win32
@@ -102,6 +119,11 @@ For instance, ftk Win64 Debug products can be found in:
flaim/ftk/win32/ftk/x64/Debug
If you're using Visual Studio 2008, the build.cmd files will automatically
detect and upgrade the VS 2005 solution and project files to VS 2008 format.
PLEASE DO NOT COMMIT THESE CHANGES (if you have commit rights to the flaim
project repository).
Visual Studio Runtime Library Use
---------------------------------
@@ -172,5 +194,4 @@ CAVEAT: We're trying to phase out the legacy GNU makefile build system, so:
1) Don't expect it to last forever, and
2) Don't be surprised if it doesn't work all the time
Enjoy!
Enjoy!

View File

@@ -2,7 +2,7 @@
setlocal
set solution=flaim-projects.sln
set solution=xflaim
set operation=Build
set build=Release
set platform=Win32
@@ -13,7 +13,7 @@ set FTKLIB=..\..\..\..\ftk\win32\ftk
:next_arg
shift
if "%0" == "" goto do_build
if "%0" == "" goto do_version_test
if "%0" == "clean" ((set operation=Clean) && goto next_arg)
if "%0" == "Clean" ((set operation=%0) && goto next_arg)
if "%0" == "build" ((set operation=Build) && goto next_arg)
@@ -31,8 +31,14 @@ if "%0" == "64" ((set platform=x64) && goto next_arg)
if "%0" == "x64" ((set platform=%0%) && goto next_arg)
goto help
:do_version_test
devenv /? | find "Visual Studio Version 9.0" >NULL
if errorlevel 1 goto do_build
find "# Visual Studio 2008" %solution%.sln >NULL
if errorlevel 1 devenv %solution%.sln /Upgrade
:do_build
devenv flaim-projects.sln /%operation% "%build%|%platform%"
devenv %solution%.sln /%operation% "%build%|%platform%"
goto done