~ubuntu-branches/ubuntu/raring/protobuf/raring

« back to all changes in this revision

Viewing changes to gtest/README

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2010-02-11 11:13:19 UTC
  • mfrom: (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100211111319-zdn8hmw0gh8s4cf8
Tags: 2.2.0a-0.1ubuntu1
* Merge from Debian testing.
* Remaining Ubuntu changes:
  - Don't use python2.4.
* Ubuntu changes dropped:
  - Disable death tests on Itanium, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
  tar -xvjf gtest-X.Y.Z.tar.bz2
113
113
  unzip gtest-X.Y.Z.zip
114
114
 
 
115
Choosing a TR1 Tuple Library
 
116
----------------------------
 
117
Some Google Test features require the C++ Technical Report 1 (TR1)
 
118
tuple library, which is not yet widely available with all compilers.
 
119
The good news is that Google Test implements a subset of TR1 tuple
 
120
that's enough for its own need, and will automatically use this when
 
121
the compiler doesn't provide TR1 tuple.
 
122
 
 
123
Usually you don't need to care about which tuple library Google Test
 
124
uses.  However, if your project already uses TR1 tuple, you need to
 
125
tell Google Test to use the same TR1 tuple library the rest of your
 
126
project uses (this requirement is new in Google Test 1.4.0, so you may
 
127
need to take care of it when upgrading from an earlier version), or
 
128
the two tuple implementations will clash.  To do that, add
 
129
 
 
130
  -DGTEST_USE_OWN_TR1_TUPLE=0
 
131
 
 
132
to the compiler flags while compiling Google Test and your tests.
 
133
 
 
134
If you don't want Google Test to use tuple at all, add
 
135
 
 
136
  -DGTEST_HAS_TR1_TUPLE=0
 
137
 
 
138
to the compiler flags.  All features using tuple will be disabled in
 
139
this mode.
 
140
 
115
141
Building the Source
116
142
-------------------
117
143
### Linux, Mac OS X (without Xcode), and Cygwin ###