From a1d7a0d57f9c556b6fbe6888e43b97ccc37b8f26 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 10 Aug 2005 05:56:27 +0000 Subject: [PATCH] MSVS via SCons --- SConstruct | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index c709f49..91140a5 100644 --- a/SConstruct +++ b/SConstruct @@ -5,7 +5,7 @@ # James Turk (jpt2433@rit.edu) # # Version: -# $Id: SConstruct,v 1.20 2005/08/10 05:36:30 cozman Exp $ +# $Id: SConstruct,v 1.21 2005/08/10 05:56:27 cozman Exp $ import os,os.path import glob @@ -53,7 +53,7 @@ def BuildSuperHeader(target = None, source = None, env = None): SuperHeaderAction = Action(BuildSuperHeader) # Configure the environment (Check libraries): -env = Environment(ENV = os.environ) +env = Environment(ENV = os.environ, MSVS_VERSION = 7.0) env.Append(CPPPATH='include', CPPFLAGS='-Wall') env.ParseConfig('freetype-config --cflags') # Configure @@ -96,7 +96,6 @@ ndoc = env.Command('docs/index.html', './include', """NaturalDocs -nag -i $SOURCES -o HTML ./docs -p ./ndoc""") env.Alias("docs",ndoc) - # Tests: tests = [] test_srcs = glob.glob( os.path.join('test', '*_test.cpp') ) @@ -108,3 +107,8 @@ for test_src in test_srcs: 'physfs','corona','freetype'])) env.Alias('test',tests) +# Visual C++ Projects +msvc = env.MSVSProject(target = 'msvc/photon' + env['MSVSPROJECTSUFFIX'], + srcs = getFilesMulti(SRC_DIRS, '*.cpp'), incs = INC_FILES, + buildtarget = lib, variant = 'Release') +env.Alias('msvc',msvc)