From 98e1fdd4fbb1a5da0a92eafb7938523d23bfe859 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 28 Feb 2014 17:40:49 -0800 Subject: [PATCH] Add test environment --- SConstruct | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SConstruct b/SConstruct index 8f37c1f..5b7d355 100644 --- a/SConstruct +++ b/SConstruct @@ -141,9 +141,21 @@ release_env = create_env('release', [src_dir], { 'CXXFLAGS': release_cflags, }) +test_gtest_dir = Dir('#lib/gtest') +test_cpppath = test_gtest_dir.Dir('include') +test_env = create_env('test', [src_dir, test_dir, test_gtest_dir], { + 'CPPDEFINES': ['DEBUG'], + 'CPPPATH': [test_cpppath], + 'LIBPATH': [test_gtest_dir], + 'CFLAGS': debug_cflags, + 'CXXFLAGS': debug_cflags, +}) + + modes = { 'debug': debug_env, 'release': release_env, + 'test': test_env, } mode = ARGUMENTS.get('MODE', None)