Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
24265424
Commit
24265424
authored
Dec 23, 2009
by
zhanyong.wan
Browse files
Removes support for MSVC 7.1 from the scons scripts.
parent
7b0c8dd3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
29 deletions
+9
-29
run_tests.py
run_tests.py
+1
-8
scons/SConstruct
scons/SConstruct
+4
-12
scons/SConstruct.common
scons/SConstruct.common
+3
-6
test/run_tests_util.py
test/run_tests_util.py
+1
-3
No files found.
run_tests.py
View file @
24265424
...
@@ -39,12 +39,6 @@ import sys
...
@@ -39,12 +39,6 @@ import sys
SCRIPT_DIR
=
os
.
path
.
dirname
(
__file__
)
or
'.'
SCRIPT_DIR
=
os
.
path
.
dirname
(
__file__
)
or
'.'
# Some Python tests don't work in all configurations.
PYTHON_TESTS_TO_SKIP
=
(
(
'win-dbg'
,
'gtest_throw_on_failure_test.py'
),
(
'win-opt'
,
'gtest_throw_on_failure_test.py'
),
)
sys
.
path
.
append
(
os
.
path
.
join
(
SCRIPT_DIR
,
'test'
))
sys
.
path
.
append
(
os
.
path
.
join
(
SCRIPT_DIR
,
'test'
))
import
run_tests_util
import
run_tests_util
...
@@ -56,8 +50,7 @@ def _Main():
...
@@ -56,8 +50,7 @@ def _Main():
test_runner
=
run_tests_util
.
TestRunner
(
script_dir
=
SCRIPT_DIR
)
test_runner
=
run_tests_util
.
TestRunner
(
script_dir
=
SCRIPT_DIR
)
tests
=
test_runner
.
GetTestsToRun
(
args
,
tests
=
test_runner
.
GetTestsToRun
(
args
,
options
.
configurations
,
options
.
configurations
,
options
.
built_configurations
,
options
.
built_configurations
)
python_tests_to_skip
=
PYTHON_TESTS_TO_SKIP
)
if
not
tests
:
if
not
tests
:
sys
.
exit
(
1
)
# Incorrect parameters given, abort execution.
sys
.
exit
(
1
)
# Incorrect parameters given, abort execution.
...
...
scons/SConstruct
View file @
24265424
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
# where frequently used command-line options include:
# where frequently used command-line options include:
# -h print usage help.
# -h print usage help.
# BUILD=all build all build types.
# BUILD=all build all build types.
# BUILD=win-opt
build the given build type.
# BUILD=win-opt
8
build the given build type.
EnsurePythonVersion
(
2
,
3
)
EnsurePythonVersion
(
2
,
3
)
...
@@ -49,18 +49,10 @@ sconstruct_helper.Initialize(build_root_path='..',
...
@@ -49,18 +49,10 @@ sconstruct_helper.Initialize(build_root_path='..',
support_multiple_win_builds
=
False
)
support_multiple_win_builds
=
False
)
win_base
=
sconstruct_helper
.
MakeWinBaseEnvironment
()
win_base
=
sconstruct_helper
.
MakeWinBaseEnvironment
()
win_base
[
'GTEST_BUILD_DLL_TEST'
]
=
True
# We don't support VC 7.1 with exceptions disabled, so we always
sconstruct_helper
.
MakeWinDebugEnvironment
(
win_base
,
'win-dbg8'
)
# enable exceptions for VC 7.1. For newer versions of VC, we still
sconstruct_helper
.
MakeWinOptimizedEnvironment
(
win_base
,
'win-opt8'
)
# compile with exceptions disabled by default, as that's a more common
# setting for our users.
if
win_base
.
get
(
'MSVS_VERSION'
,
None
)
==
'7.1'
:
sconstruct_helper
.
EnableExceptions
(
win_base
)
else
:
win_base
[
'GTEST_BUILD_DLL_TEST'
]
=
True
sconstruct_helper
.
MakeWinDebugEnvironment
(
win_base
,
'win-dbg'
)
sconstruct_helper
.
MakeWinOptimizedEnvironment
(
win_base
,
'win-opt'
)
sconstruct_helper
.
ConfigureGccEnvironments
()
sconstruct_helper
.
ConfigureGccEnvironments
()
...
...
scons/SConstruct.common
View file @
24265424
...
@@ -56,10 +56,7 @@ class SConstructHelper:
...
@@ -56,10 +56,7 @@ class SConstructHelper:
test_env = Environment()
test_env = Environment()
platform = test_env['PLATFORM']
platform = test_env['PLATFORM']
if platform == 'win32':
if platform == 'win32':
if support_multiple_win_builds:
available_build_types = ['win-dbg8', 'win-opt8']
available_build_types = ['win-dbg8', 'win-opt8', 'win-dbg', 'win-opt']
else:
available_build_types = ['win-dbg', 'win-opt']
elif platform == 'darwin': # MacOSX
elif platform == 'darwin': # MacOSX
available_build_types = ['mac-dbg', 'mac-opt']
available_build_types = ['mac-dbg', 'mac-opt']
else:
else:
...
@@ -144,7 +141,7 @@ class SConstructHelper:
...
@@ -144,7 +141,7 @@ class SConstructHelper:
self.env_dict[name] = env
self.env_dict[name] = env
def MakeWinDebugEnvironment(self, base_environment, name):
def MakeWinDebugEnvironment(self, base_environment, name):
"""Takes a
VC71 or VC80
base environment and adds debug settings."""
"""Takes a
n MSVC
base environment and adds debug settings."""
debug_env = base_environment.Clone()
debug_env = base_environment.Clone()
self.SetBuildNameAndDir(debug_env, name)
self.SetBuildNameAndDir(debug_env, name)
debug_env.Append(
debug_env.Append(
...
@@ -164,7 +161,7 @@ class SConstructHelper:
...
@@ -164,7 +161,7 @@ class SConstructHelper:
return debug_env
return debug_env
def MakeWinOptimizedEnvironment(self, base_environment, name):
def MakeWinOptimizedEnvironment(self, base_environment, name):
"""Takes a
VC71 or VC80
base environment and adds release settings."""
"""Takes a
n MSVC
base environment and adds release settings."""
optimized_env = base_environment.Clone()
optimized_env = base_environment.Clone()
self.SetBuildNameAndDir(optimized_env, name)
self.SetBuildNameAndDir(optimized_env, name)
optimized_env.Append(
optimized_env.Append(
...
...
test/run_tests_util.py
View file @
24265424
...
@@ -111,8 +111,6 @@ KNOWN BUILD DIRECTORIES
...
@@ -111,8 +111,6 @@ KNOWN BUILD DIRECTORIES
On Windows:
On Windows:
<%(proj)s root>/scons/build/win-dbg8/%(proj)s/scons/
<%(proj)s root>/scons/build/win-dbg8/%(proj)s/scons/
<%(proj)s root>/scons/build/win-opt8/%(proj)s/scons/
<%(proj)s root>/scons/build/win-opt8/%(proj)s/scons/
<%(proj)s root>/scons/build/win-dbg/%(proj)s/scons/
<%(proj)s root>/scons/build/win-opt/%(proj)s/scons/
On Mac:
On Mac:
<%(proj)s root>/scons/build/mac-dbg/%(proj)s/scons/
<%(proj)s root>/scons/build/mac-dbg/%(proj)s/scons/
<%(proj)s root>/scons/build/mac-opt/%(proj)s/scons/
<%(proj)s root>/scons/build/mac-opt/%(proj)s/scons/
...
@@ -127,7 +125,7 @@ IS_CYGWIN = os.name == 'posix' and 'CYGWIN' in os.uname()[0]
...
@@ -127,7 +125,7 @@ IS_CYGWIN = os.name == 'posix' and 'CYGWIN' in os.uname()[0]
# Definition of CONFIGS must match that of the build directory names in the
# Definition of CONFIGS must match that of the build directory names in the
# SConstruct script. The first list item is the default build configuration.
# SConstruct script. The first list item is the default build configuration.
if
IS_WINDOWS
:
if
IS_WINDOWS
:
CONFIGS
=
(
'win-dbg8'
,
'win-opt8'
,
'win-dbg'
,
'win-opt'
)
CONFIGS
=
(
'win-dbg8'
,
'win-opt8'
)
elif
IS_MAC
:
elif
IS_MAC
:
CONFIGS
=
(
'mac-dbg'
,
'mac-opt'
)
CONFIGS
=
(
'mac-dbg'
,
'mac-opt'
)
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment