Fixes the header search path in SConscript and add SConscript to the distribution.

This commit is contained in:
shiqian 2008-10-12 01:07:26 +00:00
parent e0865dd919
commit 321234377e
2 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ EXTRA_DIST = \
CHANGES \ CHANGES \
CONTRIBUTORS \ CONTRIBUTORS \
include/gtest/internal/gtest-type-util.h.pump \ include/gtest/internal/gtest-type-util.h.pump \
scons/SConscript \
scripts/gen_gtest_pred_impl.py \ scripts/gen_gtest_pred_impl.py \
src/gtest-all.cc src/gtest-all.cc

View File

@ -96,10 +96,11 @@ __author__ = 'joi@google.com (Joi Sigurdsson)'
Import('env') Import('env')
env = env.Clone() env = env.Clone()
# Include paths to gtest headers are relative to a directory two above # Include paths to gtest headers are relative to either the gtest
# the gtest directory itself, and this SConscript file is one # directory or the 'include' subdirectory of it, and this SConscript
# directory deeper than the gtest directory. # file is one directory deeper than the gtest directory.
env.Prepend(CPPPATH = ['../../..']) env.Prepend(CPPPATH = ['..',
'../include'])
# TODO(joi@google.com) Fix the code that causes this warning so that # TODO(joi@google.com) Fix the code that causes this warning so that
# we see all warnings from the compiler about possible 64-bit porting # we see all warnings from the compiler about possible 64-bit porting