Move a few environment variables from Xcode project to `xcodebuild.sh`
Move handling of $CARGO_TARGET_DIR and $CARGO_XCODE_BUILD_PROFILE from *.xcodeproj into xcodebuild.sh.
I'd like to do this for CARGO_XCODE_CARGO_DEP_FILE_NAME/CARGO_XCODE_CARGO_FILE_NAME as well, but haven't completed that part yet.
This is a question of separation of concerns. IMO:
-
xcodebuild.sh: Handle standard Xcode configuration options, and translate them into what Cargo supports. Ideally, it should be droppable into any Xcode project, and compile without further configuration. -
*.xcodeproj: Contain a basic Xcode project based on the Cargo project's structure.
Should also make it a little easier to do migrations of xcodebuild.sh as discussed in #23 (since xcodebuild.sh and the rest of *.xcodeproj won't be as intrinsically linked).