Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Eliminate gyp/build output #4582

Closed
jfirebaugh opened this issue Apr 2, 2016 · 3 comments
Closed

Eliminate gyp/build output #4582

jfirebaugh opened this issue Apr 2, 2016 · 3 comments
Assignees
Labels
build macOS Mapbox Maps SDK for macOS

Comments

@jfirebaugh
Copy link
Contributor

Some build products get output to gyp/build rather than build. This is probably a historical accident or quirk of gyp. We should adjust the build to eliminate this special case output directory -- everything should go to build.

@1ec5 1ec5 added the macOS Mapbox Maps SDK for macOS label Apr 2, 2016
@jfirebaugh
Copy link
Contributor Author

gyp is involved here, but this largely seems to be a quirk of xcodebuild -target foo versus xcodebuild -scheme foo. The former seems to set SYMROOT to $SRCROOT/build (and SRCROOT is indeed set to ./gyp by gyp), while the latter uses a directory in ~/Library/Developer/Xcode/DerivedData (the same one that builds from within Xcode use). I can't find this difference between -target and -scheme documented anywhere, and it's contrary to the output of xcodebuild -showBuildSettings, which says that SYMROOT is the ~/Library/... path in either case.

@mikemorris
Copy link
Contributor

IIRC this was a result of some refactoring I did on the Node.js bindings when we integrated them into this repository.

@jfirebaugh
Copy link
Contributor Author

The key here seems to be that SYMROOT needs to be an absolute path. If it's a relative path, it's ignored by xcodebuild -target ..., but if it's absolute, it's respected.

In #4608 I'm setting up the ios and osx gyp files to force an absolute path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

No branches or pull requests

3 participants