Re: Build Styles???
Re: Build Styles???
- Subject: Re: Build Styles???
- From: "Daniel A. Steffen" <email@hidden>
- Date: Thu, 13 Nov 2003 01:50:56 +1100
On Mon, 10 Nov 2003 17:13:00 -0800, Randy Croucher wrote:
There are two default
"Build Styles" set up in Xcode: Development and Deployment. Switching
between these does not change where the compiler puts intermediate
files, nor does it change the output file name or path. I am trying to
make heads or tails out of all of these default path names
(BUILT_PRODUCTS_DIR, SRCROOT, INSTALL_PATH, etc...), and trying to tell
which one(s) need set differently between build styles.
I use the following in my buildstyles
TEMP_DIR =
"$(OBJROOT)/Development.build/$(PROJECT_NAME).build/
$(TARGET_NAME).build"
resp.
TEMP_DIR =
"$(OBJROOT)/Deployment.build/$(PROJECT_NAME).build/$(TARGET_NAME).build"
this needs to be TEMP_DIR and not the older TEMP_FILES_DIR; but note
that if you want to use this value in a script phase, you also need to
add a build setting
TEMP_FILES_DIR = $(TEMP_DIR)
and use ${TEMP_FILES_DIR} in scripts, since only the older name gets
exported to script phases in Xcode for some reason... (TEMP_DIR used to
work fine in PB)
this separates all intermediate buildfiles (except the indices) into
buildstyle specific folders; if you additionally set SYMROOT in your
buildstyles, you can also put your build products into buildstyle
specific locations.
it would be nicer if one could use e.g. $(BUILD_STYLE) in a project
build setting instead of hardcoding the style name in a buildstyle
setting as above, but while that string exists in
DevToolsCore.framework, it doesn't seem to be exported...
HTH
Cheers,
Daniel
--
** Daniel A. Steffen ** "And now for something completely
** Dept. of Mathematics ** different" Monty Python
** Macquarie University ** <mailto:email@hidden>
** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.