Build settings and ACTION.
Build settings and ACTION.
- Subject: Build settings and ACTION.
- From: Steve Checkoway <email@hidden>
- Date: Mon, 25 Sep 2006 02:58:32 -0700
I'm sorry if this has come up before. The list search seems to be down.
I'm trying to build an external makefile target and I would like to
pass different arguments based on the ACTION build setting. The Xcode
2.4 Build Settings Notes says that the ACTION build setting will be
set to either build or clean when using Xcode. I've found that it's
either empty or set to clean. (I just checked and this holds with
xcodebuild as well.
This actually works really well if the default target in the makefile
does what you want and clean cleans. In my case (building lua 5.1),
the default target does nothing:
$ make
Please choose a platform: aix ansi bsd generic linux macosx mingw
posix solaris
That's not terribly helpful. What I'd really like to happen is when
ACTION is build (or empty), to pass liblua.a as the only argument.
When ACTION is clean, I'd like clean to be passed.
So far, I've tried the following.
1. I tried to make build settings like
LUA_TARGET_clean = clean
LUA_TARGET_ = liblua.a
and then in the arguments text box, I used $(LUA_TARGET_$(ACTION)).
Unfortunately, this didn't work as expected.
2. Since the above didn't work, I tried to treat ACTION as a standard
bash variable on which I could use variable substitution. Of course,
this didn't work as bash isn't being used here.
3. I looked at csh variable substitution and it's either less
powerful or I just couldn't figure out how to do it. In the end, it
didn't seem to matter since both ${ACTION:s/clean/foo/} and $ACTION:s/
clean/foo/ failed, the first by substitution the empty string, the
second by substituting clean/clean/foo/.
I don't know how to proceed. Any advice would be most welcome.
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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