Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(12564)

Issue 2595: Adding Xcode project for Google Testing Framework

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by Preston
Modified:
14 years, 9 months ago
Reviewers:
chandlerc, Zhanyong, googletestframework
CC:
Preston, chandlerc1
Base URL:
http://googletest.googlecode.com/svn/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Adding Xcode project for Google Testing Framework #

Patch Set 3 : Improved Xcode project that automatically extracts version information from configure.ac #

Patch Set 4 : fine tuning some build settings #

Patch Set 5 : integrating suggested changes from wan and vladlosev #

Patch Set 6 : integrating suggested changes from chandlerc #

Patch Set 7 : integrating further suggested changes from chandlerc #

Patch Set 8 : integrating further suggested changes from chandlerc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1126 lines, -1 line) Patch
trunk/README View 1 3 4 3 chunks +25 lines, -1 line 0 comments Download
trunk/configure.ac View 1 chunk +4 lines, -0 lines 0 comments Download
trunk/xcode/Config/DebugProject.xcconfig View 1 3 4 1 chunk +30 lines, -0 lines 0 comments Download
trunk/xcode/Config/FrameworkTarget.xcconfig View 1 3 4 1 chunk +17 lines, -0 lines 0 comments Download
trunk/xcode/Config/General.xcconfig View 1 3 4 1 chunk +41 lines, -0 lines 0 comments Download
trunk/xcode/Config/ReleaseProject.xcconfig View 1 3 4 1 chunk +32 lines, -0 lines 0 comments Download
trunk/xcode/Resources/Info.plist View 1 1 chunk +30 lines, -0 lines 0 comments Download
trunk/xcode/Scripts/versiongenerate.py View 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
trunk/xcode/gtest.xcodeproj/project.pbxproj View 1 3 4 5 6 1 chunk +876 lines, -0 lines 0 comments Download

Messages

Total messages: 12
Preston
Hi everyone, I just uploaded some code for review. It adds an Xcode project for ...
15 years, 9 months ago (2008-07-19 00:49:23 UTC) #1
Preston
http://codereview.appspot.com/2595/diff/24/46 File xcode/Config/General.xcconfig (right): http://codereview.appspot.com/2595/diff/24/46#newcode55 Line 55: GTEST_VERSIONINFO_SHORT = 0.0 Don't require manual editing of ...
15 years, 9 months ago (2008-07-21 20:06:20 UTC) #2
Preston
Uploaded a new version of the Xcode project patch for a review. Please take a ...
15 years, 9 months ago (2008-07-23 17:58:22 UTC) #3
Vlad
Looks very good. http://codereview.appspot.com/2595/diff/52/72 File trunk/README (right): http://codereview.appspot.com/2595/diff/52/72#newcode155 Line 155: directory. This needs a comment ...
15 years, 9 months ago (2008-07-23 18:12:41 UTC) #4
Zhanyong
Thanks for the hard work, Preston! I don't really know how to make sense of ...
15 years, 9 months ago (2008-07-23 19:19:12 UTC) #5
Preston
Thanks for the feedback! I've updated the patch taking into account suggestions by vlalosev and ...
15 years, 9 months ago (2008-07-23 20:01:39 UTC) #6
chandlerc
Several comments in line, however I have a more general concern. I'm sorry I didn't ...
15 years, 9 months ago (2008-07-23 20:01:53 UTC) #7
Preston
Chandler, Thanks for the useful feedback. I hesitate to use the ./configure script since it ...
15 years, 9 months ago (2008-07-23 20:58:33 UTC) #8
Vlad
Looks Good To Me now!
15 years, 9 months ago (2008-07-23 21:52:08 UTC) #9
chandlerc
LGTM, provided my question below is ok. The fix is trivial if it needs fixing. ...
15 years, 9 months ago (2008-07-24 14:32:12 UTC) #10
Preston
Updated changes. 1. Added a comment to the generated Version.h file reminding its readers that ...
15 years, 9 months ago (2008-07-24 15:06:39 UTC) #11
chandlerc
15 years, 9 months ago (2008-07-24 15:17:12 UTC) #12
LGTM! Thanks!!

http://codereview.appspot.com/2595/diff/129/120
File trunk/xcode/Scripts/versiongenerate.py (right):

http://codereview.appspot.com/2595/diff/129/120#newcode60
Line 60: // defines some version strings for the Info.plist
On 2008/07/24 15:06:40, Preston wrote:
> On 2008/07/24 14:32:12, chandlerc wrote:
> > One final nit, could you mention here that this is not a C/C++ header file,
> and
> > doesn't need to conform to those standards? Just to prevent someone later
from
> > coming through and decrying "Why on earth aren't there include guards!! And
we
> > need quotes around those strings!!" I understand now, but it's sufficiently
> > non-obvious for non-xcode-savvy individuals to be worth noting.
> 
> Done.
> 
> By the way, this file will be generated within the "build" directory and will
be
> cleaned when Xcode performs a project clean. The user will likely NEVER see
this
> file.

Yea, this was for the benefit of future editors of this python script, not for
the file itself. It's just convenient to locate them such that both benefit.

http://codereview.appspot.com/2595/diff/129/115
File trunk/xcode/gtest.xcodeproj/project.pbxproj (right):

http://codereview.appspot.com/2595/diff/129/115#newcode555
Line 555: shellScript = "/usr/bin/python $SRCROOT/Scripts/versiongenerate.py
$SRCROOT/../ $DERIVED_FILE_DIR\n";
On 2008/07/24 15:06:40, Preston wrote:
> Well..., python is installed in /usr/bin by default on Mac OS X. If you
install
> your own version, you'll have to either update the symbolic link (at
> /usr/bin/python) or fix this script. I would expect developers savvy enough to
> install their own python, to fix it. What do you think?

Hah! You'd think that, but then you'd meet developers like me who don't know the
mystical ways of Python. In all honesty, I've been bitten by having lots of
different versions of Python installed on OS X before, but I'm not concerned
about that here. It makes sense to write the script against the system-installed
python, and use it directly.

> I'm simplifying these scripts back to what they were, but adding a comment
> reminding the developer that it is executed from the SRCROOT. 

This is fine.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b