Re: Output files, working directories and BUILD_STYLE
Re: Output files, working directories and BUILD_STYLE
- Subject: Re: Output files, working directories and BUILD_STYLE
- From: Scott Tooker <email@hidden>
- Date: Wed, 15 Jun 2005 11:11:26 -0700
In Xcode 2.1 there are no more build styles, now we have build
configurations, which are referred to via the $(CONFIGURATION) build
setting name. However, we should be setting $(BUILD_STYLE) to the
value of $(CONFIGURATION). One thing to note is that $
(BUILT_PRODUCTS_DIR) will automatically adjust for the active
configuration name and point to where build products are being put.
You can read more about this in Xcode via Help->Show Build Setting
Notes.
If you want, you can turn off the "per-configuration build
directories" feature via a user default (see the Building section of
Help->Show Expert Preferences Notes for more info).
The part about $(BUILD_STYLE) being elided is odd, please file a bug
on that.
Scott
On Jun 15, 2005, at 5:36 AM, Jonas Maebe wrote:
Hello,
Is it a known problem than in XCode 2.1, $(BUILD_STYLE) is stripped
from output file paths belonging to a custom script rule? Since the
$(BUILD_STYLE) is now an inherent part of the path of output files
(it seems it wasn't in 1.5), this is quite annoying.
The easiest way to reproduce it is to create a new project,
standard tool, get info on the target, go to rules, select "Custom
Script" for C files, allow XCode to make a copy, add an output
file, use the path
build/$(BUILD_STYLE)/a
close the info window and build.
In the build transcript, you can see:
PhaseScriptExecution /Users/jonas/fpc/test/xcode/test5/build/
test5.build/Debug/test5.build/Script-0d990ec3.sh
mkdir build/a
cd /Users/jonas/fpc/test/xcode/test5
So
a) the $(BUILD_STYLE) is removed
b) the mkdir happens before changing to the project directory...
So that seems to be two errors in fact.
Am I doing something wrong or shall I file a bug report?
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden