Re: A little confused about target settings
Re: A little confused about target settings
- Subject: Re: A little confused about target settings
- From: Greg Guerin <email@hidden>
- Date: Fri, 15 Feb 2008 14:30:35 -0700
kwiley wrote:
>I think these are make-environment variables, not system-environment
>variables.
I'm pretty sure they are system-environment variables, and you should see
them assigned into the env in the detailed build transcript. The variables
appear in the process's environment, and a getenv() call will retrieve
them. If make ultimately calls getenv() for what you call
"make-environment variables", then it'll work. If it doesn't, you need to
copy the getenv() variables into the make context.
>At any rate...I thought to make a "make check" target, I should add a
>Build Settings named ACTION and set its value to "check"...but when I
>do that, build, and look at the middle pane of the Build Results
>window, it obviously didn't pass "check" as an argument to make. If I
>explicitly add "check" in the arguments setting, next to $(ACTION),
>then it successfully builds "make check".
The ACTION build-setting doesn't work that way. Its value is assigned by
Xcode, not by you. See this page, and find the word "ACTION" on it:
<http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSet
tingRef/build_setting_ref/build_setting_ref.html>
Other settings CAN be set by you, and passed to your custom command in the
environment, just don't use ACTION or any of the other predefined settings
listed in the doc. Or if you do use ACTION, setup your makefile so it has
make-targets identical to the values of ACTION that Xcode assigns.
>So, do I have to put "check" literally in the arguments setting? If
>so, what is the ACTION variable for. It suggests using it for exactly
>this kind of thing. It says "Use "$ACTION" for the build action
>(clean, install, etc)."
What do you want "check" to do? What do you want the target to produce,
something always built with the "check" action?
-- GG
_______________________________________________
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