view tests/core_tests/SConscript @ 653:01acc9fc35ea

* Moved getCurrentScreenMode() to the renderbackend as renderbackend is what initializes the screen. * Updated the Color masks to follow the integer standards * Added some new SDL modes (HW Surface and double buffer) to check for in DeviceCaps. * RenderBackend now saves the actual flags used to initialize the screen.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 15 Oct 2010 18:54:34 +0000
parents 64738befdf3b
children
line wrap: on
line source

import os,sys
from utils.util_scripts.path import path as upath

Import('env', 'opts')

if env.has_key('LIBS'):
	libs = list(env['LIBS'])
	libs.append(opts['TESTLIBS'])
else:
	libs = ""

if env.has_key('LIBPATH'):
	lib_path = list(env['LIBPATH'])
	lib_path.append(opts['LIBPATH'])
else:
	lib_path = ""

source_path = opts['SRC']

if env.has_key('CPPPATH'):
	core_path = list(env['CPPPATH'])
	core_path.append(os.path.join(source_path, 'core'))
else:
	core_path = ""

Alias('test_dat1', 
      env.Program('test_dat1', 
                  'test_dat1.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_dat2', 
      env.Program('test_dat2', 
                  'test_dat2.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_gui', 
      env.Program('test_gui', 
                  'test_gui.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_imagepool', 
      env.Program('test_imagepool', 
                  'test_imagepool.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_images', 
      env.Program('test_images', 
                  'test_images.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_rect', 
      env.Program('test_rect', 
                  'test_rect.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_vgs', 
      env.Program('test_vfs', 
                  'test_vfs.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('test_zip', 
      env.Program('test_zip', 
                  'test_zip.cpp', 
		  CPPPATH=core_path, 
		  LIBS=libs, 
		  LIBPATH=lib_path))

Alias('tests', ['test_dat1','test_dat2','test_gui','test_imagepool','test_images','test_rect','test_vfs','test_zip'])