Index: experimental/visual_studio_plugin/build.scons |
diff --git a/experimental/visual_studio_plugin/build.scons b/experimental/visual_studio_plugin/build.scons |
deleted file mode 100644 |
index 099849655ba01f781ec079b6f5c6012396d70ad0..0000000000000000000000000000000000000000 |
--- a/experimental/visual_studio_plugin/build.scons |
+++ /dev/null |
@@ -1,66 +0,0 @@ |
-#! -*- python -*- |
-# |
-# Copyright (c) 2011 The Native Client Authors. All rights reserved. |
-# Use of this source code is governed by a BSD-style license that can be |
-# found in the LICENSE file. |
- |
-'''Build file for building the VSX plugin and running its test projects.''' |
- |
-import os |
-import sys |
- |
-Import('env') |
- |
-# Check to ensure that we're running on windows. |
-if not env['IS_WINDOWS']: |
- Return() |
- |
-# Add the system path to this environment so that we can run gclient and such |
-env.AppendENVPath('PATH', os.environ['PATH']) |
- |
-# Duplicate all the shell environment variables, so that various Visual Studio |
-# tools will have the variables they expect (e.g. VS 2008 needs VS90COMNTOOLS). |
-# Do this using "if not in" instead of update(), so that os.environ variables |
-# don't override variables in env['ENV']. |
-for shell_var in os.environ: |
- if shell_var not in env['ENV']: |
- env['ENV'][shell_var] = os.environ[shell_var] |
- |
-vsx_root_path = os.path.join( |
- env['ROOT_DIR'], 'experimental', 'visual_studio_plugin') |
-env['ENV']['NACL_VSX_ROOT'] = vsx_root_path |
-env['ENV']['NACL_SDK_ROOT'] = env['ROOT_DIR'] |
- |
-nacl_vsx_solution = os.path.join(vsx_root_path, 'build', 'NativeClientVSX.sln') |
-vsx_build_all_command = env.BuildVSSolution('vsx', nacl_vsx_solution) |
- |
-env.Depends(vsx_build_all_command, env.GetToolchainNode()) |
- |
-def DefineVSTestSet(package_name, type, size): |
- '''Defines a set of tests to be added to the scons test set. |
- |
- This function accepts a package name and the type and test size and creates |
- a testing target that can be run as part of the build. The target is added |
- to the bot and the appropriate test size targets, and an individual target |
- for the test set is created as well. |
- |
- Arguments: |
- package - The name of the VS package whose test package should be added to |
- the build. |
- type - The type test package to expect as a string. This can be 'dll' or |
- 'exe'. |
- size - Which test harness to add the tests to; small, medium, or large |
- ''' |
- unit_test_name = '%s_UnitTestProject' % package_name |
- test_container = os.path.join(vsx_root_path, 'src', package_name, |
- unit_test_name, 'bin', 'Debug', |
- '%s.%s' % (unit_test_name, type)) |
- env.TestVSSolution(target_name=('run_%s_tests' % package_name), |
- test_container=test_container, |
- type=type, |
- size=size, |
- build_cmd=vsx_build_all_command) |
- |
-DefineVSTestSet('NaClVsx.Package', 'dll', 'small') |
-DefineVSTestSet('MsAd7.BaseImpl', 'dll', 'small') |
-DefineVSTestSet('dwarf_reader', 'exe', 'small') |