[Webkit-unassigned] [Bug 109248] [Mac] Experimental gyp-based build system

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 7 22:40:27 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=109248





--- Comment #8 from Dirk Pranke <dpranke at chromium.org>  2013-02-07 22:42:36 PST ---
Okay, I have reproduced this. I think what's going on is that GYP uses the location of the .gyp file as the current working directory for any relative paths, and in order for that to translate most easily into the xcodeproject, we set the projectDirPath to match the directory containing the gyp file.

As you say, it does look like projectDirPath/SRCROOT is supposed to be the directory containing the .xcodeproj. When that is not the same as the directory containing the .gyp file, you're gonna have problems.

At this point, I can't say why gyp does this, and we'd probably need to check w/ Mark Mentovai (or maybe Nico), since my knowledge of both xcode and the gyp xcode generator is pretty weak. Perhaps the thing to do is to adjust the xcode gyp generator to make sure the relative paths are based on the directory containing the .xcodeproj, not the directory containing the .gyp . Or, maybe there's a reason it needs to be this way, dunno.

Generally speaking, we always put the .xcodeproj's next to the .gyp files. So, for you to get something to work, you could probably work around this by moving your WTF.gyp from Source/WTF/WTF.gyp/mac/WTF.gyp to just Source/WTF . If we do eventually go down the "everyone uses gyp" route, that seems like the better thing to do anyway.

Hope this helps and I haven't written anything wrong here, but if I have hopefully Mark Mentovai or Nico will correct me.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list