diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 22:17:10 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 22:17:10 +0000 |
commit | 1d3a6d08fcc0759fdd589e48a85f3331cc9f7a98 (patch) | |
tree | fe614bc0b7b1303f746eb2a74408fdaaba78adac /o3d/tests/build.scons | |
parent | 5e892c20535dcbeae099f92148feea8473cf1445 (diff) | |
download | chromium_src-1d3a6d08fcc0759fdd589e48a85f3331cc9f7a98.zip chromium_src-1d3a6d08fcc0759fdd589e48a85f3331cc9f7a98.tar.gz chromium_src-1d3a6d08fcc0759fdd589e48a85f3331cc9f7a98.tar.bz2 |
Code to load the software renderer and initialize it. Code to force the software renderer enabled with registry entry even if hardware is capable. Build scripts copy the software renderer dll to the plugin directory on an intall build.
Review URL: http://codereview.chromium.org/147039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/tests/build.scons')
-rw-r--r-- | o3d/tests/build.scons | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/o3d/tests/build.scons b/o3d/tests/build.scons index 32f4417..83efd83 100644 --- a/o3d/tests/build.scons +++ b/o3d/tests/build.scons @@ -152,6 +152,14 @@ if env.Bit('windows'): # Adding extra line for cleaner formatting. env.Help('\n') +swiftshader_install = [] +if env.Bit('windows'):
+ # Copy SwiftShader to plugin dir.
+ swiftshader_path = env.subst('$SWIFTSHADER_DIR/swiftshader_d3d9.dll')
+ if os.path.exists(swiftshader_path):
+ swiftshader_install = env.Replicate('$ARTIFACTS_DIR/O3DExtras',
+ swiftshader_path)
+ # ------------------------------------------------------------------------- # Unit tests @@ -318,6 +326,7 @@ unit_tests_req += env.Replicate( # Also require gl related libraries based on variant. unit_tests_req += gl_requirements +unit_tests_req += swiftshader_install # Add requirements for unit tests. env.Requires(unit_tests_install, unit_tests_req) @@ -449,7 +458,10 @@ if ARGUMENTS.get('SYSTEM_TESTS_ENABLED', False): # Also require gl related libraries based on variant. system_tests_req += gl_requirements - + + # Require SwiftShader (only if it is available). + system_tests_req += swiftshader_install + # Add requirements for system_tests. env.Requires(system_tests_install, system_tests_req) @@ -592,6 +604,9 @@ def DeferSelenium(env): '--screenshotsdir=$ARTIFACTS_DIR/selenium/screenshots_firefox'])] + cleanup_steps, ) + + # Require SwiftShader (only if it is available). + run_env.Requires(run_selenium_firefox, swiftshader_install) if run_env.Bit('windows'): run_selenium_ie = run_env.Alias( |