Add test environment
This commit is contained in:
		
							parent
							
								
									301a7fa525
								
							
						
					
					
						commit
						98e1fdd4fb
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								SConstruct
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue